-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Migrate 'scheduling' e2e tests to Playwright #57539
Conversation
Size Change: 0 B Total Size: 1.69 MB ℹ️ View Unchanged
|
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.
Thanks!
const TIMEZONES = [ 'Pacific/Honolulu', 'UTC', 'Australia/Sydney' ]; | ||
|
||
test.describe( 'Scheduling', () => { | ||
TIMEZONES.forEach( ( timezone ) => { |
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.
Nit: Could we move the loop to close to the test
function so that we only have to get the original timezone once? We can then call updateSiteSettings
in beforeEach
or inside the test too.
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'll try it, though I don't think it should affect test speed in this case.
Update: I tried rearranging things, but I don't think it's worth it for a single test in a loop. Rearrangement introduces more setup and cleanup steps.
What?
Part of #38851.
PR migrates
scheduling.test.js
e2e tests to Playwright.Why?
See #38851.
Testing Instructions