dimsum-e2e-tests 3.80.0-next.10 → 3.80.0-next.13
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 +18 -0
- package/ds-apppicker/aria-disabled/DSAppPicker.aria-disabled.visual.spec.js +14 -1
- package/ds-apppicker/basic/DSAppPicker.basic.visual.spec.js +12 -7
- package/ds-fast-list/DSFastListCO.js +37 -0
- package/ds-fast-list/basic/DSFastList.basic.axe-core.func.spec.js +28 -0
- package/ds-fast-list/basic/DSFastList.basic.visual.spec.js +23 -0
- package/ds-fast-list/scroll-to-index/DSFastList.scroll-to-index.func.spec.js +45 -0
- package/ds-pills-v2/DSPillsV2CO.js +53 -1
- package/ds-pills-v2/pitfalls/DSPills.inputPill.func.spec.js +26 -0
- package/ds-pills-v2/pitfalls/DSPills.inputWithFormItemBlockURL.axe-core.func.spec.js +38 -0
- package/ds-pills-v2/pitfalls/DSPills.inputWithFormItemBlockURL.func.spec.js +72 -0
- package/ds-virtuallist/DSVirtualList.visual.spec.js +4 -5
- package/ds-virtuallist/DSVirtualListCO.js +28 -9
- package/ds-virtuallist/basic/DSVirtualList.basic.axe-core.func.spec.js +28 -0
- package/ds-virtuallist/scroll-to-index/DSVirtualList.scroll-to-index.func.spec.js +45 -0
- package/package.json +148 -149
- package/paths.js +3 -49
- package/ds-mobile/Accordion/DSAccordion.visual.spec.js +0 -33
- package/ds-mobile/Accordion/DSAccordionCO.js +0 -37
- package/ds-mobile/CategoryBox/CategoryBox.visual.spec.js +0 -18
- package/ds-mobile/CategoryBox/CategoryBoxCO.js +0 -17
- package/ds-mobile/CollectionBox/CollectionBox.visual.spec.js +0 -16
- package/ds-mobile/CollectionBox/CollectionBoxCO.js +0 -15
- package/ds-mobile/GlobalHeader/DSGlobalHeader.visual.spec.js +0 -55
- package/ds-mobile/GlobalHeader/DSGlobalHeaderCO.js +0 -36
- package/ds-mobile/GroupBox/GroupBox.visual.spec.js +0 -15
- package/ds-mobile/GroupBox/GroupBoxCO.js +0 -15
- package/ds-mobile/InfiniteLoader/InfiniteLoader.func.spec.js +0 -90
- package/ds-mobile/InfiniteLoader/InfiniteLoaderCO.js +0 -29
- package/ds-mobile/MobileActionToolbar/MobileActionToolbar.visual.spec.js +0 -39
- package/ds-mobile/MobileActionToolbar/MobileActionToolbarCO.js +0 -19
- package/ds-mobile/MobileBanner/MobileBanner.visual.spec.js +0 -23
- package/ds-mobile/MobileBanner/MobileBannerCO.js +0 -23
- package/ds-mobile/MobileCard/Card.func.spec.js +0 -38
- package/ds-mobile/MobileCard/Card.visual.spec.js +0 -103
- package/ds-mobile/MobileCard/MobileCardCO.js +0 -42
- package/ds-mobile/MobileContextMenu/MobileContextMenu.func.spec.js +0 -88
- package/ds-mobile/MobileContextMenu/MobileContextMenu.visual.spec.js +0 -31
- package/ds-mobile/MobileContextMenu/MobileContextMenuCO.js +0 -72
- package/ds-mobile/MobileDatePicker/MobileDatePicker.func.spec.js +0 -15
- package/ds-mobile/MobileDatePicker/MobileDatePicker.visual.spec.js +0 -15
- package/ds-mobile/MobileDatePicker/MobileDatePickerCO.js +0 -35
- package/ds-mobile/MobileDropdownMenu/MobileDropdownMenu.func.spec.js +0 -38
- package/ds-mobile/MobileDropdownMenu/MobileDropdownMenu.visual.spec.js +0 -16
- package/ds-mobile/MobileDropdownMenu/MobileDropdownMenuCO.js +0 -37
- package/ds-mobile/MobileEmptyState/MobileEmptyState.visual.spec.js +0 -15
- package/ds-mobile/MobileEmptyState/MobileEmptyStateCO.js +0 -14
- package/ds-mobile/MobileFilterbar/MobileFilterbar.visual.spec.js +0 -39
- package/ds-mobile/MobileFilterbar/MobileFilterbarCO.js +0 -19
- package/ds-mobile/MobileFooter/MobileFooter.func.spec.js +0 -26
- package/ds-mobile/MobileFooter/MobileFooter.visual.spec.js +0 -51
- package/ds-mobile/MobileFooter/MobileFooterCO.js +0 -27
- package/ds-mobile/MobileListItem/MobileListItem.visual.spec.js +0 -56
- package/ds-mobile/MobileListItem/MobileListItemCO.js +0 -19
- package/ds-mobile/MobileLoadingPage/MobileLoadingPage.visual.spec.js +0 -37
- package/ds-mobile/MobileLoadingPage/MobileLoadingPageCO.js +0 -23
- package/ds-mobile/MobilePageHeader/MobilePageHeader.func.spec.js +0 -22
- package/ds-mobile/MobilePageHeader/MobilePageHeader.visual.spec.js +0 -135
- package/ds-mobile/MobilePageHeader/MobilePageHeaderCO.js +0 -67
- package/ds-mobile/MobileSelectList/MobileSelectList.visual.spec.js +0 -56
- package/ds-mobile/MobileSelectList/MobileSelectListCO.js +0 -21
- package/ds-mobile/MobileSeparator/MobileSeparator.visual.spec.js +0 -28
- package/ds-mobile/MobileSeparator/MobileSeparatorCO.js +0 -17
- package/ds-mobile/MobileTimePicker/MobileTimePickerCO.js +0 -41
- package/ds-mobile/Modal/MobileModal.visual.spec.js +0 -56
- package/ds-mobile/Modal/MobileModalCO.js +0 -28
- package/ds-mobile/PageFilter/PageFilter.visual.spec.js +0 -46
- package/ds-mobile/PageFilter/PageFilterCO.js +0 -19
- package/ds-mobile/PageForm/PageForm.visual.spec.js +0 -14
- package/ds-mobile/PageForm/PageFormCO.js +0 -11
- package/ds-mobile/PageList/PageList.visual.spec.js +0 -31
- package/ds-mobile/PageList/PageListCO.js +0 -19
- package/ds-mobile/PageSummary/PageSummary.visual.spec.js +0 -20
- package/ds-mobile/PageSummary/PageSummaryCO.js +0 -11
- package/ds-mobile/SwipeToRefresh/SwipeToRefresh.func.spec.js +0 -26
- package/ds-mobile/SwipeToRefresh/SwipeToRefreshCO.js +0 -20
- package/ds-mobile/Tabs/MobileTabs.visual.spec.js +0 -91
- package/ds-mobile/Tabs/TabsCO.js +0 -37
- package/ds-mobile/Tooltip/MobileTooltip.func.spec.js +0 -17
- package/ds-mobile/Tooltip/MobileTooltip.visual.spec.js +0 -16
- package/ds-mobile/Tooltip/TooltipCO.js +0 -23
- package/ds-mobile/helpers.js +0 -7
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { PATH_MOBILE_CONTEXT_MENU, PATH_E2E_MOBILE_CONTEXT_MENU } from '../../paths';
|
|
2
|
-
import { PageObject, Urlbuilder } from '../helpers';
|
|
3
|
-
|
|
4
|
-
export default class MobileContextMenu extends PageObject {
|
|
5
|
-
static basicURL = new Urlbuilder(PATH_MOBILE_CONTEXT_MENU, 'basic');
|
|
6
|
-
|
|
7
|
-
static withFooterURL = new Urlbuilder(PATH_MOBILE_CONTEXT_MENU, 'with-footer');
|
|
8
|
-
|
|
9
|
-
static groupURL = new Urlbuilder(PATH_MOBILE_CONTEXT_MENU, 'group');
|
|
10
|
-
|
|
11
|
-
static handleOpenURL = new Urlbuilder(PATH_MOBILE_CONTEXT_MENU, 'handle-open-state');
|
|
12
|
-
|
|
13
|
-
static singleSelect = new Urlbuilder(PATH_MOBILE_CONTEXT_MENU, 'single-select');
|
|
14
|
-
|
|
15
|
-
static overlayUseCaseUrl = new Urlbuilder(PATH_E2E_MOBILE_CONTEXT_MENU, 'not-triggering-click-below-overlay');
|
|
16
|
-
|
|
17
|
-
static multiSelect = new Urlbuilder(PATH_MOBILE_CONTEXT_MENU, 'multi-select');
|
|
18
|
-
|
|
19
|
-
static multiSelectGroup = new Urlbuilder(PATH_MOBILE_CONTEXT_MENU, 'multi-select-group');
|
|
20
|
-
|
|
21
|
-
static handleFocus = new Urlbuilder(PATH_E2E_MOBILE_CONTEXT_MENU, 'handle-focus-test');
|
|
22
|
-
|
|
23
|
-
static async getHandleOpenButton() {
|
|
24
|
-
return $('[data-testid="ds-button"]');
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
static async getCounterButton() {
|
|
28
|
-
return $('[data-testid="em-ds-button-counter"]');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
static async getCounterTextNumber() {
|
|
32
|
-
return (await (await $('[data-testid="em-ds-context-menu-counter"]')).getText()).slice(-1);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
static async getContextMenu() {
|
|
36
|
-
return $('[data-testid="ds-mobile-context-menu"]');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
static async getMenuItem(index) {
|
|
40
|
-
return (await $$('[data-testid="mobile-touchable"]'))[index];
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
static async getLeftAddonSize(index) {
|
|
44
|
-
const size = await (await this.getLeftAddon(index)).getCSSProperty('grid-template-rows');
|
|
45
|
-
return size.value;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
static async getCheckMark(index) {
|
|
49
|
-
return (await $$('[data-testid="mobile-touchable"]'))[index].$('[data-testid="leftAddon-checkmark"]');
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
static async getCheckBox(index) {
|
|
53
|
-
return (await $$('[data-testid="leftAddon-checkbox"]'))[index];
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
static async getLeftAddon(index) {
|
|
57
|
-
return (await $$('[data-testid="left-addon"]'))[index];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
static async getChecked() {
|
|
61
|
-
return $('[aria-checked="true"]');
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
static async getBackDrop() {
|
|
65
|
-
return $('[data-testid="ds-backdrop"]');
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Snapshots
|
|
69
|
-
static snapshotPath(example = 'basic') {
|
|
70
|
-
return PageObject.getSnapshotPathBuilder('MobileContextMenu', example, 'ds-mobile');
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import MobileDatePickerCO from './MobileDatePickerCO';
|
|
2
|
-
|
|
3
|
-
if (MobileDatePickerCO.isPhone()) {
|
|
4
|
-
describe('MobileDatePicker', () => {
|
|
5
|
-
before('loading page', async () => {
|
|
6
|
-
const errorOnGo = await MobileDatePickerCO.basicURL.go();
|
|
7
|
-
if (errorOnGo) throw errorOnGo;
|
|
8
|
-
});
|
|
9
|
-
it('should trigger focus on input if icon is clicked', async () => {
|
|
10
|
-
await MobileDatePickerCO.clickButton();
|
|
11
|
-
const input = await MobileDatePickerCO.getInput();
|
|
12
|
-
await expect(input).toBeFocused();
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import MobileDatePickerCO from './MobileDatePickerCO';
|
|
2
|
-
|
|
3
|
-
if (MobileDatePickerCO.isPhone()) {
|
|
4
|
-
describe('MobileDatePicker', () => {
|
|
5
|
-
before('loading page', async () => {
|
|
6
|
-
const errorOnGo = await MobileDatePickerCO.basicURL.go();
|
|
7
|
-
if (errorOnGo) throw errorOnGo;
|
|
8
|
-
});
|
|
9
|
-
it('basic without focus', async () => {
|
|
10
|
-
await (await MobileDatePickerCO.getButton()).waitForDisplayed({ timeout: 10000 });
|
|
11
|
-
const snapshot = await browser.checkSnapshot(MobileDatePickerCO.snapshotPath());
|
|
12
|
-
await expect(snapshot).toEqual(0);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { PATH_MOBILE_DATE_PICKER } from '../../paths';
|
|
2
|
-
import { PageObject, Urlbuilder } from '../helpers';
|
|
3
|
-
|
|
4
|
-
export default class MobileDatePickerCO extends PageObject {
|
|
5
|
-
static basicURL = new Urlbuilder(PATH_MOBILE_DATE_PICKER, 'basic');
|
|
6
|
-
|
|
7
|
-
static async getInput() {
|
|
8
|
-
return $('[data-testid="ds-mobile-date-picker"]');
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
static async wait() {
|
|
12
|
-
await (await MobileDatePickerCO.getInput()).waitForDisplayed({ timeout: 12000 });
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
static async getButton() {
|
|
16
|
-
return $('[data-testid="ds-mobile-date-picker"]');
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static async setPickerValue(value) {
|
|
20
|
-
await (await MobileDatePickerCO.getInput()).setValue(value);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static async clickInput() {
|
|
24
|
-
return (await this.getInput()).click();
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
static async clickButton() {
|
|
28
|
-
return (await this.getButton()).click();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Snapshots
|
|
32
|
-
static snapshotPath(example = 'basic') {
|
|
33
|
-
return PageObject.getSnapshotPathBuilder('MobileDatePicker', example, 'ds-mobile');
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import MDMCO from './MobileDropdownMenuCO';
|
|
2
|
-
|
|
3
|
-
if (browser.capabilities['ice:options'].isPhone) {
|
|
4
|
-
describe('PUI-3701 - MobileDropdownMenu', () => {
|
|
5
|
-
before('loading page', async () => {
|
|
6
|
-
const errorOnGo = await MDMCO.basicURL.go();
|
|
7
|
-
if (errorOnGo) throw errorOnGo;
|
|
8
|
-
});
|
|
9
|
-
it('should render input with placeholder', async () => {
|
|
10
|
-
await MDMCO.waitAfterGo();
|
|
11
|
-
const input = await MDMCO.getInput();
|
|
12
|
-
await expect(input).toBeDisplayed();
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('should render options', async () => {
|
|
16
|
-
await (await MDMCO.getInput()).click();
|
|
17
|
-
await (await MDMCO.getMenu()).waitForDisplayed({ timeout: 5000 });
|
|
18
|
-
const menu = await MDMCO.getMenu();
|
|
19
|
-
await expect(menu).toBeDisplayed();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
describe('PUI-9123 - MobileDropdownMenu, populate input on item select', () => {
|
|
24
|
-
before('loading page', async () => {
|
|
25
|
-
const errorOnGo = await MDMCO.basicURL.go();
|
|
26
|
-
if (errorOnGo) throw errorOnGo;
|
|
27
|
-
});
|
|
28
|
-
it('should populate the input with the selected option text', async () => {
|
|
29
|
-
const dropDownMenu = await MDMCO.getInput();
|
|
30
|
-
await dropDownMenu.click();
|
|
31
|
-
const menuItem = await MDMCO.getMobileDDMenuOptions(2);
|
|
32
|
-
await menuItem.click();
|
|
33
|
-
const input = await MDMCO.getInputText();
|
|
34
|
-
const inputText = await input.getAttribute('value');
|
|
35
|
-
await expect(inputText).toEqual('Item 3');
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import MDMCO from './MobileDropdownMenuCO';
|
|
2
|
-
|
|
3
|
-
if (browser.capabilities['ice:options'].isPhone) {
|
|
4
|
-
describe('PUI-3700 - MobileDropdownMenu visual test', () => {
|
|
5
|
-
before('loading page', async () => {
|
|
6
|
-
const errorOnGo = await MDMCO.basicURL.go();
|
|
7
|
-
if (errorOnGo) throw errorOnGo;
|
|
8
|
-
});
|
|
9
|
-
it('should render menu open', async () => {
|
|
10
|
-
await MDMCO.waitAfterGo();
|
|
11
|
-
await (await MDMCO.getInput()).click();
|
|
12
|
-
const snapshot = await browser.checkSnapshot(MDMCO.snapshotPath('menu-open'));
|
|
13
|
-
await expect(snapshot).toEqual(0);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { PATH_MOBILE_DROPDOWN_MENU } from '../../paths';
|
|
2
|
-
import { PageObject, Urlbuilder } from '../helpers';
|
|
3
|
-
|
|
4
|
-
export default class MobileDropdownMenu extends PageObject {
|
|
5
|
-
static basicURL = new Urlbuilder(PATH_MOBILE_DROPDOWN_MENU, 'basic');
|
|
6
|
-
|
|
7
|
-
static formURL = new Urlbuilder(PATH_MOBILE_DROPDOWN_MENU, 'form');
|
|
8
|
-
|
|
9
|
-
static async getInput() {
|
|
10
|
-
return $('//input[@placeholder="Placeholder"]');
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
static async getInputText() {
|
|
14
|
-
return $('span input');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
static async getMenu() {
|
|
18
|
-
return $('[data-testid="ds-mobile-context-menu"]');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
static async getMobileDDMenuOptions(index) {
|
|
22
|
-
return $$('[data-testid="mobile-touchable"]')[index];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
static async getMobileDDMenu() {
|
|
26
|
-
return $('[data-testid="ds-mobile-ddwn-menu"]');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
static async waitAfterGo() {
|
|
30
|
-
await (await this.getInput()).waitForDisplayed({ timeout: 5000 });
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Snapshots
|
|
34
|
-
static snapshotPath(example = 'basic') {
|
|
35
|
-
return PageObject.getSnapshotPathBuilder('MobileDropdownMenu', example, 'ds-mobile');
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { MobileEmptyStateCO } from './MobileEmptyStateCO';
|
|
2
|
-
|
|
3
|
-
if (browser.capabilities['ice:options'].isPhone) {
|
|
4
|
-
describe('MobileEmptyState', () => {
|
|
5
|
-
before('loading page', async () => {
|
|
6
|
-
const errorOnGo = await MobileEmptyStateCO.basicURL.go();
|
|
7
|
-
if (errorOnGo) throw errorOnGo;
|
|
8
|
-
});
|
|
9
|
-
it('renders correctly', async () => {
|
|
10
|
-
await (await MobileEmptyStateCO.getEmpyMsg()).waitForDisplayed();
|
|
11
|
-
const snapshot = await browser.checkSnapshot(MobileEmptyStateCO.snapshotPath());
|
|
12
|
-
await expect(snapshot).toEqual(0);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PATH_MOBILE_EMPTY_STATE } from '../../paths';
|
|
2
|
-
import { PageObject, Urlbuilder } from '../helpers';
|
|
3
|
-
|
|
4
|
-
export class MobileEmptyStateCO extends PageObject {
|
|
5
|
-
static basicURL = new Urlbuilder(PATH_MOBILE_EMPTY_STATE, 'basic');
|
|
6
|
-
|
|
7
|
-
static async getEmpyMsg() {
|
|
8
|
-
return $('p*=No search results found');
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
static snapshotPath(example = 'basic') {
|
|
12
|
-
return PageObject.getSnapshotPathBuilder('MobileEmptyState', example, 'ds-mobile');
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import MobileFilterbarCO from './MobileFilterbarCO';
|
|
2
|
-
|
|
3
|
-
if (browser.capabilities['ice:options'].isPhone) {
|
|
4
|
-
describe('MobileFilterBar', () => {
|
|
5
|
-
describe('MobileFilterBar:: SortPill', () => {
|
|
6
|
-
before('loading page', async () => {
|
|
7
|
-
const errorOnGo = await MobileFilterbarCO.sortPill.go();
|
|
8
|
-
if (errorOnGo) throw errorOnGo;
|
|
9
|
-
});
|
|
10
|
-
it('should render a sort pill', async () => {
|
|
11
|
-
await (await MobileFilterbarCO.getFilterBar()).waitForDisplayed({ timeout: 10000 });
|
|
12
|
-
const snapshot = await browser.checkSnapshot(MobileFilterbarCO.snapshotPath('basic-sort-pill'));
|
|
13
|
-
await expect(snapshot).toEqual(0);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
describe('MobileFilterBar:: Basic', () => {
|
|
17
|
-
before('loading page', async () => {
|
|
18
|
-
const errorOnGo = await MobileFilterbarCO.basicURL.go();
|
|
19
|
-
if (errorOnGo) throw errorOnGo;
|
|
20
|
-
});
|
|
21
|
-
it('should render basic filter bar', async () => {
|
|
22
|
-
await (await MobileFilterbarCO.getFilterBar()).waitForDisplayed({ timeout: 10000 });
|
|
23
|
-
const snapshot = await browser.checkSnapshot(MobileFilterbarCO.snapshotPath());
|
|
24
|
-
await expect(snapshot).toEqual(0);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
describe('MobileFilterBar:: RemovablePill', () => {
|
|
28
|
-
before('loading page', async () => {
|
|
29
|
-
const errorOnGo = await MobileFilterbarCO.removablePill.go();
|
|
30
|
-
if (errorOnGo) throw errorOnGo;
|
|
31
|
-
});
|
|
32
|
-
it('should render removable pills', async () => {
|
|
33
|
-
await (await MobileFilterbarCO.getFilterBar()).waitForDisplayed({ timeout: 10000 });
|
|
34
|
-
const snapshot = await browser.checkSnapshot(MobileFilterbarCO.snapshotPath('basic-removable-pill'));
|
|
35
|
-
await expect(snapshot).toEqual(0);
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PATH_MOBILE_FILTER_BAR } from '../../paths';
|
|
2
|
-
import { PageObject, Urlbuilder } from '../helpers';
|
|
3
|
-
|
|
4
|
-
export default class MobileFilterbar extends PageObject {
|
|
5
|
-
static basicURL = new Urlbuilder(PATH_MOBILE_FILTER_BAR, 'basic');
|
|
6
|
-
|
|
7
|
-
static removablePill = new Urlbuilder(PATH_MOBILE_FILTER_BAR, 'basic-removable-pill');
|
|
8
|
-
|
|
9
|
-
static sortPill = new Urlbuilder(PATH_MOBILE_FILTER_BAR, 'sort-pill');
|
|
10
|
-
|
|
11
|
-
static async getFilterBar() {
|
|
12
|
-
return $('[data-testid="filter-bar-wrapper"]');
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Snapshots
|
|
16
|
-
static snapshotPath(example = 'basic') {
|
|
17
|
-
return PageObject.getSnapshotPathBuilder('MobileFilterbar', example, 'ds-mobile');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import MobileFooterCO from './MobileFooterCO';
|
|
2
|
-
|
|
3
|
-
if (browser.capabilities['ice:options'].isPhone) {
|
|
4
|
-
describe('MobileFooter', () => {
|
|
5
|
-
describe('MobileFooter:: ActionsWithLabels', () => {
|
|
6
|
-
before('loading page', async () => {
|
|
7
|
-
const errorOnGo = await MobileFooterCO.actionsWithLabelURL.go();
|
|
8
|
-
if (errorOnGo) throw errorOnGo;
|
|
9
|
-
});
|
|
10
|
-
it('action icon size is m with label', async () => {
|
|
11
|
-
const iconSizeWidth = (await (await $$('.em-ds-icon'))[2].getCSSProperty('width')).value;
|
|
12
|
-
await expect(iconSizeWidth).toBe('24px');
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
describe('MobileFooter:: Actions', () => {
|
|
16
|
-
before('loading page', async () => {
|
|
17
|
-
const errorOnGo = await MobileFooterCO.actionsURL.go();
|
|
18
|
-
if (errorOnGo) throw errorOnGo;
|
|
19
|
-
});
|
|
20
|
-
it('action icon size is l without label', async () => {
|
|
21
|
-
const iconSizeWidth = (await (await $('.em-ds-icon')).getCSSProperty('width')).value;
|
|
22
|
-
await expect(iconSizeWidth).toBe('32px');
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import MobileFooterCO from './MobileFooterCO';
|
|
2
|
-
|
|
3
|
-
if (browser.capabilities['ice:options'].isPhone) {
|
|
4
|
-
describe('MobileFooter', () => {
|
|
5
|
-
describe('MobileFooter:: Actions', () => {
|
|
6
|
-
before('loading page', async () => {
|
|
7
|
-
const errorOnGo = await MobileFooterCO.actionsURL.go();
|
|
8
|
-
if (errorOnGo) throw errorOnGo;
|
|
9
|
-
});
|
|
10
|
-
it('should display mobile footer with actions', async () => {
|
|
11
|
-
await (await MobileFooterCO.footerAction()).waitForDisplayed({ timeout: 10000 });
|
|
12
|
-
const snapshot = await browser.checkSnapshot(MobileFooterCO.snapshotPath());
|
|
13
|
-
await expect(snapshot).toEqual(0);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
describe('MobileFooter:: OneButton', () => {
|
|
17
|
-
before('loading page', async () => {
|
|
18
|
-
const errorOnGo = await MobileFooterCO.oneButtonURL.go();
|
|
19
|
-
if (errorOnGo) throw errorOnGo;
|
|
20
|
-
});
|
|
21
|
-
it('should display one button', async () => {
|
|
22
|
-
await (await MobileFooterCO.buttonLabel()).waitForDisplayed({ timeout: 100000 });
|
|
23
|
-
const snapshot = await browser.checkSnapshot(MobileFooterCO.snapshotPath('one-button'));
|
|
24
|
-
await expect(snapshot).toEqual(0);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
describe('MobileFooter:: TwoButtons', () => {
|
|
29
|
-
before('loading page', async () => {
|
|
30
|
-
const errorOnGo = await MobileFooterCO.twoButtonsURL.go();
|
|
31
|
-
if (errorOnGo) throw errorOnGo;
|
|
32
|
-
});
|
|
33
|
-
it('should display two buttons', async () => {
|
|
34
|
-
await (await MobileFooterCO.buttonLabel()).waitForDisplayed({ timeout: 100000 });
|
|
35
|
-
const snapshot = await browser.checkSnapshot(MobileFooterCO.snapshotPath('two-buttons'));
|
|
36
|
-
await expect(snapshot).toEqual(0);
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
describe('MobileFooter:: TextAndButton', () => {
|
|
40
|
-
before('loading page', async () => {
|
|
41
|
-
const errorOnGo = await MobileFooterCO.textAndButtonURL.go();
|
|
42
|
-
if (errorOnGo) throw errorOnGo;
|
|
43
|
-
});
|
|
44
|
-
it('should display text and button', async () => {
|
|
45
|
-
await (await MobileFooterCO.buttonLabel()).waitForDisplayed({ timeout: 100000 });
|
|
46
|
-
const snapshot = await browser.checkSnapshot(MobileFooterCO.snapshotPath('text-button'));
|
|
47
|
-
await expect(snapshot).toEqual(0);
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { PATH_MOBILE_FOOTER } from '../../paths';
|
|
2
|
-
import { PageObject, Urlbuilder } from '../helpers';
|
|
3
|
-
|
|
4
|
-
export default class MobileFooter extends PageObject {
|
|
5
|
-
static actionsURL = new Urlbuilder(PATH_MOBILE_FOOTER, 'actions');
|
|
6
|
-
|
|
7
|
-
static actionsWithLabelURL = new Urlbuilder(PATH_MOBILE_FOOTER, 'actions-with-labels');
|
|
8
|
-
|
|
9
|
-
static oneButtonURL = new Urlbuilder(PATH_MOBILE_FOOTER, 'one-button');
|
|
10
|
-
|
|
11
|
-
static twoButtonsURL = new Urlbuilder(PATH_MOBILE_FOOTER, 'two-buttons');
|
|
12
|
-
|
|
13
|
-
static textAndButtonURL = new Urlbuilder(PATH_MOBILE_FOOTER, 'text-left-and-one-button');
|
|
14
|
-
|
|
15
|
-
static async footerAction() {
|
|
16
|
-
return $('[data-testid="ds-mobile-footer-action"]');
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static async buttonLabel() {
|
|
20
|
-
return $('button*=Button Label');
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Snapshots
|
|
24
|
-
static snapshotPath(example = 'actions') {
|
|
25
|
-
return PageObject.getSnapshotPathBuilder('MobileFooter', example, 'ds-mobile');
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import MobileListItemCO from './MobileListItemCO';
|
|
2
|
-
|
|
3
|
-
if (browser.capabilities['ice:options'].isPhone) {
|
|
4
|
-
describe('PUI-3813 - MobileListItem', () => {
|
|
5
|
-
describe('Mobile List Item:: Basic', () => {
|
|
6
|
-
before('loading page', async () => {
|
|
7
|
-
const errorOnGo = await MobileListItemCO.basicURL.go();
|
|
8
|
-
if (errorOnGo) throw errorOnGo;
|
|
9
|
-
});
|
|
10
|
-
it('should display basic example', async () => {
|
|
11
|
-
const snapshot = await browser.checkSnapshot(MobileListItemCO.snapshotPath());
|
|
12
|
-
await expect(snapshot).toEqual(0);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
describe('Mobile List Item:: with left icon', () => {
|
|
16
|
-
before('loading page', async () => {
|
|
17
|
-
const errorOnGo = await MobileListItemCO.iconURL.go();
|
|
18
|
-
if (errorOnGo) throw errorOnGo;
|
|
19
|
-
});
|
|
20
|
-
it('should display leftAddon icon', async () => {
|
|
21
|
-
const snapshot = await browser.checkSnapshot(MobileListItemCO.snapshotPath('icon'));
|
|
22
|
-
await expect(snapshot).toEqual(0);
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
describe('Mobile List Item:: Truncated', () => {
|
|
26
|
-
before('loading page', async () => {
|
|
27
|
-
const errorOnGo = await MobileListItemCO.truncatedURL.go();
|
|
28
|
-
if (errorOnGo) throw errorOnGo;
|
|
29
|
-
});
|
|
30
|
-
it('should display leftAddon icon', async () => {
|
|
31
|
-
const snapshot = await browser.checkSnapshot(MobileListItemCO.snapshotPath('truncated-title'));
|
|
32
|
-
await expect(snapshot).toEqual(0);
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
describe('Mobile List Item:: checkbox', () => {
|
|
36
|
-
before('loading page', async () => {
|
|
37
|
-
const errorOnGo = await MobileListItemCO.checkboxURL.go();
|
|
38
|
-
if (errorOnGo) throw errorOnGo;
|
|
39
|
-
});
|
|
40
|
-
it('should display leftAddon checkbox', async () => {
|
|
41
|
-
const snapshot = await browser.checkSnapshot(MobileListItemCO.snapshotPath('checkbox'));
|
|
42
|
-
await expect(snapshot).toEqual(0);
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
describe('Mobile List Item:: checked', () => {
|
|
46
|
-
before('loading page', async () => {
|
|
47
|
-
const errorOnGo = await MobileListItemCO.checkedURL.go();
|
|
48
|
-
if (errorOnGo) throw errorOnGo;
|
|
49
|
-
});
|
|
50
|
-
it('should display leftAddon checked', async () => {
|
|
51
|
-
const snapshot = await browser.checkSnapshot(MobileListItemCO.snapshotPath('checked'));
|
|
52
|
-
await expect(snapshot).toEqual(0);
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PATH_MOBILE_LIST_ITEM } from '../../paths';
|
|
2
|
-
import { PageObject, Urlbuilder } from '../helpers';
|
|
3
|
-
|
|
4
|
-
export default class MobileListItem extends PageObject {
|
|
5
|
-
static basicURL = new Urlbuilder(PATH_MOBILE_LIST_ITEM, 'basic');
|
|
6
|
-
|
|
7
|
-
static iconURL = new Urlbuilder(PATH_MOBILE_LIST_ITEM, 'icon');
|
|
8
|
-
|
|
9
|
-
static checkboxURL = new Urlbuilder(PATH_MOBILE_LIST_ITEM, 'checkbox');
|
|
10
|
-
|
|
11
|
-
static checkedURL = new Urlbuilder(PATH_MOBILE_LIST_ITEM, 'checked');
|
|
12
|
-
|
|
13
|
-
static truncatedURL = new Urlbuilder(PATH_MOBILE_LIST_ITEM, 'truncated');
|
|
14
|
-
|
|
15
|
-
// Snapshots
|
|
16
|
-
static snapshotPath(example = 'basic') {
|
|
17
|
-
return PageObject.getSnapshotPathBuilder('MobileListItem', example, 'ds-mobile');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import MobileLoadingPageCO from './MobileLoadingPageCO';
|
|
2
|
-
|
|
3
|
-
if (browser.capabilities['ice:options'].isPhone) {
|
|
4
|
-
describe('PUI-10848 - [MobileLoadingPage] - basic - visual test', () => {
|
|
5
|
-
before('loading page', async () => {
|
|
6
|
-
const errorOnGo = await MobileLoadingPageCO.basicURL.go();
|
|
7
|
-
if (errorOnGo) throw errorOnGo;
|
|
8
|
-
});
|
|
9
|
-
it('01: should display MobileLoadingPage correctly', async () => {
|
|
10
|
-
await (await MobileLoadingPageCO.getLoadingText()).waitForDisplayed({ timeout: 10000 });
|
|
11
|
-
const snapshot = await browser.checkSnapshot(MobileLoadingPageCO.snapshotPath('mobile-loading-page-basic'));
|
|
12
|
-
await expect(snapshot).toEqual(0);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
describe('PUI-10849 - [MobileLoadingPage] - cover - visual test', () => {
|
|
16
|
-
before('loading page', async () => {
|
|
17
|
-
const errorOnGo = await MobileLoadingPageCO.coverURL.go();
|
|
18
|
-
if (errorOnGo) throw errorOnGo;
|
|
19
|
-
});
|
|
20
|
-
it('01: should display MobileLoadingPage correctly with cover prop', async () => {
|
|
21
|
-
await (await MobileLoadingPageCO.getLoadingText()).waitForDisplayed({ timeout: 10000 });
|
|
22
|
-
const snapshot = await browser.checkSnapshot(MobileLoadingPageCO.snapshotPath('mobile-loading-page-cover'));
|
|
23
|
-
await expect(snapshot).toEqual(0);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
describe('PUI-10850 - [MobileLoadingPage] - with Icon - visual test', () => {
|
|
27
|
-
before('loading page', async () => {
|
|
28
|
-
const errorOnGo = await MobileLoadingPageCO.withIconURL.go();
|
|
29
|
-
if (errorOnGo) throw errorOnGo;
|
|
30
|
-
});
|
|
31
|
-
it('01: should display MobileLoadingPage with icon correctly', async () => {
|
|
32
|
-
await (await MobileLoadingPageCO.getLoadingTextIcon()).waitForDisplayed({ timeout: 10000 });
|
|
33
|
-
const snapshot = await browser.checkSnapshot(MobileLoadingPageCO.snapshotPath('mobile-loading-page-with-icon'));
|
|
34
|
-
await expect(snapshot).toEqual(0);
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { PATH_MOBILE_LOADING_PAGE } from '../../paths';
|
|
2
|
-
import { PageObject, Urlbuilder } from '../helpers';
|
|
3
|
-
|
|
4
|
-
export default class MobileLoadingPageCO extends PageObject {
|
|
5
|
-
static basicURL = new Urlbuilder(PATH_MOBILE_LOADING_PAGE, 'basic');
|
|
6
|
-
|
|
7
|
-
static coverURL = new Urlbuilder(PATH_MOBILE_LOADING_PAGE, 'cover');
|
|
8
|
-
|
|
9
|
-
static withIconURL = new Urlbuilder(PATH_MOBILE_LOADING_PAGE, 'with-icon');
|
|
10
|
-
|
|
11
|
-
static async getLoadingText() {
|
|
12
|
-
return $('[data-testid="ds-circularindeterminateindicator-label"]');
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
static async getLoadingTextIcon() {
|
|
16
|
-
return $('div*=Loading...');
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Snapshots
|
|
20
|
-
static snapshotPath(example = 'basic') {
|
|
21
|
-
return PageObject.getSnapshotPathBuilder('LoadingPage', example, 'ds-mobile');
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import MobilePageHeaderCO from './MobilePageHeaderCO';
|
|
2
|
-
|
|
3
|
-
if (browser.capabilities['ice:options'].isPhone) {
|
|
4
|
-
describe('PUI-4867 - MobilePageHeader - open/close context menu', () => {
|
|
5
|
-
before('loading page', async () => {
|
|
6
|
-
const errorOnGo = await MobilePageHeaderCO.contextMenuURL.go();
|
|
7
|
-
if (errorOnGo) throw errorOnGo;
|
|
8
|
-
});
|
|
9
|
-
it('open context menu', async () => {
|
|
10
|
-
await (await MobilePageHeaderCO.contextMenuTrigger()).waitForDisplayed();
|
|
11
|
-
await (await MobilePageHeaderCO.contextMenuTrigger()).click();
|
|
12
|
-
await MobilePageHeaderCO.waitForContextMenu();
|
|
13
|
-
const contextMenu = await MobilePageHeaderCO.getContextMenu();
|
|
14
|
-
await expect(contextMenu).toBeDisplayedInViewport();
|
|
15
|
-
});
|
|
16
|
-
it('close context menu', async () => {
|
|
17
|
-
await (await MobilePageHeaderCO.getContextMenuBackdrop()).click();
|
|
18
|
-
const contextMenu = await MobilePageHeaderCO.getContextMenu();
|
|
19
|
-
await expect(contextMenu).not.toBeDisplayedInViewport();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
}
|