-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[playwright] Add support for handling option preferences and reactivate skipped test #10924
Conversation
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.
A few of the tests failed for me (MacOS) when I ran this PR alone, but they passed when I rebased this work on #10925. Let's merge that one, rebase this one, and confirm that everything is working once that's done.
Thanks for testing, @colin-grant-work! #10925 is now merged and I rebased this PR. Build is still running, but the Playwright Tests and one CI/CD Build is green already. |
Hm, one build reported two failing unit tests:
Seems unrelated on a first sight. Is this a flaky test as it passes on node 12 and node 16 if I'm not mistaken? |
@planger, that's on the list of known flaky tests, so intermittent failures in the |
I had to adjust the preference editor page object as we don't use Can you please take a look if those changes are fine with you? Thanks! |
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 confirm that the tests pass during CI and locally 👍
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.
LGTM 👍 The playwright tests pass successfully.
@planger Could you squash please, I am not sure how the final commit message should look like |
Due to the Monaco uplift, we had to temporarily skip a test, because it affected the default preference regarding auto-save. To re-enable the test, we now explicitly set the auto save preference to `off` before the test. This way the preference value is ensured to be consistent. In order to do so, we add support for option preferences See also eclipse-theia#10736 Fixes eclipse-theia#10891 Change-Id: I6ab22a71848e174313a30f9121cb4b3dec363f12
@colin-grant-work : Should I wait merging this? |
@JonasHelming, no; it's good to go. I was enqueuing my reviews this morning, and I hadn't noticed that Vince had already approved. I'm fine with what I've seen with the changes, and his is good enough for me. |
What it does
Due to the Monaco uplift, we had to temporarily skip a test, because the Monaco change affected the default preference regarding auto-save.
To re-enable the skipped test, we now explicitly set the auto save preference to
off
before the test. This way the preference value is ensured to be consistent. In order to do that conveniently, this change adds general support for preferences that are set by HTML select/options. In the course of introducing support for select/option preferences, we harmonized the code for handling different types of preferences in theTheiaPreferenceView
page object.See also #10736
Fixes #10891
How to test
This change adds additional tests for the new support for option preferences and reactivates the test that had to be skipped in #10736.
Review checklist
Reminder for reviewers