Skip to content

Commit

Permalink
Update e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Jan 29, 2024
1 parent c47e866 commit 3368838
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/e2e/specs/site-editor/pages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ async function addPageContent( editor, page ) {
.getByRole( 'document', {
name: 'Block: Content',
} )
.getByRole( 'document', {
name: 'Empty block; start writing or type forward slash to choose a block',
.getByRole( 'button', {
name: 'Start blank',
} )
.click();

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

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page

1) [chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page, edit template and toggle page template preview TimeoutError: locator.click: Timeout 10000ms exceeded. =========================== logs =========================== waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Content' }).getByRole('button', { name: 'Start blank' }) ============================================================ 27 | name: 'Start blank', 28 | } ) > 29 | .click(); | ^ 30 | 31 | // Insert into Page Content using default block. 32 | await editor.canvas at addPageContent (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:29:4) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:99:9

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

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page

1) [chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page, edit template and toggle page template preview Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 10000ms exceeded. =========================== logs =========================== waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Content' }).getByRole('button', { name: 'Start blank' }) ============================================================ 27 | name: 'Start blank', 28 | } ) > 29 | .click(); | ^ 30 | 31 | // Insert into Page Content using default block. 32 | await editor.canvas at addPageContent (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:29:4) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:99:9

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

View workflow job for this annotation

GitHub Actions / Playwright - 6

[chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page

1) [chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page, edit template and toggle page template preview Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 10000ms exceeded. =========================== logs =========================== waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Content' }).getByRole('button', { name: 'Start blank' }) ============================================================ 27 | name: 'Start blank', 28 | } ) > 29 | .click(); | ^ 30 | 31 | // Insert into Page Content using default block. 32 | await editor.canvas at addPageContent (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:29:4) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:99:9

Expand Down Expand Up @@ -124,9 +124,7 @@ test.describe( 'Pages', () => {
editor.canvas.getByRole( 'document', {
name: 'Block: Content',
} )
).toContainText(
'This is the Content block, it will display all the blocks in any single post or page.'
);
).toContainText( 'This block will be replaced with your content.' );
await expect(
page.locator(
'role=button[name="Dismiss this notice"i] >> text="Editing template. Changes made here affect all posts and pages that use the template."'
Expand Down

0 comments on commit 3368838

Please sign in to comment.