dimsum-e2e-tests 3.70.0-next.53 → 3.70.0-next.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/ds-accordion/DSAccordionCO.js +4 -0
- package/ds-accordion/QA_NOTES.md +105 -0
- package/ds-accordion/header-structure/DSAccordion.header-structure.func.spec.js +24 -8
- package/ds-accordion/input-inside/DSAccordion.input-inside.func.spec.js +3 -1
- package/ds-apppicker/truncation/DSAppPicker.truncation.visual.spec.js +5 -9
- package/ds-card-v3/DSCardV3CO.js +1 -1
- package/ds-card-v3/accordion/DSCardV3.accordion-aria.keyboard.func.spec.js +49 -0
- package/ds-card-v3/accordion/DSCardV3.accordion.axe-core.func.spec.js +2 -2
- package/ds-card-v3/action/DSCardV3.action.axe-core.func.spec.js +24 -0
- package/ds-card-v3/action/DSCardV3.action.func.spec.js +53 -0
- package/ds-card-v3/action/DSCardV3.action.visual.spec.js +28 -0
- package/ds-card-v3/drag-n-drop/DSCardV3.DnD.axe-core.func.spec.js +0 -19
- package/ds-card-v3/multi-select/DSCardV3.multiselect.axe-core.func.spec.js +47 -0
- package/ds-card-v3/multiple-action/DSCardV3.multiple-action.axe-core.func.spec.js +35 -0
- package/ds-card-v3/multiple-control/DSCardV3.multi-control.axe-core.func.spec.js +34 -0
- package/ds-card-v3/multiple-control/DSCardV3.multi-control.func.spec.js +2 -1
- package/ds-card-v3/multiple-control/DSCardV3.multi-control.visual.spec.js +29 -0
- package/ds-card-v3/no-action/DSCardV3.no-action.axe-core.func.spec.js +1 -1
- package/ds-card-v3/notification-badges/DSCardV3.notification-badges.axe-core.func.spec.js +33 -0
- package/ds-card-v3/notification-badges/DSCardV3.notification-badges.visual.spec.js +28 -0
- package/ds-card-v3/variant-accented/DSCardV3.variant-accented.axe-core.func.spec.js +45 -0
- package/ds-card-v3/variant-accented-disabled/DSCardV3.variant-accented-disabled.axe-core.func.spec.js +35 -0
- package/ds-card-v3/variant-accented-disabled/DSCardV3.variant-accented-disabled.visual.spec.js +28 -0
- package/ds-card-v3/variant-disabled/DSCardV3.variant-disabled.axe-core.func.spec.js +1 -1
- package/ds-card-v3/variant-disabled/DSCardV3.variant-disabled.func.spec.js +61 -0
- package/ds-card-v3/variant-disabled/DSCardV3.variant-disabled.visual.spec.js +20 -0
- package/ds-card-v3/{disabled/DSCardV3.disabled-non-interactive.func.spec.js → variant-disabled/DSCardV3.variantDisabled-non-interactive.func.spec.js} +1 -1
- package/ds-chat/DSChat.visual.spec.js +1 -1
- package/ds-chat/DSChatCO.js +12 -12
- package/ds-chat/components/CardCO.js +1 -3
- package/ds-chat/components/ComposerCO.js +1 -1
- package/ds-chat/components/FloatingButtonCO.js +4 -2
- package/ds-chat/floatingbutton/DSChat-floating-button.visual.spec.js +1 -1
- package/ds-controlled-form/ds-controlled-checkbox/Basic/DSControlledCheckbox.axe-core.basic.func.spec.js +4 -4
- package/ds-controlled-form/ds-controlled-checkbox/Basic/DSControlledCheckbox.basic.visual.spec.js +56 -0
- package/ds-controlled-form/ds-controlled-checkbox/DSControlledCheckboxCO.js +4 -0
- package/ds-controlled-form/ds-controlled-checkbox/Disabled/DSControlledCheckbox.axe-core.disabled.func.spec.js +1 -1
- package/ds-controlled-form/ds-controlled-checkbox/Disabled/DSControlledCheckbox.disabled.visual.spec.js +1 -1
- package/ds-controlled-form/ds-controlled-checkbox/HasError/DSControlledCheckbox.axe-core.hasError.func.spec.js +4 -4
- package/ds-controlled-form/ds-controlled-checkbox/HasError/DSControlledCheckbox.has-error.visual.spec.js +71 -1
- package/ds-controlled-form/ds-controlled-checkbox/Mixed/DSControlledCheckbox.axe-core.mixed.func.spec.js +4 -4
- package/ds-controlled-form/ds-controlled-checkbox/Mixed/DSControlledCheckbox.mixed.visual.spec.js +1 -1
- package/ds-controlled-form/ds-controlled-checkbox/ReadOnly/DSControlledCheckbox.axe-core.read-only.func.spec.js +3 -3
- package/ds-controlled-form/ds-controlled-checkbox/ReadOnly/DSControlledCheckbox.read-only.visual.spec.js +1 -1
- package/ds-controlled-form/ds-controlled-checkbox/WithTooltip/DSControlledCheckbox.axe-core.with-tooltip.func.spec.js +1 -1
- package/ds-controlled-form/ds-controlled-checkbox/WithTooltip/DSControlledCheckbox.with-tooltip.visual.spec.js +1 -3
- package/ds-controlled-form/ds-controlled-checkbox/WrapLabel/DSControlledCheckbox.axe-core.wrap-label.func.spec.js +1 -1
- package/ds-controlled-form/ds-controlled-checkbox/WrapLabel/DSControlledCheckbox.wrap-label.visual.spec.js +1 -1
- package/ds-controlled-form/ds-controlled-checkbox/aria-disabled/DSControlledCheckbox.aria-disabled.visual.spec.js +2 -6
- package/ds-controlled-form/ds-controlled-checkbox/aria-disabled/DSControlledCheckbox.axe-core.aria-disabled.func.spec.js +1 -1
- package/ds-controlled-form/ds-controlled-checkbox-group/DSControlledCheckboxGroup.axe-core.func.spec.js +4 -4
- package/ds-controlled-form/ds-controlled-checkbox-group/DSControlledCheckboxGroup.visual.spec.js +1 -1
- package/ds-data-table-async/filtersV2/DSDataTable.filtersV2-creatablemultiselect.keyboard.func.spec.js +2 -2
- package/ds-data-table-async/filtersV2/DSDataTable.filtersV2-creatableselect.keyboard.func.spec.js +2 -2
- package/ds-data-table-async/pagination/DSDataTable.pagination.func.spec.js +3 -2
- package/ds-data-table-async/resizable/DSDataTable.resizerA11y.func.spec.js +14 -0
- package/ds-data-table-async/vissibility/DSDataTable.vissibility.visual.spec.js +2 -0
- package/ds-dataviz/DSDataVizCO.js +2 -0
- package/ds-dataviz/axecore/DSDataViz.axis.axe-core.func.spec.js +1 -1
- package/ds-form-combobox-multi/DSComboboxMultiCO.js +11 -0
- package/ds-form-combobox-multi/pills/DSComboboxMulti.pills.func.spec.js +59 -0
- package/ds-form-combobox-multi/pills/DSComboboxMulti.pills.visual.spec.js +39 -0
- package/ds-form-combobox-multi/with-tooltip/DSComboboxMulti.with-tooltip.axe-core.func.spec.js +39 -0
- package/ds-form-combobox-multi/with-tooltip/DSComboboxMulti.with-tooltip.func.spec.js +39 -0
- package/ds-form-combobox-multi/with-tooltip/DSComboboxMulti.with-tooltip.visual.spec.js +29 -0
- package/ds-form-combobox-single/DSComboboxSingleCO.js +2 -0
- package/ds-form-combobox-single/with-tooltip/DSComboboxSingle.with-tooltip.axe-core.func.spec.js +39 -0
- package/ds-form-combobox-single/with-tooltip/DSComboboxSingle.with-tooltip.func.spec.js +39 -0
- package/ds-form-combobox-single/with-tooltip/DSComboboxSingle.with-tooltip.visual.spec.js +29 -0
- package/ds-hooks/DSHook.usetree.func.spec.js +3 -2
- package/ds-hooks/useMask/Number/UseNumberMask.axe-core.func.spec.js +48 -0
- package/ds-pills-v2/DSPillsV2CO.js +12 -0
- package/ds-pills-v2/apply-aria-disabled/DSPills.applyAriaDisabled.func.spec.js +53 -0
- package/ds-pills-v2/apply-aria-disabled/DSPills.applyAriaDisabled.visual.spec.js +26 -0
- package/ds-pills-v2/disabled/DSPills.disabled.func.spec.js +53 -0
- package/ds-pills-v2/disabled/DSPills.disabled.visual.spec.js +33 -0
- package/package.json +150 -150
- package/paths.js +3 -3
- package/ds-accordion-native/DSAccordionNative.axe-core.func.spec.js +0 -135
- package/ds-accordion-native/DSAccordionNative.func.spec.js +0 -200
- package/ds-accordion-native/DSAccordionNative.visual.spec.js +0 -158
- package/ds-accordion-native/DSAccordionNativeCO.js +0 -178
- package/ds-accordion-native/QA_NOTES.md +0 -151
- package/ds-accordion-native/aria-disabled/DSAccordionNative.aria-disabled.axe-core.func.spec.js +0 -25
- package/ds-accordion-native/aria-disabled/DSAccordionNative.aria-disabled.visual.spec.js +0 -28
- package/ds-accordion-native/controlled/DSAccordionNative.controlled.func.spec.js +0 -22
- package/ds-accordion-native/header-structure/DSAccordionNative.header-structure.func.spec.js +0 -52
- package/ds-accordion-native/input-inside/DSAccordionNative.input-inside.func.spec.js +0 -16
- package/ds-accordion-native/role/DSAccordionNative.role-heading.func.spec.js +0 -27
- package/ds-accordion-native/scrollable-content/DSAccordionNative.scrollable-content.visual.spec.js +0 -49
- package/ds-accordion-native/slots/DSAccordionNative.slots.axe-core.func.spec.js +0 -25
- package/ds-accordion-native/slots/DSAccordionNative.slots.func.spec.js +0 -73
- package/ds-accordion-native/slots/DSAccordionNative.slots.visual.spec.js +0 -21
- package/ds-accordion-native/wrapLabel/DSAccordionNative.wrap-label.visual.spec.js +0 -21
- package/ds-card-v3/disabled/DSCardV3.disabled.visual.spec.js +0 -16
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import DSCardV3CO from '../DSCardV3CO';
|
|
2
|
+
import { axeCoreCheck } from '../../helpers';
|
|
3
|
+
|
|
4
|
+
if (
|
|
5
|
+
(!browser.capabilities['ice:options'].isPhone &&
|
|
6
|
+
!browser.capabilities['ice:options'].isTablet &&
|
|
7
|
+
browser.capabilities.browserName === 'chrome') ||
|
|
8
|
+
browser.capabilities.browserName === 'Chrome'
|
|
9
|
+
) {
|
|
10
|
+
describe('PUI-18806 - DSCardV3:: notification badge card accessibility - Axe-Core', () => {
|
|
11
|
+
before('loading page', async () => {
|
|
12
|
+
const errorOnGo = await DSCardV3CO.notificationBadgesURL.go();
|
|
13
|
+
if (errorOnGo) throw errorOnGo;
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('01: should have no accessibility violations', async () => {
|
|
17
|
+
const card = await DSCardV3CO.getCardContainer();
|
|
18
|
+
await card.waitForDisplayed();
|
|
19
|
+
|
|
20
|
+
const result = await axeCoreCheck();
|
|
21
|
+
await expect(result).toHaveLength(0);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it('02: should have no accessibility violations with an action button focused', async () => {
|
|
25
|
+
const flagAction = await DSCardV3CO.getButtonByIndex(0);
|
|
26
|
+
await flagAction.click();
|
|
27
|
+
await expect(flagAction).toBeFocused();
|
|
28
|
+
|
|
29
|
+
const result = await axeCoreCheck();
|
|
30
|
+
await expect(result).toHaveLength(0);
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Key } from 'webdriverio';
|
|
2
|
+
import DSCardV3CO from '../DSCardV3CO';
|
|
3
|
+
|
|
4
|
+
if (!browser.capabilities['ice:options'].isPhone && !browser.capabilities['ice:options'].isTablet) {
|
|
5
|
+
describe('PUI-18805 - DSCardV3:: notification badge card render - Visual', () => {
|
|
6
|
+
before('loading page', async () => {
|
|
7
|
+
const errorOnGo = await DSCardV3CO.notificationBadgesURL.go();
|
|
8
|
+
if (errorOnGo) throw errorOnGo;
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('01: should display the card with a notification badge and action buttons', async () => {
|
|
12
|
+
const card = await DSCardV3CO.getCardContainer();
|
|
13
|
+
await card.waitForDisplayed();
|
|
14
|
+
|
|
15
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
16
|
+
await expect(snapshot).toEqual(0);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('02: should display the leading action button with its focus ring - [TAB]', async () => {
|
|
20
|
+
await browser.keys(Key.Tab);
|
|
21
|
+
const flagAction = await DSCardV3CO.getButtonByIndex(0);
|
|
22
|
+
await expect(flagAction).toBeFocused();
|
|
23
|
+
|
|
24
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
25
|
+
await expect(snapshot).toEqual(0);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import DSCardV3CO from '../DSCardV3CO';
|
|
2
|
+
import { axeCoreCheck } from '../../helpers';
|
|
3
|
+
|
|
4
|
+
if (
|
|
5
|
+
(!browser.capabilities['ice:options'].isPhone &&
|
|
6
|
+
!browser.capabilities['ice:options'].isTablet &&
|
|
7
|
+
browser.capabilities.browserName === 'chrome') ||
|
|
8
|
+
browser.capabilities.browserName === 'Chrome'
|
|
9
|
+
) {
|
|
10
|
+
describe('PUI-18807 - DSCardV3:: variant accented content and menu states accessibility - Axe-Core', () => {
|
|
11
|
+
before('loading page', async () => {
|
|
12
|
+
const errorOnGo = await DSCardV3CO.variantAccentURL.go();
|
|
13
|
+
if (errorOnGo) throw errorOnGo;
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('01: should pass axe-core in the collapsed state', async () => {
|
|
17
|
+
const expandContentButton = await DSCardV3CO.getExpandContentButton();
|
|
18
|
+
await expandContentButton.waitForDisplayed();
|
|
19
|
+
await expect(expandContentButton).toHaveAttribute('aria-expanded', 'false');
|
|
20
|
+
|
|
21
|
+
const result = await axeCoreCheck();
|
|
22
|
+
await expect(result).toHaveLength(0);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('02: should pass axe-core with the card body expanded', async () => {
|
|
26
|
+
const expandContentButton = await DSCardV3CO.getExpandContentButton();
|
|
27
|
+
await expandContentButton.click();
|
|
28
|
+
await expect(expandContentButton).toHaveAttribute('aria-expanded', 'true');
|
|
29
|
+
const cardBody = await DSCardV3CO.getCardBody();
|
|
30
|
+
await expect(cardBody).toBeDisplayedInViewport();
|
|
31
|
+
|
|
32
|
+
const result = await axeCoreCheck();
|
|
33
|
+
await expect(result).toHaveLength(0);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it('03: should pass axe-core with the card actions menu open', async () => {
|
|
37
|
+
const menuButton = await DSCardV3CO.getButtonByIndex(1);
|
|
38
|
+
await menuButton.click();
|
|
39
|
+
await expect(menuButton).toHaveAttribute('aria-expanded', 'true');
|
|
40
|
+
|
|
41
|
+
const result = await axeCoreCheck();
|
|
42
|
+
await expect(result).toHaveLength(0);
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Key } from 'webdriverio';
|
|
2
|
+
import DSCardV3CO from '../DSCardV3CO';
|
|
3
|
+
import { axeCoreCheck } from '../../helpers';
|
|
4
|
+
|
|
5
|
+
if (
|
|
6
|
+
(!browser.capabilities['ice:options'].isPhone &&
|
|
7
|
+
!browser.capabilities['ice:options'].isTablet &&
|
|
8
|
+
browser.capabilities.browserName === 'chrome') ||
|
|
9
|
+
browser.capabilities.browserName === 'Chrome'
|
|
10
|
+
) {
|
|
11
|
+
describe('PUI-18808 - DSCardV3:: variant accented-disabled accessibility - Axe-Core', () => {
|
|
12
|
+
before('loading page', async () => {
|
|
13
|
+
const errorOnGo = await DSCardV3CO.variantAccentedDisabledURL.go();
|
|
14
|
+
if (errorOnGo) throw errorOnGo;
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it('01: should have no accessibility violations', async () => {
|
|
18
|
+
const card = await DSCardV3CO.getCardContainer();
|
|
19
|
+
await card.waitForDisplayed();
|
|
20
|
+
|
|
21
|
+
const result = await axeCoreCheck();
|
|
22
|
+
await expect(result).toHaveLength(0);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('02: should have no violations with the aria-disabled control focused', async () => {
|
|
26
|
+
const expandContentButton = await DSCardV3CO.getExpandContentButton();
|
|
27
|
+
await expect(expandContentButton).toHaveAttribute('aria-disabled', 'true');
|
|
28
|
+
await browser.keys(Key.Tab);
|
|
29
|
+
await expect(expandContentButton).toBeFocused();
|
|
30
|
+
|
|
31
|
+
const result = await axeCoreCheck();
|
|
32
|
+
await expect(result).toHaveLength(0);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
package/ds-card-v3/variant-accented-disabled/DSCardV3.variant-accented-disabled.visual.spec.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Key } from 'webdriverio';
|
|
2
|
+
import DSCardV3CO from '../DSCardV3CO';
|
|
3
|
+
|
|
4
|
+
if (!browser.capabilities['ice:options'].isPhone && !browser.capabilities['ice:options'].isTablet) {
|
|
5
|
+
describe('PUI-18809 - DSCardV3:: variant accented-disabled render and focus - Visual', () => {
|
|
6
|
+
before('loading page', async () => {
|
|
7
|
+
const errorOnGo = await DSCardV3CO.variantAccentedDisabledURL.go();
|
|
8
|
+
if (errorOnGo) throw errorOnGo;
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('01: should display the accented-disabled card in its collapsed state', async () => {
|
|
12
|
+
const card = await DSCardV3CO.getCardContainer();
|
|
13
|
+
await card.waitForDisplayed();
|
|
14
|
+
|
|
15
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
16
|
+
await expect(snapshot).toEqual(0);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('02: should display the focus ring on the aria-disabled expand control - [TAB]', async () => {
|
|
20
|
+
await browser.keys(Key.Tab);
|
|
21
|
+
const expandContentButton = await DSCardV3CO.getExpandContentButton();
|
|
22
|
+
await expect(expandContentButton).toBeFocused();
|
|
23
|
+
|
|
24
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
25
|
+
await expect(snapshot).toEqual(0);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import DSCardV3CO from '../DSCardV3CO';
|
|
2
|
+
|
|
3
|
+
if (
|
|
4
|
+
(!browser.capabilities['ice:options'].isPhone &&
|
|
5
|
+
!browser.capabilities['ice:options'].isTablet &&
|
|
6
|
+
browser.capabilities.browserName === 'chrome') ||
|
|
7
|
+
browser.capabilities.browserName === 'Chrome'
|
|
8
|
+
) {
|
|
9
|
+
describe('PUI-18810 - DSCardV3:: variant disabled cards non-interactive structure - Func', () => {
|
|
10
|
+
before('loading page', async () => {
|
|
11
|
+
const errorOnGo = await DSCardV3CO.variantDisabledURL.go();
|
|
12
|
+
if (errorOnGo) throw errorOnGo;
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it('01: should render both disabled cards as divs without the HTML disabled attribute', async () => {
|
|
16
|
+
const disabledCard = await DSCardV3CO.getCardContainerByIndex(0);
|
|
17
|
+
await disabledCard.waitForDisplayed();
|
|
18
|
+
expect((await disabledCard.getTagName()).toLowerCase()).toBe('div');
|
|
19
|
+
expect(await disabledCard.getAttribute('disabled')).toBeNull();
|
|
20
|
+
|
|
21
|
+
const accentedDisabledCard = await DSCardV3CO.getCardContainerByIndex(1);
|
|
22
|
+
await expect(accentedDisabledCard).toBeDisplayed();
|
|
23
|
+
expect((await accentedDisabledCard.getTagName()).toLowerCase()).toBe('div');
|
|
24
|
+
expect(await accentedDisabledCard.getAttribute('disabled')).toBeNull();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it('02: should keep both cards visible to assistive technology', async () => {
|
|
28
|
+
const disabledCard = await DSCardV3CO.getCardContainerByIndex(0);
|
|
29
|
+
expect(await disabledCard.getAttribute('aria-hidden')).toBeNull();
|
|
30
|
+
|
|
31
|
+
const accentedDisabledCard = await DSCardV3CO.getCardContainerByIndex(1);
|
|
32
|
+
expect(await accentedDisabledCard.getAttribute('aria-hidden')).toBeNull();
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('03: should expose the title and description of both cards', async () => {
|
|
36
|
+
const firstHeading = await DSCardV3CO.getHByLevelAndIndex(3, 0);
|
|
37
|
+
await expect(firstHeading).toBeExisting();
|
|
38
|
+
await expect(firstHeading).toHaveText('Disabled Card');
|
|
39
|
+
|
|
40
|
+
const firstDescription = await DSCardV3CO.getElement(1);
|
|
41
|
+
await expect(firstDescription).toHaveText('Description card');
|
|
42
|
+
|
|
43
|
+
const secondHeading = await DSCardV3CO.getHByLevelAndIndex(3, 1);
|
|
44
|
+
await expect(secondHeading).toBeExisting();
|
|
45
|
+
await expect(secondHeading).toHaveText('Disabled Card');
|
|
46
|
+
|
|
47
|
+
const secondDescription = await DSCardV3CO.getElement(3);
|
|
48
|
+
await expect(secondDescription).toHaveText('Description card');
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
it('04: should contain no focusable controls in either card', async () => {
|
|
52
|
+
const disabledCard = await DSCardV3CO.getCardContainerByIndex(0);
|
|
53
|
+
const firstCardControls = await disabledCard.$$('button, a[href], input, select, textarea, [tabindex]');
|
|
54
|
+
expect(firstCardControls).toHaveLength(0);
|
|
55
|
+
|
|
56
|
+
const accentedDisabledCard = await DSCardV3CO.getCardContainerByIndex(1);
|
|
57
|
+
const secondCardControls = await accentedDisabledCard.$$('button, a[href], input, select, textarea, [tabindex]');
|
|
58
|
+
expect(secondCardControls).toHaveLength(0);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import DSCardV3CO from '../DSCardV3CO';
|
|
2
|
+
|
|
3
|
+
if (!browser.capabilities['ice:options'].isPhone && !browser.capabilities['ice:options'].isTablet) {
|
|
4
|
+
describe('PUI-18811 - DSCardV3:: variant disabled and accented-disabled render - Visual', () => {
|
|
5
|
+
before('loading page', async () => {
|
|
6
|
+
const errorOnGo = await DSCardV3CO.variantDisabledURL.go();
|
|
7
|
+
if (errorOnGo) throw errorOnGo;
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('01: should display the disabled and accented-disabled cards', async () => {
|
|
11
|
+
const disabledCard = await DSCardV3CO.getCardContainerByIndex(0);
|
|
12
|
+
await disabledCard.waitForDisplayed();
|
|
13
|
+
const accentedDisabledCard = await DSCardV3CO.getCardContainerByIndex(1);
|
|
14
|
+
await expect(accentedDisabledCard).toBeDisplayed();
|
|
15
|
+
|
|
16
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
17
|
+
await expect(snapshot).toEqual(0);
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
}
|
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
// Tests for the fix introduced in PUI-17888 (disabled attribute on non-interactive card)
|
|
10
10
|
describe('PUI-18598 - DSCardV3:: disabled variant has no HTML disabled attribute - Func', () => {
|
|
11
11
|
before('loading page', async () => {
|
|
12
|
-
const errorOnGo = await DSCardV3CO.
|
|
12
|
+
const errorOnGo = await DSCardV3CO.variantDisabledURL.go();
|
|
13
13
|
if (errorOnGo) throw errorOnGo;
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -245,7 +245,7 @@ if (!browser.capabilities['ice:options'].isPhone && !browser.capabilities['ice:o
|
|
|
245
245
|
|
|
246
246
|
describe('PUI-9222 - Chat, Long Words, Visual Tests', () => {
|
|
247
247
|
before('loading page', async () => {
|
|
248
|
-
const errorOnGo = await ChatCO.
|
|
248
|
+
const errorOnGo = await ChatCO.basicTestURL.go();
|
|
249
249
|
if (errorOnGo) throw errorOnGo;
|
|
250
250
|
});
|
|
251
251
|
it('should display long words breaking at composer', async () => {
|
package/ds-chat/DSChatCO.js
CHANGED
|
@@ -11,15 +11,15 @@ export default class DSChatCO extends PageObject {
|
|
|
11
11
|
|
|
12
12
|
static containerURL = new Urlbuilder(PATH_E2E_CHAT, 'container');
|
|
13
13
|
|
|
14
|
-
static loadMoreURL = new Urlbuilder(PATH_E2E_CHAT, 'container-load-more');
|
|
14
|
+
static loadMoreURL = new Urlbuilder(PATH_E2E_CHAT, 'container-load-more-test');
|
|
15
15
|
|
|
16
|
-
static loadingURL = new Urlbuilder(PATH_E2E_CHAT, 'loading-container');
|
|
16
|
+
static loadingURL = new Urlbuilder(PATH_E2E_CHAT, 'loading-container-test');
|
|
17
17
|
|
|
18
|
-
static loadingErrorURL = new Urlbuilder(PATH_E2E_CHAT, 'loading-error');
|
|
18
|
+
static loadingErrorURL = new Urlbuilder(PATH_E2E_CHAT, 'loading-error-test');
|
|
19
19
|
|
|
20
|
-
static floatingExampleURL = new Urlbuilder(PATH_E2E_CHAT, 'floating-example');
|
|
20
|
+
static floatingExampleURL = new Urlbuilder(PATH_E2E_CHAT, 'floating-example-test');
|
|
21
21
|
|
|
22
|
-
static focusCasesURL = new Urlbuilder(PATH_E2E_CHAT, 'container-focus-cases');
|
|
22
|
+
static focusCasesURL = new Urlbuilder(PATH_E2E_CHAT, 'container-focus-cases-test');
|
|
23
23
|
|
|
24
24
|
static mobileContainerURL = new Urlbuilder(PATH_E2E_CHAT, 'mobile-container-test');
|
|
25
25
|
|
|
@@ -27,23 +27,23 @@ export default class DSChatCO extends PageObject {
|
|
|
27
27
|
|
|
28
28
|
static tooltipPosition = new Urlbuilder(PATH_E2E_CHAT, 'tooltip-position-test');
|
|
29
29
|
|
|
30
|
-
static focuseableBanners = new Urlbuilder(PATH_E2E_CHAT, 'focus-on-banner');
|
|
30
|
+
static focuseableBanners = new Urlbuilder(PATH_E2E_CHAT, 'focus-on-banner-test');
|
|
31
31
|
|
|
32
|
-
static newMessages = new Urlbuilder(PATH_E2E_CHAT, 'container-new-messages');
|
|
32
|
+
static newMessages = new Urlbuilder(PATH_E2E_CHAT, 'container-new-messages-test');
|
|
33
33
|
|
|
34
|
-
static nonDeliveredURL = new Urlbuilder(PATH_E2E_CHAT, 'non-delivered-messages');
|
|
34
|
+
static nonDeliveredURL = new Urlbuilder(PATH_E2E_CHAT, 'non-delivered-messages-test');
|
|
35
35
|
|
|
36
|
-
static nonGridInfluencerURL = new Urlbuilder(PATH_E2E_CHAT, 'non-grid-influencer-integration');
|
|
36
|
+
static nonGridInfluencerURL = new Urlbuilder(PATH_E2E_CHAT, 'non-grid-influencer-integration-test');
|
|
37
37
|
|
|
38
|
-
static customBanner = new Urlbuilder(PATH_E2E_CHAT, 'custom-banner');
|
|
38
|
+
static customBanner = new Urlbuilder(PATH_E2E_CHAT, 'custom-banner-test');
|
|
39
39
|
|
|
40
|
-
static emptyState = new Urlbuilder(PATH_E2E_CHAT, 'empty-state');
|
|
40
|
+
static emptyState = new Urlbuilder(PATH_E2E_CHAT, 'empty-state-test');
|
|
41
41
|
|
|
42
42
|
static globalLineHeight = new Urlbuilder(PATH_E2E_CHAT, 'global-line-height');
|
|
43
43
|
|
|
44
44
|
static unreadMessagesBanner = new Urlbuilder(PATH_E2E_CHAT, 'unread-messages-banner');
|
|
45
45
|
|
|
46
|
-
static
|
|
46
|
+
static basicTestURL = new Urlbuilder(PATH_E2E_CHAT, 'basic-test');
|
|
47
47
|
|
|
48
48
|
// selector
|
|
49
49
|
static async isTyping() {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PATH_E2E_CHAT_CARD } from '../../paths';
|
|
2
2
|
import { PageObject, Urlbuilder } from '../../helpers';
|
|
3
3
|
|
|
4
4
|
export default class CardCO extends PageObject {
|
|
5
|
-
static chatCardURL = new Urlbuilder(PATH_CHAT_PARTS, 'chat-card');
|
|
6
|
-
|
|
7
5
|
static cardBasicURL = new Urlbuilder(PATH_E2E_CHAT_CARD, 'basic-test');
|
|
8
6
|
|
|
9
7
|
static cardWithNotificationBadgesURL = new Urlbuilder(PATH_E2E_CHAT_CARD, 'with-notification-badges-test');
|
|
@@ -13,7 +13,7 @@ export default class ComposerCO extends PageObject {
|
|
|
13
13
|
|
|
14
14
|
static responsiveContainerUCURL = new Urlbuilder(PATH_E2E_CHAT, 'responsive-container');
|
|
15
15
|
|
|
16
|
-
static containerFocusCasesURL = new Urlbuilder(PATH_E2E_CHAT, 'container-focus-cases');
|
|
16
|
+
static containerFocusCasesURL = new Urlbuilder(PATH_E2E_CHAT, 'container-focus-cases-test');
|
|
17
17
|
|
|
18
18
|
static LONG_STRING = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vehicula bibendum nulla';
|
|
19
19
|
|
|
@@ -2,8 +2,10 @@ import { PATH_E2E_CHAT } from '../../paths';
|
|
|
2
2
|
import { PageObject, Urlbuilder } from '../../helpers';
|
|
3
3
|
|
|
4
4
|
export default class FloatingButtonCO extends PageObject {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
// FloatingExampleTest renders the floating button alone at rest (its chat panel is gated behind
|
|
6
|
+
// `show`, initially false), so it covers both the isolated-button visual states and the in-context
|
|
7
|
+
// axe-core run. The former dedicated `float-button` story was removed in the
|
|
8
|
+
// ds-chat-floating-button compliance retrofit and is not coming back.
|
|
7
9
|
static floatingExampleURL = new Urlbuilder(PATH_E2E_CHAT, 'floating-example-test');
|
|
8
10
|
|
|
9
11
|
// selectors
|
|
@@ -5,7 +5,7 @@ import { mouseOver, keyboardActions, tickActions, performKeyboardAction } from '
|
|
|
5
5
|
if (!browser.capabilities['ice:options'].isPhone) {
|
|
6
6
|
describe('PUI-6669 - Chat, Floating Button, States - Visual Tests', () => {
|
|
7
7
|
beforeEach('loading page', async () => {
|
|
8
|
-
const errorOnGo = await FloatingButtonCO.
|
|
8
|
+
const errorOnGo = await FloatingButtonCO.floatingExampleURL.go();
|
|
9
9
|
if (errorOnGo) throw errorOnGo;
|
|
10
10
|
});
|
|
11
11
|
it('should display the floating button in default state', async () => {
|
|
@@ -19,24 +19,24 @@ if (
|
|
|
19
19
|
const checkbox = await DSControlledCheckboxCO.getCustomCheckbox();
|
|
20
20
|
await checkbox.waitForExist();
|
|
21
21
|
const result = await axeCoreCheck();
|
|
22
|
-
expect(result
|
|
22
|
+
await expect(result).toHaveLength(0);
|
|
23
23
|
});
|
|
24
24
|
it('02: Evaluate checkbox accessibility with axe-core (focused)', async () => {
|
|
25
25
|
await browser.keys(Key.Tab);
|
|
26
26
|
const result = await axeCoreCheck();
|
|
27
|
-
expect(result
|
|
27
|
+
await expect(result).toHaveLength(0);
|
|
28
28
|
});
|
|
29
29
|
it('03: Evaluate checkbox accessibility with axe-core (hovered)', async () => {
|
|
30
30
|
const checkbox = await DSControlledCheckboxCO.getCustomCheckbox();
|
|
31
31
|
await mouseOver(checkbox);
|
|
32
32
|
const result = await axeCoreCheck();
|
|
33
|
-
expect(result
|
|
33
|
+
await expect(result).toHaveLength(0);
|
|
34
34
|
});
|
|
35
35
|
it('04: Evaluate checkbox accessibility with axe-core (clicked)', async () => {
|
|
36
36
|
const checkbox = await DSControlledCheckboxCO.getCustomCheckbox();
|
|
37
37
|
await checkbox.click();
|
|
38
38
|
const result = await axeCoreCheck();
|
|
39
|
-
expect(result
|
|
39
|
+
await expect(result).toHaveLength(0);
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
}
|
package/ds-controlled-form/ds-controlled-checkbox/Basic/DSControlledCheckbox.basic.visual.spec.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Key } from 'webdriverio';
|
|
2
|
+
import { mouseOver } from '../../../helpers';
|
|
3
|
+
import DSControlledCheckboxCO from '../DSControlledCheckboxCO';
|
|
4
|
+
|
|
5
|
+
if (!browser.capabilities['ice:options'].isPhone && !browser.capabilities['ice:options'].isTablet) {
|
|
6
|
+
describe('PUI-18822 - DSControlledCheckbox: update to latest spec and typography- visual test', () => {
|
|
7
|
+
before('loading page', async () => {
|
|
8
|
+
const errorOnGo = await DSControlledCheckboxCO.basicURL.go();
|
|
9
|
+
if (errorOnGo) throw errorOnGo;
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it('01: the checked checkbox is not focused', async () => {
|
|
13
|
+
const checkbox = await DSControlledCheckboxCO.getCustomCheckbox();
|
|
14
|
+
await checkbox.waitForExist();
|
|
15
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
16
|
+
await expect(snapshot).toEqual(0);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('02: checkbox hover even when checked', async () => {
|
|
20
|
+
const controlBox = await DSControlledCheckboxCO.getCheckboxInputWrapper();
|
|
21
|
+
await controlBox.moveTo();
|
|
22
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
23
|
+
await expect(snapshot).toEqual(0);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it('03: the checked checkbox is focused', async () => {
|
|
27
|
+
await browser.keys(Key.Tab);
|
|
28
|
+
const checkbox = await DSControlledCheckboxCO.getCustomCheckbox();
|
|
29
|
+
await expect(checkbox).toBeFocused();
|
|
30
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
31
|
+
await expect(snapshot).toEqual(0);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it('04: checkbox is focused but unchecked', async () => {
|
|
35
|
+
await browser.keys(Key.Space);
|
|
36
|
+
const checkbox = await DSControlledCheckboxCO.getCustomCheckbox();
|
|
37
|
+
await expect(checkbox).toBeFocused();
|
|
38
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
39
|
+
await expect(snapshot).toEqual(0);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('05: checkbox not focused, not hovered when unchecked', async () => {
|
|
43
|
+
await browser.keys(Key.Tab);
|
|
44
|
+
await mouseOver(null, 400, 300);
|
|
45
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
46
|
+
await expect(snapshot).toEqual(0);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
it('06: checkbox hover even when unchecked', async () => {
|
|
50
|
+
const controlBox = await DSControlledCheckboxCO.getCheckboxInputWrapper();
|
|
51
|
+
await controlBox.moveTo();
|
|
52
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
53
|
+
await expect(snapshot).toEqual(0);
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
@@ -29,6 +29,10 @@ export default class DSControlledCheckboxCO extends PageObject {
|
|
|
29
29
|
return $('[data-testid="ds-checkbox"]');
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
static async getCheckboxInputWrapper() {
|
|
33
|
+
return $('[data-testid="ds-checkbox-input-wrapper"]');
|
|
34
|
+
}
|
|
35
|
+
|
|
32
36
|
static async getCustomCheckbox() {
|
|
33
37
|
return $('[data-testid="custom-data-testid"]');
|
|
34
38
|
}
|
|
@@ -11,7 +11,7 @@ if (!browser.capabilities['ice:options'].isPhone && !browser.capabilities['ice:o
|
|
|
11
11
|
const checkbox = await DSControlledCheckboxCO.getCheckboxByLabel('Group');
|
|
12
12
|
await checkbox.waitForDisplayed();
|
|
13
13
|
await browser.keys(Key.Tab);
|
|
14
|
-
const snapshot = await browser.
|
|
14
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
15
15
|
await expect(snapshot).toEqual(0);
|
|
16
16
|
});
|
|
17
17
|
});
|
|
@@ -19,24 +19,24 @@ if (
|
|
|
19
19
|
const checkbox = await DSControlledCheckboxCO.getCheckboxByIndex(0);
|
|
20
20
|
await checkbox.waitForExist();
|
|
21
21
|
const result = await axeCoreCheck();
|
|
22
|
-
expect(result
|
|
22
|
+
await expect(result).toHaveLength(0);
|
|
23
23
|
});
|
|
24
24
|
it('02: Evaluate checkbox accessibility with axe-core (focused)', async () => {
|
|
25
25
|
await browser.keys(Key.Tab);
|
|
26
26
|
const result = await axeCoreCheck();
|
|
27
|
-
expect(result
|
|
27
|
+
await expect(result).toHaveLength(0);
|
|
28
28
|
});
|
|
29
29
|
it('03: Evaluate checkbox accessibility with axe-core (hovered)', async () => {
|
|
30
30
|
const checkbox = await DSControlledCheckboxCO.getCheckboxByIndex(0);
|
|
31
31
|
await mouseOver(checkbox);
|
|
32
32
|
const result = await axeCoreCheck();
|
|
33
|
-
expect(result
|
|
33
|
+
await expect(result).toHaveLength(0);
|
|
34
34
|
});
|
|
35
35
|
it('04: Evaluate checkbox accessibility with axe-core (clicked)', async () => {
|
|
36
36
|
const checkbox = await DSControlledCheckboxCO.getCheckboxByIndex(1);
|
|
37
37
|
await checkbox.click();
|
|
38
38
|
const result = await axeCoreCheck();
|
|
39
|
-
expect(result
|
|
39
|
+
await expect(result).toHaveLength(0);
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Key } from 'webdriverio';
|
|
1
2
|
import { mouseOver } from '../../../helpers';
|
|
2
3
|
import DSControlledCheckboxCO from '../DSControlledCheckboxCO';
|
|
3
4
|
|
|
@@ -13,7 +14,76 @@ if (!browser.capabilities['ice:options'].isPhone && !browser.capabilities['ice:o
|
|
|
13
14
|
await checkbox1.click();
|
|
14
15
|
await checkbox1.click();
|
|
15
16
|
await mouseOver(checkbox2);
|
|
16
|
-
const snapshot = await browser.
|
|
17
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
18
|
+
await expect(snapshot).toEqual(0);
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
describe('PUI-18849 - DSControlledCheckbox - hasError - Visual Test', () => {
|
|
23
|
+
before('loading page', async () => {
|
|
24
|
+
const errorOnGo = await DSControlledCheckboxCO.hasError.go();
|
|
25
|
+
if (errorOnGo) throw errorOnGo;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('01: the partial selected checkbox is not focused', async () => {
|
|
29
|
+
const checkbox = await DSControlledCheckboxCO.getCheckboxByIndex(0);
|
|
30
|
+
await checkbox.waitForExist();
|
|
31
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
32
|
+
await expect(snapshot).toEqual(0);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('02: checkbox hover even when partial selected', async () => {
|
|
36
|
+
const controlBox = await DSControlledCheckboxCO.getCheckboxByIndex(0);
|
|
37
|
+
await controlBox.moveTo();
|
|
38
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
39
|
+
await expect(snapshot).toEqual(0);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('03: the partial selected checkbox is focused', async () => {
|
|
43
|
+
await browser.keys(Key.Tab);
|
|
44
|
+
const checkbox = await DSControlledCheckboxCO.getCheckboxByIndex(0);
|
|
45
|
+
await expect(checkbox).toBeFocused();
|
|
46
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
47
|
+
await expect(snapshot).toEqual(0);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it('04: checkbox is focused but not selected', async () => {
|
|
51
|
+
await browser.keys(Key.Space);
|
|
52
|
+
await browser.keys(Key.Space);
|
|
53
|
+
const checkbox = await DSControlledCheckboxCO.getCheckboxByIndex(0);
|
|
54
|
+
await expect(checkbox).toBeFocused();
|
|
55
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
56
|
+
await expect(snapshot).toEqual(0);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('05: checkbox not focused, not hovered when not selected', async () => {
|
|
60
|
+
await browser.keys(Key.Tab);
|
|
61
|
+
await mouseOver(null, 400, 300);
|
|
62
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
63
|
+
await expect(snapshot).toEqual(0);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('06: checkbox hover even when not selected', async () => {
|
|
67
|
+
const controlBox = await DSControlledCheckboxCO.getCheckboxByIndex(0);
|
|
68
|
+
await controlBox.moveTo();
|
|
69
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
70
|
+
await expect(snapshot).toEqual(0);
|
|
71
|
+
});
|
|
72
|
+
it('07: the selected checkbox is focused', async () => {
|
|
73
|
+
await browser.keys(Key.Tab);
|
|
74
|
+
await browser.keys(Key.Space);
|
|
75
|
+
const controlBox = await DSControlledCheckboxCO.getCheckboxByIndex(0);
|
|
76
|
+
await mouseOver(controlBox);
|
|
77
|
+
const checkbox = await DSControlledCheckboxCO.getCheckboxByIndex(2);
|
|
78
|
+
await expect(checkbox).toBeFocused();
|
|
79
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
80
|
+
await expect(snapshot).toEqual(0);
|
|
81
|
+
});
|
|
82
|
+
it('08: the selected checkbox is hovered', async () => {
|
|
83
|
+
await browser.keys(Key.Tab);
|
|
84
|
+
const checkbox = await DSControlledCheckboxCO.getCheckboxByIndex(2);
|
|
85
|
+
await mouseOver(checkbox);
|
|
86
|
+
const snapshot = await browser.percyCheckScreenshot();
|
|
17
87
|
await expect(snapshot).toEqual(0);
|
|
18
88
|
});
|
|
19
89
|
});
|
|
@@ -19,24 +19,24 @@ if (
|
|
|
19
19
|
const checkbox = await DSControlledCheckboxCO.getCheckboxByIndex(0);
|
|
20
20
|
await checkbox.waitForExist();
|
|
21
21
|
const result = await axeCoreCheck();
|
|
22
|
-
expect(result
|
|
22
|
+
await expect(result).toHaveLength(0);
|
|
23
23
|
});
|
|
24
24
|
it('02: Evaluate checkbox accessibility with axe-core (focused)', async () => {
|
|
25
25
|
await browser.keys(Key.Tab);
|
|
26
26
|
const result = await axeCoreCheck();
|
|
27
|
-
expect(result
|
|
27
|
+
await expect(result).toHaveLength(0);
|
|
28
28
|
});
|
|
29
29
|
it('03: Evaluate checkbox accessibility with axe-core (hovered)', async () => {
|
|
30
30
|
const checkbox = await DSControlledCheckboxCO.getCheckboxByIndex(0);
|
|
31
31
|
await mouseOver(checkbox);
|
|
32
32
|
const result = await axeCoreCheck();
|
|
33
|
-
expect(result
|
|
33
|
+
await expect(result).toHaveLength(0);
|
|
34
34
|
});
|
|
35
35
|
it('04: Evaluate checkbox accessibility with axe-core (clicked)', async () => {
|
|
36
36
|
const checkbox = await DSControlledCheckboxCO.getCheckboxByIndex(2);
|
|
37
37
|
await checkbox.click();
|
|
38
38
|
const result = await axeCoreCheck();
|
|
39
|
-
expect(result
|
|
39
|
+
await expect(result).toHaveLength(0);
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
}
|