Skip to content

Commit

Permalink
Fix Image zoom e2e test (#2757)
Browse files Browse the repository at this point in the history
  • Loading branch information
taranvohra authored Jan 20, 2025
1 parent 1b8a456 commit 1c1f504
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/gitbook/e2e/pages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,8 @@ const testCases: TestsCase[] = [
run: async (page) => {
await waitForCookiesDialog(page);
const zoomImage = page.getByTestId('zoom-image');
if (!zoomImage) {
throw new Error('Image block not found');
}
await zoomImage.first().click();
await page.waitForSelector('[data-testid="zoom-image-modal"]');
await expect(page.getByTestId('zoom-image-modal')).toBeVisible();
},
fullPage: true,
screenshot: { threshold: 0.8 },
Expand Down

0 comments on commit 1c1f504

Please sign in to comment.