-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup compliments module #2965
Conversation
@khassel asking you as the test-specialist ;-) : how can I fix the tests not finding "fetch" when I switch the module xmlhttprequest to fetch?
|
will try to look at this but I have very limited time until end of this month ... |
This was one of the simplest modules that worked properly, now is not working with HTML compliments like:
|
when did it stop working? with this PR? |
yes |
not sure, but this moved the span inside the newline loop. so u will have a span per part.. instead of one. and if split didn't, then you would lose the span |
This doesnt work for me neithe ron the develop branch nor on the master branch. What version of MM2 are you using and how does your config look like in total (minus your secrets)? |
I don't know. This is the first time someone is using the browser fetch function. The e2e tests are running with |
adding the line exports.getDocument = () => {
return new Promise((resolve) => {
const url = "http://" + (config.address || "localhost") + ":" + (config.port || "8080");
jsdom.JSDOM.fromURL(url, { resources: "usable", runScripts: "dangerously" }).then((dom) => {
dom.window.name = "jsdom";
dom.window.fetch = corefetch;
dom.window.onload = () => {
global.document = dom.window.document;
resolve();
};
});
});
}; |
Codecov Report
@@ Coverage Diff @@
## develop #2965 +/- ##
===========================================
+ Coverage 22.75% 22.85% +0.09%
===========================================
Files 51 51
Lines 10895 10887 -8
===========================================
+ Hits 2479 2488 +9
+ Misses 8416 8399 -17
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
That did indeed help, thx! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with this but I don't know if the other commenters are ...
Cleaned up after @sdetweil's comment so that only one span is now generated again. As for @Badatheist I cannot reproduce that. Doesnt work on develop nor on the last master release. Without more information I cannot do anything here. |
What more information? It's very simple, before the compliments worked with HTML format, after the change they don't work anymore. I will stick to the old version which works perfectly for me. Not every update is good if it is not properly thought out and tested, it is valid for any software. For me it's a bug. Good luck and stay healthy! |
@Badatheist sorry to hear that, but like I wrote: I couldnt get your config entry to work, neither with my changes of course, but neither with the develop branch nor with the last release. Without more information from your side (for example what version are you currently running, what is your whole config) I cannot help you out and get this bug fixed. |
Lots of small fixes and cleanups: