Skip to content

Commit

Permalink
fixed test i headful mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yushan-mu committed Dec 12, 2024
1 parent bdd54ae commit ef673f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/e2e/elements/map-link/map-link-disabled.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ test.describe('map-link disabled', () => {
});
await page.waitForTimeout(500);
await expect(viewer).toHaveScreenshot('toporama.png', {
maxDiffPixels: 20
maxDiffPixels: 500
});
// disable the map-link
const imageTemplateLink = page.getByTestId('inline-link1');
Expand All @@ -120,8 +120,9 @@ test.describe('map-link disabled', () => {
maxDiffPixels: 20
});
await imageTemplateLink.evaluate((l) => (l.disabled = false));
await page.waitForTimeout(500);
await expect(viewer).toHaveScreenshot('toporama.png', {
maxDiffPixels: 20
maxDiffPixels: 500
});
});
test('rel=query disabled attribute', async () => {
Expand Down

0 comments on commit ef673f9

Please sign in to comment.