-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix playwright tests on Windows #15684
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
Fix playwright tests on Windows #15684
Conversation
* Simplify helper methods and properties for filesystem paths and urls to workspace * Make sure they work for Windows and Linux * Fixes eclipse-theia#15447 Signed-off-by: Florian Richter <florian.richter@mvtec.com>
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 can't test on Windows, but on Linux this seems to still work fine. Thank you!
@tsmaeder Can you test this on Windows please? |
I get
on Windows 11, but I did the playwright tests ever work correctly on WIndows anyway? @mvtec-richter what are your results on Windows? |
I'll have a look into this. The notebook tests also failed on Linux. I will merge the master and see if I can fix them if they are not fixed already. |
Yes, those tests are somewhat flaky, see also #14450 |
The playwright tests previously did not work at all on Windows. The tests couldn't even open a workspace, because the paths were not handled correctly. This should be fixed now. |
* The previous implementation did not wait at all. Furthermore only waiting for success and error together was used until now. Signed-off-by: Florian Richter <florian.richter@mvtec.com>
c4e8401
to
0bdaae3
Compare
@mvtec-richter certainly not your fault or part of this PR, but I wonder if it makes sense to use the highly complex python notebooks to test our notebook support. Wouldn't something with less dependencies make more sense and use less resources? |
Yeah agreed. I think this PR already certainly improves the situation on Windows and doesn't break anything on Linux. So from my point of view, this PR will add value as is. If we are at it, it might be worth checking if we can fix the theia-explorer-view.test.ts on Windows, but even if we can't, this shouldn't block this PR, as this test didn't work before either afaik. |
@planger don't you want to merge this one? |
I do want to merge this one (sorry if I wasn't clear :-)). Happy to merge it if you agree! |
You're a committer, you can decide these things all by yourself (unless you want me to review the code). |
Sure, I wanted to make sure you are on board as you had a look and some comments! |
What it does
Simplify helper methods and properties for filesystem paths and urls to workspace.
In my opinion, previously the meaning of urlEncode and escape was not clear. This was part of the reason, the methods didn't work for Windows. I tried to align the naming of the methods with the specific use cases.
Unfortunately, I don't have access to MacOS to test this.
Fixes #15447
How to test
Run playwright tests on Windows and Linux.
Follow-ups
Breaking changes
Attribution
Contributed by MVTec Software GmbH
Review checklist
Reminder for reviewers