forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPaginationNav-test.e2e.js
37 lines (33 loc) · 1014 Bytes
/
PaginationNav-test.e2e.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const { expect, test } = require('@playwright/test');
const { themes } = require('../../test-utils/env');
const { snapshotStory, visitStory } = require('../../test-utils/storybook');
test.describe('PaginationNav', () => {
themes.forEach((theme) => {
test.describe(theme, () => {
test('pagination nav @vrt', async ({ page }) => {
await snapshotStory(page, {
component: 'PaginationNav',
id: 'components-paginationnav--default',
theme,
});
});
});
});
test('accessibility-checker @avt', async ({ page }) => {
await visitStory(page, {
component: 'PaginationNav',
id: 'components-paginationnav--default',
globals: {
theme: 'white',
},
});
await expect(page).toHaveNoACViolations('PaginationNav');
});
});