Skip to content

Commit

Permalink
Add a little timeout after escape
Browse files Browse the repository at this point in the history
  • Loading branch information
mendhak committed May 25, 2024
1 parent c77c548 commit 5f4885a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/post-with-images.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ test.describe('Post with images', () => {
// Ensure the URL is reset when lightbox is closed
expect.soft(await page).toHaveURL('post-with-an-image/#pid=1');
await page.keyboard.press('Escape');
await page.waitForTimeout(100);
expect(lightbox).not.toBeVisible();
expect(await page).toHaveURL(siteURL + 'post-with-an-image/');

Expand Down

0 comments on commit 5f4885a

Please sign in to comment.