CYS: Fix Loading Screen E2E flaky test (#48214)

* CYS: Fix Loading Screen E2E flaky test

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Luigi Teschio 2024-06-06 15:40:20 +02:00 committed by GitHub
parent 9b179cf498
commit 5e6c7e1e67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Comment: CYS: Fix Loading Screen E2E flaky test

View File

@ -124,6 +124,7 @@ test.describe( 'Assembler - Loading Page', () => {
const assembler = await pageObject.getAssembler();
await assembler.getByRole( 'button', { name: 'Save' } ).click();
await assembler.getByText( 'Your store looks great!' ).waitFor();
// Abort any additional unnecessary requests
await page.evaluate( () => window.stop() );
await pageObject.setupSite( baseURL );