-
Notifications
You must be signed in to change notification settings - Fork 51
Clean up e2e tests #2168
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
base: trunk
Are you sure you want to change the base?
Clean up e2e tests #2168
Conversation
| }; | ||
| } | ||
|
|
||
| async closeWhatsNew() { |
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.
Moved closeWhatsNew to onboarding to avoid duplications and keep consistency
| return this.locator.getByRole( 'button', { name: 'Close' } ); | ||
| } | ||
|
|
||
| async close() { |
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.
We don't need it
| await expect( dialog.locator ).toBeVisible(); | ||
| return dialog; | ||
| if ( ! isButtonVisible ) { | ||
| throw new Error( 'Add Site button not found on the main sidebar' ); |
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 think it's better to keep this function more specific, since if it's not available in UI then we can mute an error
Also, with the current use case - there is no such thing as "sidebar" inside onboarding, so it's a bit misleading to create MainSidebar and running openAddSiteModal, instead of directly running new AddSiteModal.
📊 Performance Test ResultsComparing c9ed3d0 vs trunk site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change |
Proposed Changes
See comments in the PR below
Testing Instructions
PR's build should be green