Skip to content

Commit

Permalink
Apply themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Raushen committed Sep 26, 2024
1 parent ee29f6c commit 57ea718
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions e2e/testcafe-devextreme/tests/pager/accessibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Pager from 'devextreme-testcafe-models/pager';
import url from '../../helpers/getPageUrl';
import { testAccessibility, Configuration } from '../../helpers/accessibility/test';
import { Options } from '../../helpers/generateOptionMatrix';
import { testScreenshot } from '../../helpers/themeUtils';

fixture.disablePageReloads`Pager`
.page(url(__dirname, '../container.html'));
Expand All @@ -28,14 +29,15 @@ const created = async (t: TestController, optionConfiguration): Promise<void> =>

const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
const pager = new Pager('#container');
await t
.expect(await takeScreenshot(`pager-dm_${displayMode}-`

await testScreenshot(t, takeScreenshot, `pager-dm_${displayMode}-`
+ `${infoText ? 'has' : 'has_no'}_it-`
+ `si_${showInfo.toString()}-`
+ `snb_${showNavigationButtons.toString()}-`
+ `spss_${showPageSizeSelector.toString()}`
+ '.png', pager.element))
.ok()
+ '.png',
{ element: pager.element });
await t
.expect(compareResults.isValid())
.ok(compareResults.errorMessages());
};
Expand Down

0 comments on commit 57ea718

Please sign in to comment.