Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Dec 5, 2023
1 parent d65db30 commit 593b841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/specs/site-editor/title.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test.describe( 'Site editor title', () => {
'role=region[name="Editor top bar"i] >> role=heading[level=1]'
);

await expect( title ).toHaveText( 'Editing template:Index' );
await expect( title ).toHaveText( 'Editing template: Index' );

Check failure on line 29 in test/e2e/specs/site-editor/title.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/title.spec.js:15:2 › Site editor title › displays the selected template name in the title for the index template

1) [chromium] › site-editor/title.spec.js:15:2 › Site editor title › displays the selected template name in the title for the index template Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') Expected string: "Editing template: Index" Received string: "Editing template:Index" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" 27 | ); 28 | > 29 | await expect( title ).toHaveText( 'Editing template: Index' ); | ^ 30 | } ); 31 | 32 | test( 'displays the selected template name in the title for the header template', async ( { at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/title.spec.js:29:25

Check failure on line 29 in test/e2e/specs/site-editor/title.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/title.spec.js:15:2 › Site editor title › displays the selected template name in the title for the index template

1) [chromium] › site-editor/title.spec.js:15:2 › Site editor title › displays the selected template name in the title for the index template Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') Expected string: "Editing template: Index" Received string: "Editing template:Index" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" 27 | ); 28 | > 29 | await expect( title ).toHaveText( 'Editing template: Index' ); | ^ 30 | } ); 31 | 32 | test( 'displays the selected template name in the title for the header template', async ( { at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/title.spec.js:29:25

Check failure on line 29 in test/e2e/specs/site-editor/title.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/title.spec.js:15:2 › Site editor title › displays the selected template name in the title for the index template

1) [chromium] › site-editor/title.spec.js:15:2 › Site editor title › displays the selected template name in the title for the index template Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') Expected string: "Editing template: Index" Received string: "Editing template:Index" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template:Index" 27 | ); 28 | > 29 | await expect( title ).toHaveText( 'Editing template: Index' ); | ^ 30 | } ); 31 | 32 | test( 'displays the selected template name in the title for the header template', async ( { at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/title.spec.js:29:25
} );

test( 'displays the selected template name in the title for the header template', async ( {
Expand All @@ -43,6 +43,6 @@ test.describe( 'Site editor title', () => {
'role=region[name="Editor top bar"i] >> role=heading[level=1]'
);

await expect( title ).toHaveText( 'Editing template part:header' );
await expect( title ).toHaveText( 'Editing template part: header' );

Check failure on line 46 in test/e2e/specs/site-editor/title.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/title.spec.js:32:2 › Site editor title › displays the selected template name in the title for the header template

2) [chromium] › site-editor/title.spec.js:32:2 › Site editor title › displays the selected template name in the title for the header template Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') Expected string: "Editing template part: header" Received string: "Editing template part:header" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" 44 | ); 45 | > 46 | await expect( title ).toHaveText( 'Editing template part: header' ); | ^ 47 | } ); 48 | } ); 49 | at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/title.spec.js:46:25

Check failure on line 46 in test/e2e/specs/site-editor/title.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/title.spec.js:32:2 › Site editor title › displays the selected template name in the title for the header template

2) [chromium] › site-editor/title.spec.js:32:2 › Site editor title › displays the selected template name in the title for the header template Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') Expected string: "Editing template part: header" Received string: "Editing template part:header" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" 44 | ); 45 | > 46 | await expect( title ).toHaveText( 'Editing template part: header' ); | ^ 47 | } ); 48 | } ); 49 | at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/title.spec.js:46:25

Check failure on line 46 in test/e2e/specs/site-editor/title.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/title.spec.js:32:2 › Site editor title › displays the selected template name in the title for the header template

2) [chromium] › site-editor/title.spec.js:32:2 › Site editor title › displays the selected template name in the title for the header template Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') Expected string: "Editing template part: header" Received string: "Editing template part:header" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=region[name="Editor top bar"i]').locator('role=heading[level=1]') - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" - locator resolved to <h1 data-wp-c16t="true" data-wp-component="Text" cla…>…</h1> - unexpected value "Editing template part:header" 44 | ); 45 | > 46 | await expect( title ).toHaveText( 'Editing template part: header' ); | ^ 47 | } ); 48 | } ); 49 | at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/title.spec.js:46:25
} );
} );

0 comments on commit 593b841

Please sign in to comment.