Skip to content

Commit

Permalink
fix(icon): screenshot timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Oct 25, 2023
1 parent d0dfef1 commit 461c099
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { DEFAULT_ATTRIBUTE } from './constants/default-attributes';
import { ODS_ICON_NAMES } from './constants/icon-name';
import { ODS_ICON_SIZES } from './constants/icon-size';

const TIMEOUT = 50000;

describe('e2e:osds-icon', () => {
let page: E2EPage;
let variations: string[] = [];
Expand Down Expand Up @@ -43,7 +45,7 @@ describe('e2e:osds-icon', () => {

const results = await page.compareScreenshot('icon', { fullPage: true });
expect(results).toMatchScreenshot({ allowableMismatchedRatio: 0 });
});
}, TIMEOUT);

it('should take screenshots of all attributes variations contrasted', async () => {
ODS_ICON_NAMES.forEach((name) => {
Expand All @@ -65,6 +67,6 @@ describe('e2e:osds-icon', () => {

const results = await page.compareScreenshot('icon', { fullPage: true });
expect(results).toMatchScreenshot({ allowableMismatchedRatio: 0 });
});
}, TIMEOUT);
});
});

0 comments on commit 461c099

Please sign in to comment.