Skip to content

Commit

Permalink
added delay timers and modal window visibility checks for e2e repeate…
Browse files Browse the repository at this point in the history
…r tests
  • Loading branch information
Fellan-91 committed Nov 20, 2024
1 parent e7104e0 commit eebe449
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/e2e/specs/editor-block-repeater-control.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ test.describe('editor block with Repeater control', () => {

await page.getByLabel('“Test Repeater Block” (Edit)').click();

await page.waitForTimeout(500);

const closeModal = await page
.locator('.components-modal__header')
.getByRole('button', { name: 'Close' });

await page.waitForTimeout(500);

if (await closeModal.isVisible()) {
await closeModal.click();
}

await editor.canvas
.getByLabel('Inspector Controls')
.getByRole('button')
Expand Down

0 comments on commit eebe449

Please sign in to comment.