Skip to content

Commit

Permalink
Fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Aug 5, 2024
1 parent 4d309b9 commit 438a17f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ test.describe( 'WP Editor Meta Boxes', () => {
.locator( 'role=textbox[name="Add title"i]' )
.type( 'Hello Meta' );

Check failure on line 25 in test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 2

[chromium] › editor/plugins/wp-editor-meta-box.spec.js:19:2 › WP Editor Meta Boxes › Should save the changes

1) [chromium] › editor/plugins/wp-editor-meta-box.spec.js:19:2 › WP Editor Meta Boxes › Should save the changes TimeoutError: locator.type: Timeout 10000ms exceeded. Call log: - waiting for locator('role=textbox[name="Add title"i]') 23 | await page 24 | .locator( 'role=textbox[name="Add title"i]' ) > 25 | .type( 'Hello Meta' ); | ^ 26 | 27 | await page.click( 28 | 'summary.edit-post-layout__metaboxes-details-summary' at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js:25:5

Check failure on line 25 in test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 2

[chromium] › editor/plugins/wp-editor-meta-box.spec.js:19:2 › WP Editor Meta Boxes › Should save the changes

1) [chromium] › editor/plugins/wp-editor-meta-box.spec.js:19:2 › WP Editor Meta Boxes › Should save the changes Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.type: Timeout 10000ms exceeded. Call log: - waiting for locator('role=textbox[name="Add title"i]') 23 | await page 24 | .locator( 'role=textbox[name="Add title"i]' ) > 25 | .type( 'Hello Meta' ); | ^ 26 | 27 | await page.click( 28 | 'summary.edit-post-layout__metaboxes-details-summary' at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js:25:5

Check failure on line 25 in test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 2

[chromium] › editor/plugins/wp-editor-meta-box.spec.js:19:2 › WP Editor Meta Boxes › Should save the changes

1) [chromium] › editor/plugins/wp-editor-meta-box.spec.js:19:2 › WP Editor Meta Boxes › Should save the changes Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.type: Timeout 10000ms exceeded. Call log: - waiting for locator('role=textbox[name="Add title"i]') 23 | await page 24 | .locator( 'role=textbox[name="Add title"i]' ) > 25 | .type( 'Hello Meta' ); | ^ 26 | 27 | await page.click( 28 | 'summary.edit-post-layout__metaboxes-details-summary' at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js:25:5

await page.click(
'summary.edit-post-layout__metaboxes-details-summary'
);

// Switch tinymce to Text mode, first waiting for it to initialize
// because otherwise it will flip back to Visual mode once initialized.
await page.locator( '#test_tinymce_id_ifr' ).waitFor();
Expand Down

0 comments on commit 438a17f

Please sign in to comment.