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 Jul 28, 2023
1 parent eee7f67 commit 453fe80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/e2e/specs/global-setting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe( 'Global Setting', () => {
);
await page.waitForSelector( '.ftb-global-setting-modal__notice' );

const [ styleTag ] = await page.$$( '#flexible-table-block-table-editor-style-inline-css' );
const [ styleTag ] = await page.$$( '#flexible-table-block-editor-inline-css' );
const innerText = await page.evaluate( ( element ) => element.innerText, styleTag );

expect( innerText ).toBe(
Expand All @@ -114,9 +114,7 @@ describe( 'Global Setting', () => {
'Restore'
);
await page.waitForSelector( '.ftb-global-setting-modal__notice' );
const [ defaultStyleTag ] = await page.$$(
'#flexible-table-block-table-editor-style-inline-css'
);
const [ defaultStyleTag ] = await page.$$( '#flexible-table-block-editor-inline-css' );
const defaultInnerText = await page.evaluate(
( element ) => element.innerText,
defaultStyleTag
Expand Down

0 comments on commit 453fe80

Please sign in to comment.