Skip to content

Commit

Permalink
Try to fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Aug 26, 2023
1 parent 9656ac0 commit 9f8809f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/e2e/specs/table-cell.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ describe( 'Flexible table cell', () => {
await page.keyboard.down( 'Shift' );
await page.keyboard.type( '#anchor' );
await page.keyboard.up( 'Shift' );

// To avoid React warning error in WordPres 6.1
if ( wpVersion === '6-1' ) {
await page.waitForTimeout( 1000 );
}

await page.keyboard.press( 'Enter' );

expect( await getEditedPostContent() ).toMatchSnapshot();
Expand All @@ -98,6 +104,12 @@ describe( 'Flexible table cell', () => {
await page.keyboard.type( '-updated' );
await page.keyboard.press( 'Tab' );
await page.keyboard.type( '#anchor-updated' );

// To avoid React warning error in WordPres 6.1
if ( wpVersion === '6-1' ) {
await page.waitForTimeout( 1000 );
}

await page.keyboard.press( 'Enter' );

// Toggle "Open in new tab".
Expand Down

0 comments on commit 9f8809f

Please sign in to comment.