@ionic/core 7.3.2 → 7.3.3-dev.11693533652.1969cc78
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/components/action-sheet.js +8 -16
- package/components/alert.js +8 -16
- package/components/framework-delegate.js +21 -2
- package/components/ion-loading.js +8 -16
- package/components/ion-modal.js +21 -29
- package/components/ion-picker.js +8 -16
- package/components/ion-router-outlet.js +1 -0
- package/components/ion-toast.js +8 -16
- package/components/label.js +2 -2
- package/components/lock-controller.js +38 -0
- package/components/popover.js +15 -29
- package/dist/cjs/{framework-delegate-e8174951.js → framework-delegate-c0873a6f.js} +21 -2
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +10 -18
- package/dist/cjs/ion-alert.cjs.entry.js +10 -18
- package/dist/cjs/ion-app_8.cjs.entry.js +2 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +10 -18
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +10 -18
- package/dist/cjs/ion-menu_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-modal.cjs.entry.js +23 -31
- package/dist/cjs/ion-nav_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +17 -31
- package/dist/cjs/ion-select_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-toast.cjs.entry.js +10 -18
- package/dist/cjs/lock-controller-4ae2eb59.js +40 -0
- package/dist/cjs/{overlays-0ea06fcb.js → overlays-5c1706ed.js} +1 -1
- package/dist/collection/components/action-sheet/action-sheet.js +8 -16
- package/dist/collection/components/alert/alert.js +8 -16
- package/dist/collection/components/checkbox/test/color/checkbox.e2e.js +2 -2
- package/dist/collection/components/checkbox/test/item/checkbox.e2e.js +4 -4
- package/dist/collection/components/checkbox/test/label/checkbox.e2e.js +10 -10
- package/dist/collection/components/checkbox/test/legacy/basic/checkbox.e2e.js +1 -1
- package/dist/collection/components/checkbox/test/legacy/indeterminate/checkbox.e2e.js +1 -1
- package/dist/collection/components/checkbox/test/states/checkbox.e2e.js +4 -4
- package/dist/collection/components/datetime/test/custom/datetime.e2e.js +0 -7
- package/dist/collection/components/datetime/test/presentation/datetime.e2e.js +48 -17
- package/dist/collection/components/input/test/bottom-content/input.e2e.js +7 -7
- package/dist/collection/components/input/test/card/input.e2e.js +1 -1
- package/dist/collection/components/input/test/color/input.e2e.js +15 -15
- package/dist/collection/components/input/test/fill/input.e2e.js +10 -10
- package/dist/collection/components/input/test/highlight/input.e2e.js +9 -9
- package/dist/collection/components/input/test/item/input.e2e.js +2 -2
- package/dist/collection/components/input/test/label-placement/input.e2e.js +16 -16
- package/dist/collection/components/input/test/legacy/basic/input.e2e.js +10 -10
- package/dist/collection/components/input/test/states/input.e2e.js +2 -2
- package/dist/collection/components/label/label.ios.css +2 -4
- package/dist/collection/components/label/label.md.css +2 -4
- package/dist/collection/components/loading/loading.js +8 -16
- package/dist/collection/components/modal/modal.js +21 -29
- package/dist/collection/components/picker/picker.js +8 -16
- package/dist/collection/components/popover/popover.js +15 -29
- package/dist/collection/components/popover/test/async/popover.e2e.js +42 -0
- package/dist/collection/components/radio/test/color/radio.e2e.js +2 -2
- package/dist/collection/components/radio/test/item/radio.e2e.js +3 -3
- package/dist/collection/components/radio/test/label-placement/radio.e2e.js +9 -9
- package/dist/collection/components/radio/test/states/radio.e2e.js +4 -4
- package/dist/collection/components/range/test/color/range.e2e.js +1 -1
- package/dist/collection/components/range/test/custom/range.e2e.js +1 -1
- package/dist/collection/components/range/test/item/range.e2e.js +3 -3
- package/dist/collection/components/range/test/label/range.e2e.js +12 -12
- package/dist/collection/components/range/test/legacy/a11y/range.e2e.js +3 -3
- package/dist/collection/components/range/test/legacy/active-bar-start/range.e2e.js +1 -1
- package/dist/collection/components/range/test/legacy/basic/range.e2e.js +1 -1
- package/dist/collection/components/range/test/states/range.e2e.js +4 -4
- package/dist/collection/components/router-outlet/router-outlet.js +1 -0
- package/dist/collection/components/select/test/card/select.e2e.js +1 -1
- package/dist/collection/components/select/test/color/select.e2e.js +3 -3
- package/dist/collection/components/select/test/fill/select.e2e.js +10 -10
- package/dist/collection/components/select/test/highlight/select.e2e.js +3 -3
- package/dist/collection/components/select/test/item/select.e2e.js +2 -2
- package/dist/collection/components/select/test/label/select.e2e.js +20 -20
- package/dist/collection/components/select/test/states/select.e2e.js +4 -4
- package/dist/collection/components/textarea/test/bottom-content/textarea.e2e.js +6 -6
- package/dist/collection/components/textarea/test/card/textarea.e2e.js +1 -1
- package/dist/collection/components/textarea/test/color/textarea.e2e.js +15 -15
- package/dist/collection/components/textarea/test/fill/textarea.e2e.js +10 -10
- package/dist/collection/components/textarea/test/highlight/textarea.e2e.js +9 -9
- package/dist/collection/components/textarea/test/item/textarea.e2e.js +2 -2
- package/dist/collection/components/textarea/test/label-placement/textarea.e2e.js +21 -21
- package/dist/collection/components/textarea/test/legacy/autogrow/textarea.e2e.js +5 -5
- package/dist/collection/components/textarea/test/states/textarea.e2e.js +2 -2
- package/dist/collection/components/toast/toast.js +8 -16
- package/dist/collection/components/toggle/test/color/toggle.e2e.js +2 -2
- package/dist/collection/components/toggle/test/item/toggle.e2e.js +4 -4
- package/dist/collection/components/toggle/test/label/toggle.e2e.js +9 -9
- package/dist/collection/components/toggle/test/legacy/enable-on-off-labels/toggle.e2e.js +2 -2
- package/dist/collection/components/toggle/test/legacy/sizes/toggle.e2e.js +1 -1
- package/dist/collection/components/toggle/test/states/toggle.e2e.js +3 -3
- package/dist/collection/utils/framework-delegate.js +21 -2
- package/dist/collection/utils/lock-controller.js +36 -0
- package/dist/docs.json +1 -1
- package/dist/esm/{framework-delegate-2b76c681.js → framework-delegate-aa433dea.js} +21 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/ion-action-sheet.entry.js +10 -18
- package/dist/esm/ion-alert.entry.js +10 -18
- package/dist/esm/ion-app_8.entry.js +2 -1
- package/dist/esm/ion-datetime_3.entry.js +10 -18
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +10 -18
- package/dist/esm/ion-menu_3.entry.js +2 -2
- package/dist/esm/ion-modal.entry.js +23 -31
- package/dist/esm/ion-nav_2.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +17 -31
- package/dist/esm/ion-select_3.entry.js +2 -2
- package/dist/esm/ion-tab_2.entry.js +1 -1
- package/dist/esm/ion-toast.entry.js +10 -18
- package/dist/esm/lock-controller-e8c6c051.js +38 -0
- package/dist/esm/{overlays-c3387ec0.js → overlays-e1dadfe6.js} +1 -1
- package/dist/esm-es5/framework-delegate-aa433dea.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/lock-controller-e8c6c051.js +4 -0
- package/dist/esm-es5/{overlays-c3387ec0.js → overlays-e1dadfe6.js} +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-958bde76.entry.js → p-091cd81e.entry.js} +1 -1
- package/dist/ionic/{p-d1356034.system.entry.js → p-0b68c41d.system.entry.js} +1 -1
- package/dist/ionic/p-0cc2bf5a.system.entry.js +4 -0
- package/dist/ionic/p-208f640c.entry.js +4 -0
- package/dist/ionic/p-2539e967.system.entry.js +4 -0
- package/dist/ionic/{p-74bd26b8.system.entry.js → p-28f5715a.system.entry.js} +1 -1
- package/dist/ionic/{p-b9312889.entry.js → p-341d5877.entry.js} +1 -1
- package/dist/ionic/p-38dd9aec.entry.js +4 -0
- package/dist/ionic/p-3ff018da.entry.js +4 -0
- package/dist/ionic/{p-8074bdd7.system.entry.js → p-45ee211b.system.entry.js} +1 -1
- package/dist/ionic/p-5009cb46.entry.js +4 -0
- package/dist/ionic/p-53b2a46f.js +4 -0
- package/dist/ionic/{p-5ef91692.js → p-582dc7c1.js} +1 -1
- package/dist/ionic/{p-79e30193.system.entry.js → p-5ba27716.system.entry.js} +1 -1
- package/dist/ionic/{p-c0d1e5a1.entry.js → p-5c17f888.entry.js} +1 -1
- package/dist/ionic/{p-8d9475b5.system.js → p-613d4042.system.js} +1 -1
- package/dist/ionic/p-647d15d4.system.entry.js +4 -0
- package/dist/ionic/p-653f2fc6.entry.js +4 -0
- package/dist/ionic/p-721933ff.system.js +1 -1
- package/dist/ionic/p-772f6c84.system.js +4 -0
- package/dist/ionic/p-87383d00.system.entry.js +4 -0
- package/dist/ionic/{p-db46fc66.system.js → p-8843b046.system.js} +1 -1
- package/dist/ionic/p-93e47822.entry.js +4 -0
- package/dist/ionic/{p-229df0d8.entry.js → p-98ebc376.entry.js} +1 -1
- package/dist/ionic/p-af0bc751.system.entry.js +4 -0
- package/dist/ionic/p-b0e9e0b8.system.entry.js +4 -0
- package/dist/ionic/p-b287ab05.js +4 -0
- package/dist/ionic/{p-81b46714.system.js → p-b32742f3.system.js} +1 -1
- package/dist/ionic/p-b3394798.system.entry.js +4 -0
- package/dist/ionic/{p-20087c90.entry.js → p-c759a704.entry.js} +1 -1
- package/dist/ionic/{p-6b9bf14c.system.entry.js → p-d1d3b740.system.entry.js} +1 -1
- package/dist/ionic/{p-8fa43732.system.entry.js → p-d693e765.system.entry.js} +1 -1
- package/dist/ionic/{p-5c96dc4e.entry.js → p-f7faa32d.entry.js} +1 -1
- package/dist/ionic/p-fabb7294.entry.js +4 -0
- package/dist/types/components/action-sheet/action-sheet.d.ts +1 -1
- package/dist/types/components/alert/alert.d.ts +1 -1
- package/dist/types/components/loading/loading.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +1 -1
- package/dist/types/components/picker/picker.d.ts +1 -1
- package/dist/types/components/popover/popover.d.ts +1 -1
- package/dist/types/components/toast/toast.d.ts +1 -1
- package/dist/types/utils/lock-controller.d.ts +10 -0
- package/hydrate/index.js +127 -142
- package/package.json +1 -1
- package/dist/esm-es5/framework-delegate-2b76c681.js +0 -4
- package/dist/ionic/p-06f1f560.system.entry.js +0 -4
- package/dist/ionic/p-2936ec7f.system.entry.js +0 -4
- package/dist/ionic/p-29b3e70a.entry.js +0 -4
- package/dist/ionic/p-2bc49e5d.system.entry.js +0 -4
- package/dist/ionic/p-2da3e015.system.entry.js +0 -4
- package/dist/ionic/p-423d5a4d.entry.js +0 -4
- package/dist/ionic/p-564aaba3.entry.js +0 -4
- package/dist/ionic/p-61769039.entry.js +0 -4
- package/dist/ionic/p-74723f41.entry.js +0 -4
- package/dist/ionic/p-9b3c3564.entry.js +0 -4
- package/dist/ionic/p-b34c1ae1.js +0 -4
- package/dist/ionic/p-ccea9adc.system.entry.js +0 -4
- package/dist/ionic/p-d5db0834.system.entry.js +0 -4
- package/dist/ionic/p-d8538837.entry.js +0 -4
- package/dist/ionic/p-dd0b6889.system.entry.js +0 -4
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { expect } from "@playwright/test";
|
|
5
|
+
import { configs, test } from "../../../../utils/test/playwright/index";
|
|
6
|
+
/**
|
|
7
|
+
* This behavior does not vary across modes/directions
|
|
8
|
+
*/
|
|
9
|
+
configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
10
|
+
test.describe(title('popover: alignment with async component'), async () => {
|
|
11
|
+
test('should align popover centered with button when component is added async', async ({ page }) => {
|
|
12
|
+
await page.goto('/src/components/popover/test/async', config);
|
|
13
|
+
const ionPopoverDidPresent = await page.spyOnEvent('ionPopoverDidPresent');
|
|
14
|
+
const button = page.locator('#button');
|
|
15
|
+
await button.click();
|
|
16
|
+
await ionPopoverDidPresent.next();
|
|
17
|
+
await expect(page).toHaveScreenshot(screenshot(`popover-async`));
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* Framework delegate should fall back to returning the host
|
|
21
|
+
* component when no child content is passed otherwise
|
|
22
|
+
* the overlay will get stuck when trying to re-present.
|
|
23
|
+
*/
|
|
24
|
+
test('should open popover even if nothing was passed', async ({ page }) => {
|
|
25
|
+
await page.setContent(`
|
|
26
|
+
<ion-popover></ion-popover>
|
|
27
|
+
`, config);
|
|
28
|
+
const popover = page.locator('ion-popover');
|
|
29
|
+
const ionPopoverDidPresent = await page.spyOnEvent('ionPopoverDidPresent');
|
|
30
|
+
const ionPopoverDidDismiss = await page.spyOnEvent('ionPopoverDidDismiss');
|
|
31
|
+
await popover.evaluate((el) => el.present());
|
|
32
|
+
await ionPopoverDidPresent.next();
|
|
33
|
+
await expect(popover).toBeVisible();
|
|
34
|
+
await popover.evaluate((el) => el.dismiss());
|
|
35
|
+
await ionPopoverDidDismiss.next();
|
|
36
|
+
await expect(popover).toBeHidden();
|
|
37
|
+
await popover.evaluate((el) => el.present());
|
|
38
|
+
await ionPopoverDidPresent.next();
|
|
39
|
+
await expect(popover).toBeVisible();
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -12,7 +12,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
12
12
|
</ion-radio-group>
|
|
13
13
|
`, config);
|
|
14
14
|
const radio = page.locator('ion-radio');
|
|
15
|
-
expect(
|
|
15
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-color-checked`));
|
|
16
16
|
});
|
|
17
17
|
test('should not apply color when unchecked', async ({ page }) => {
|
|
18
18
|
await page.setContent(`
|
|
@@ -21,7 +21,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
21
21
|
</ion-radio-group>
|
|
22
22
|
`, config);
|
|
23
23
|
const radio = page.locator('ion-radio');
|
|
24
|
-
expect(
|
|
24
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-color-unchecked`));
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
});
|
|
@@ -16,7 +16,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
16
16
|
</ion-list>
|
|
17
17
|
`, config);
|
|
18
18
|
const list = page.locator('ion-list');
|
|
19
|
-
expect(
|
|
19
|
+
await expect(list).toHaveScreenshot(screenshot(`toggle-list`));
|
|
20
20
|
});
|
|
21
21
|
test('should render correctly in inset list', async ({ page }) => {
|
|
22
22
|
await page.setContent(`
|
|
@@ -29,7 +29,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
29
29
|
</ion-list>
|
|
30
30
|
`, config);
|
|
31
31
|
const list = page.locator('ion-list');
|
|
32
|
-
expect(
|
|
32
|
+
await expect(list).toHaveScreenshot(screenshot(`radio-inset-list`));
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
});
|
|
@@ -48,7 +48,7 @@ configs({ directions: ['ltr'], modes: ['md'] }).forEach(({ title, screenshot, co
|
|
|
48
48
|
</ion-list>
|
|
49
49
|
`, config);
|
|
50
50
|
const list = page.locator('ion-list');
|
|
51
|
-
expect(
|
|
51
|
+
await expect(list).toHaveScreenshot(screenshot(`radio-long-label-in-item`));
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
});
|
|
@@ -21,7 +21,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
21
21
|
</ion-radio-group>
|
|
22
22
|
`, config);
|
|
23
23
|
const radio = page.locator('ion-radio');
|
|
24
|
-
expect(
|
|
24
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-label-start-justify-start`));
|
|
25
25
|
});
|
|
26
26
|
test('should render an end justification with label in the start position', async ({ page }) => {
|
|
27
27
|
await page.setContent(`
|
|
@@ -30,7 +30,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
30
30
|
</ion-radio-group>
|
|
31
31
|
`, config);
|
|
32
32
|
const radio = page.locator('ion-radio');
|
|
33
|
-
expect(
|
|
33
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-label-start-justify-end`));
|
|
34
34
|
});
|
|
35
35
|
test('should render a space between justification with label in the start position', async ({ page }) => {
|
|
36
36
|
await page.setContent(`
|
|
@@ -39,7 +39,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
39
39
|
</ion-radio-group>
|
|
40
40
|
`, config);
|
|
41
41
|
const radio = page.locator('ion-radio');
|
|
42
|
-
expect(
|
|
42
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-label-start-justify-space-between`));
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
test.describe('radio: end placement', () => {
|
|
@@ -50,7 +50,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
50
50
|
</ion-radio-group>
|
|
51
51
|
`, config);
|
|
52
52
|
const radio = page.locator('ion-radio');
|
|
53
|
-
expect(
|
|
53
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-label-end-justify-start`));
|
|
54
54
|
});
|
|
55
55
|
test('should render an end justification with label in the end position', async ({ page }) => {
|
|
56
56
|
await page.setContent(`
|
|
@@ -59,7 +59,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
59
59
|
</ion-radio-group>
|
|
60
60
|
`, config);
|
|
61
61
|
const radio = page.locator('ion-radio');
|
|
62
|
-
expect(
|
|
62
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-label-end-justify-end`));
|
|
63
63
|
});
|
|
64
64
|
test('should render a space between justification with label in the end position', async ({ page }) => {
|
|
65
65
|
await page.setContent(`
|
|
@@ -68,7 +68,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
68
68
|
</ion-radio-group>
|
|
69
69
|
`, config);
|
|
70
70
|
const radio = page.locator('ion-radio');
|
|
71
|
-
expect(
|
|
71
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-label-end-justify-space-between`));
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
74
|
test.describe('radio: fixed placement', () => {
|
|
@@ -79,7 +79,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
79
79
|
</ion-radio-group>
|
|
80
80
|
`, config);
|
|
81
81
|
const radio = page.locator('ion-radio');
|
|
82
|
-
expect(
|
|
82
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-label-fixed-justify-start`));
|
|
83
83
|
});
|
|
84
84
|
test('should render an end justification with label in the fixed position', async ({ page }) => {
|
|
85
85
|
await page.setContent(`
|
|
@@ -88,7 +88,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
88
88
|
</ion-radio-group>
|
|
89
89
|
`, config);
|
|
90
90
|
const radio = page.locator('ion-radio');
|
|
91
|
-
expect(
|
|
91
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-label-fixed-justify-end`));
|
|
92
92
|
});
|
|
93
93
|
test('should render a space between justification with label in the fixed position', async ({ page }) => {
|
|
94
94
|
await page.setContent(`
|
|
@@ -97,7 +97,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
97
97
|
</ion-radio-group>
|
|
98
98
|
`, config);
|
|
99
99
|
const radio = page.locator('ion-radio');
|
|
100
|
-
expect(
|
|
100
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-label-fixed-justify-space-between`));
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
});
|
|
@@ -12,7 +12,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
12
12
|
</ion-radio-group>
|
|
13
13
|
`, config);
|
|
14
14
|
const radio = page.locator('ion-radio');
|
|
15
|
-
expect(
|
|
15
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-disabled`));
|
|
16
16
|
});
|
|
17
17
|
test('should render disabled checked radio correctly', async ({ page }) => {
|
|
18
18
|
await page.setContent(`
|
|
@@ -21,7 +21,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
21
21
|
</ion-radio-group>
|
|
22
22
|
`, config);
|
|
23
23
|
const radio = page.locator('ion-radio');
|
|
24
|
-
expect(
|
|
24
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-checked-disabled`));
|
|
25
25
|
});
|
|
26
26
|
test('should render checked radio correctly', async ({ page }) => {
|
|
27
27
|
await page.setContent(`
|
|
@@ -30,7 +30,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
30
30
|
</ion-radio-group>
|
|
31
31
|
`, config);
|
|
32
32
|
const radio = page.locator('ion-radio');
|
|
33
|
-
expect(
|
|
33
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-checked`));
|
|
34
34
|
});
|
|
35
35
|
test('should render unchecked radio correctly', async ({ page }) => {
|
|
36
36
|
await page.setContent(`
|
|
@@ -39,7 +39,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
39
39
|
</ion-radio-group>
|
|
40
40
|
`, config);
|
|
41
41
|
const radio = page.locator('ion-radio');
|
|
42
|
-
expect(
|
|
42
|
+
await expect(radio).toHaveScreenshot(screenshot(`radio-unchecked`));
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
});
|
|
@@ -14,7 +14,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
14
14
|
</ion-range>
|
|
15
15
|
`, config);
|
|
16
16
|
const range = page.locator('ion-range');
|
|
17
|
-
expect(
|
|
17
|
+
await expect(range).toHaveScreenshot(screenshot(`range-color`));
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
20
|
});
|
|
@@ -8,7 +8,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
8
8
|
test('should be customizable', async ({ page }) => {
|
|
9
9
|
await page.goto(`/src/components/range/test/custom`, config);
|
|
10
10
|
const range = page.locator('ion-range');
|
|
11
|
-
expect(
|
|
11
|
+
await expect(range).toHaveScreenshot(screenshot(`range-custom`));
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
14
|
});
|
|
@@ -14,7 +14,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
14
14
|
</ion-list>
|
|
15
15
|
`, config);
|
|
16
16
|
const list = page.locator('ion-list');
|
|
17
|
-
expect(
|
|
17
|
+
await expect(list).toHaveScreenshot(screenshot(`range-list`));
|
|
18
18
|
});
|
|
19
19
|
test('should render correctly in inset list', async ({ page }) => {
|
|
20
20
|
await page.setContent(`
|
|
@@ -25,7 +25,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
25
25
|
</ion-list>
|
|
26
26
|
`, config);
|
|
27
27
|
const list = page.locator('ion-list');
|
|
28
|
-
expect(
|
|
28
|
+
await expect(list).toHaveScreenshot(screenshot(`range-inset-list`));
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
});
|
|
@@ -38,7 +38,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
38
38
|
</ion-item>
|
|
39
39
|
`, config);
|
|
40
40
|
const item = page.locator('ion-item');
|
|
41
|
-
expect(
|
|
41
|
+
await expect(item).toHaveScreenshot(screenshot(`range-item-color`));
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
});
|
|
@@ -11,7 +11,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
11
11
|
<ion-range legacy="true"></ion-range>
|
|
12
12
|
`, config);
|
|
13
13
|
const range = page.locator('ion-range');
|
|
14
|
-
expect(
|
|
14
|
+
await expect(range).toHaveScreenshot(screenshot(`range-no-items-no-label`));
|
|
15
15
|
});
|
|
16
16
|
test('should render label in the start placement', async ({ page }) => {
|
|
17
17
|
await page.setContent(`
|
|
@@ -20,7 +20,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
20
20
|
</ion-range>
|
|
21
21
|
`, config);
|
|
22
22
|
const range = page.locator('ion-range');
|
|
23
|
-
expect(
|
|
23
|
+
await expect(range).toHaveScreenshot(screenshot(`range-no-items-start`));
|
|
24
24
|
});
|
|
25
25
|
test('should render label in the end placement', async ({ page }) => {
|
|
26
26
|
await page.setContent(`
|
|
@@ -29,7 +29,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
29
29
|
</ion-range>
|
|
30
30
|
`, config);
|
|
31
31
|
const range = page.locator('ion-range');
|
|
32
|
-
expect(
|
|
32
|
+
await expect(range).toHaveScreenshot(screenshot(`range-no-items-end`));
|
|
33
33
|
});
|
|
34
34
|
test('should render label in the fixed placement', async ({ page }) => {
|
|
35
35
|
await page.setContent(`
|
|
@@ -38,7 +38,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
38
38
|
</ion-range>
|
|
39
39
|
`, config);
|
|
40
40
|
const range = page.locator('ion-range');
|
|
41
|
-
expect(
|
|
41
|
+
await expect(range).toHaveScreenshot(screenshot(`range-no-items-fixed`));
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
test.describe('range: start and end items', () => {
|
|
@@ -50,7 +50,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
50
50
|
</ion-range>
|
|
51
51
|
`, config);
|
|
52
52
|
const range = page.locator('ion-range');
|
|
53
|
-
expect(
|
|
53
|
+
await expect(range).toHaveScreenshot(screenshot(`range-items-no-label`));
|
|
54
54
|
});
|
|
55
55
|
test('should render label in the start placement', async ({ page }) => {
|
|
56
56
|
await page.setContent(`
|
|
@@ -61,7 +61,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
61
61
|
</ion-range>
|
|
62
62
|
`, config);
|
|
63
63
|
const range = page.locator('ion-range');
|
|
64
|
-
expect(
|
|
64
|
+
await expect(range).toHaveScreenshot(screenshot(`range-items-start`));
|
|
65
65
|
});
|
|
66
66
|
test('should render label in the end placement', async ({ page }) => {
|
|
67
67
|
await page.setContent(`
|
|
@@ -72,7 +72,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
72
72
|
</ion-range>
|
|
73
73
|
`, config);
|
|
74
74
|
const range = page.locator('ion-range');
|
|
75
|
-
expect(
|
|
75
|
+
await expect(range).toHaveScreenshot(screenshot(`range-items-end`));
|
|
76
76
|
});
|
|
77
77
|
test('should render label in the fixed placement', async ({ page }) => {
|
|
78
78
|
await page.setContent(`
|
|
@@ -83,24 +83,24 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
83
83
|
</ion-range>
|
|
84
84
|
`, config);
|
|
85
85
|
const range = page.locator('ion-range');
|
|
86
|
-
expect(
|
|
86
|
+
await expect(range).toHaveScreenshot(screenshot(`range-items-fixed`));
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
test.describe('range: label prop', () => {
|
|
90
90
|
test('should render label in the start placement', async ({ page }) => {
|
|
91
91
|
await page.setContent(`<ion-range label-placement="start" label="Volume"></ion-range>`, config);
|
|
92
92
|
const range = page.locator('ion-range');
|
|
93
|
-
expect(
|
|
93
|
+
await expect(range).toHaveScreenshot(screenshot(`range-label-prop-start`));
|
|
94
94
|
});
|
|
95
95
|
test('should render label in the end placement', async ({ page }) => {
|
|
96
96
|
await page.setContent(`<ion-range label-placement="end" label="Volume"></ion-range>`, config);
|
|
97
97
|
const range = page.locator('ion-range');
|
|
98
|
-
expect(
|
|
98
|
+
await expect(range).toHaveScreenshot(screenshot(`range-label-prop-end`));
|
|
99
99
|
});
|
|
100
100
|
test('should render label in the fixed placement', async ({ page }) => {
|
|
101
101
|
await page.setContent(`<ion-range label-placement="fixed" label="Volume"></ion-range>`, config);
|
|
102
102
|
const range = page.locator('ion-range');
|
|
103
|
-
expect(
|
|
103
|
+
await expect(range).toHaveScreenshot(screenshot(`range-label-prop-fixed`));
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
});
|
|
@@ -114,7 +114,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
114
114
|
</ion-range>
|
|
115
115
|
`, config);
|
|
116
116
|
const range = page.locator('ion-range');
|
|
117
|
-
expect(
|
|
117
|
+
await expect(range).toHaveScreenshot(screenshot(`range-label-truncate`));
|
|
118
118
|
});
|
|
119
119
|
});
|
|
120
120
|
});
|
|
@@ -19,14 +19,14 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
19
19
|
const rangeHandle = range.locator('.range-knob-handle');
|
|
20
20
|
await rangeHandle.evaluate((el) => el.classList.add('ion-focused'));
|
|
21
21
|
await page.waitForChanges();
|
|
22
|
-
expect(
|
|
22
|
+
await expect(range).toHaveScreenshot(screenshot(`range-focus`));
|
|
23
23
|
const box = (await rangeHandle.boundingBox());
|
|
24
24
|
const centerX = box.x + box.width / 2;
|
|
25
25
|
const centerY = box.y + box.height / 2;
|
|
26
26
|
await page.mouse.move(centerX, centerY);
|
|
27
27
|
await page.mouse.down();
|
|
28
28
|
await page.waitForChanges();
|
|
29
|
-
expect(
|
|
29
|
+
await expect(range).toHaveScreenshot(screenshot(`range-active`));
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
});
|
|
@@ -43,7 +43,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
43
43
|
const rangeHandle = range.locator('.range-knob-handle');
|
|
44
44
|
await rangeHandle.evaluate((el) => el.classList.add('ion-focused'));
|
|
45
45
|
await page.waitForChanges();
|
|
46
|
-
expect(
|
|
46
|
+
await expect(range).toHaveScreenshot(screenshot(`range-focus-with-pin`));
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
});
|
|
@@ -8,7 +8,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
8
8
|
test('should not have visual regressions', async ({ page }) => {
|
|
9
9
|
await page.goto(`/src/components/range/test/legacy/active-bar-start`, config);
|
|
10
10
|
await page.setIonViewport();
|
|
11
|
-
expect(
|
|
11
|
+
await expect(page).toHaveScreenshot(screenshot(`range-activeBarStart-diff`));
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
14
|
});
|
|
@@ -8,7 +8,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
8
8
|
test('should not have visual regressions', async ({ page }) => {
|
|
9
9
|
await page.goto(`/src/components/range/test/legacy/basic`, config);
|
|
10
10
|
await page.setIonViewport();
|
|
11
|
-
expect(
|
|
11
|
+
await expect(page).toHaveScreenshot(screenshot(`range-diff`));
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
14
|
});
|
|
@@ -14,7 +14,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
14
14
|
</ion-range>
|
|
15
15
|
`, config);
|
|
16
16
|
const range = page.locator('ion-range');
|
|
17
|
-
expect(
|
|
17
|
+
await expect(range).toHaveScreenshot(screenshot(`range-enabled`));
|
|
18
18
|
});
|
|
19
19
|
test('should render disabled state', async ({ page }) => {
|
|
20
20
|
await page.setContent(`
|
|
@@ -25,7 +25,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
25
25
|
</ion-range>
|
|
26
26
|
`, config);
|
|
27
27
|
const range = page.locator('ion-range');
|
|
28
|
-
expect(
|
|
28
|
+
await expect(range).toHaveScreenshot(screenshot(`range-disabled`));
|
|
29
29
|
});
|
|
30
30
|
test('should render disabled state with a value', async ({ page }) => {
|
|
31
31
|
await page.setContent(`
|
|
@@ -36,7 +36,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
36
36
|
</ion-range>
|
|
37
37
|
`, config);
|
|
38
38
|
const range = page.locator('ion-range');
|
|
39
|
-
expect(
|
|
39
|
+
await expect(range).toHaveScreenshot(screenshot(`range-disabled-value`));
|
|
40
40
|
});
|
|
41
41
|
test('should render disabled state with ticks', async ({ page }) => {
|
|
42
42
|
await page.setContent(`
|
|
@@ -47,7 +47,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
47
47
|
</ion-range>
|
|
48
48
|
`, config);
|
|
49
49
|
const range = page.locator('ion-range');
|
|
50
|
-
expect(
|
|
50
|
+
await expect(range).toHaveScreenshot(screenshot(`range-disabled-ticks`));
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
});
|
|
@@ -16,7 +16,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
16
16
|
</ion-card>
|
|
17
17
|
`, config);
|
|
18
18
|
const card = page.locator('ion-card');
|
|
19
|
-
expect(
|
|
19
|
+
await expect(card).toHaveScreenshot(screenshot(`select-card`));
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
});
|
|
@@ -13,7 +13,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
13
13
|
</ion-select>
|
|
14
14
|
`, config);
|
|
15
15
|
const select = page.locator('ion-select');
|
|
16
|
-
expect(
|
|
16
|
+
await expect(select).toHaveScreenshot(screenshot(`select-no-fill-color`));
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
test.describe('input: fill solid', () => {
|
|
@@ -24,7 +24,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
24
24
|
</ion-select>
|
|
25
25
|
`, config);
|
|
26
26
|
const select = page.locator('ion-select');
|
|
27
|
-
expect(
|
|
27
|
+
await expect(select).toHaveScreenshot(screenshot(`select-solid-color`));
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
test.describe('input: fill outline', () => {
|
|
@@ -35,7 +35,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
35
35
|
</ion-select>
|
|
36
36
|
`, config);
|
|
37
37
|
const select = page.locator('ion-select');
|
|
38
|
-
expect(
|
|
38
|
+
await expect(select).toHaveScreenshot(screenshot(`select-outline-color`));
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
});
|
|
@@ -17,7 +17,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
17
17
|
</ion-select>
|
|
18
18
|
`, config);
|
|
19
19
|
const select = page.locator('ion-select');
|
|
20
|
-
expect(
|
|
20
|
+
await expect(select).toHaveScreenshot(screenshot(`select-fill-solid`));
|
|
21
21
|
});
|
|
22
22
|
test('should render correctly with floating label', async ({ page }) => {
|
|
23
23
|
await page.setContent(`
|
|
@@ -31,7 +31,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
31
31
|
</ion-select>
|
|
32
32
|
`, config);
|
|
33
33
|
const select = page.locator('ion-select');
|
|
34
|
-
expect(
|
|
34
|
+
await expect(select).toHaveScreenshot(screenshot(`select-fill-solid-label-floating`));
|
|
35
35
|
});
|
|
36
36
|
test('should not have visual regressions with shaped solid', async ({ page }) => {
|
|
37
37
|
await page.setContent(`
|
|
@@ -45,7 +45,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
45
45
|
</ion-select>
|
|
46
46
|
`, config);
|
|
47
47
|
const select = page.locator('ion-select');
|
|
48
|
-
expect(
|
|
48
|
+
await expect(select).toHaveScreenshot(screenshot(`select-fill-shaped-solid`));
|
|
49
49
|
});
|
|
50
50
|
test('padding and border radius should be customizable', async ({ page }) => {
|
|
51
51
|
await page.setContent(`
|
|
@@ -67,7 +67,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
67
67
|
</ion-select>
|
|
68
68
|
`, config);
|
|
69
69
|
const select = page.locator('ion-select');
|
|
70
|
-
expect(
|
|
70
|
+
await expect(select).toHaveScreenshot(screenshot(`select-fill-shaped-solid-custom`));
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
73
|
test.describe('select: fill outline', () => {
|
|
@@ -82,7 +82,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
82
82
|
</ion-select>
|
|
83
83
|
`, config);
|
|
84
84
|
const select = page.locator('ion-select');
|
|
85
|
-
expect(
|
|
85
|
+
await expect(select).toHaveScreenshot(screenshot(`select-fill-outline`));
|
|
86
86
|
});
|
|
87
87
|
test('should render correctly with floating label', async ({ page }) => {
|
|
88
88
|
await page.setContent(`
|
|
@@ -96,7 +96,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
96
96
|
</ion-select>
|
|
97
97
|
`, config);
|
|
98
98
|
const select = page.locator('ion-select');
|
|
99
|
-
expect(
|
|
99
|
+
await expect(select).toHaveScreenshot(screenshot(`select-fill-outline-label-floating`));
|
|
100
100
|
});
|
|
101
101
|
test('should not have visual regressions with shaped outline', async ({ page }) => {
|
|
102
102
|
await page.setContent(`
|
|
@@ -110,7 +110,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
110
110
|
</ion-select>
|
|
111
111
|
`, config);
|
|
112
112
|
const select = page.locator('ion-select');
|
|
113
|
-
expect(
|
|
113
|
+
await expect(select).toHaveScreenshot(screenshot(`select-fill-shaped-outline`));
|
|
114
114
|
});
|
|
115
115
|
test('padding and border radius should be customizable', async ({ page }) => {
|
|
116
116
|
await page.setContent(`
|
|
@@ -132,7 +132,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
132
132
|
</ion-select>
|
|
133
133
|
`, config);
|
|
134
134
|
const select = page.locator('ion-select');
|
|
135
|
-
expect(
|
|
135
|
+
await expect(select).toHaveScreenshot(screenshot(`select-fill-shaped-outline-custom`));
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
138
|
});
|
|
@@ -156,7 +156,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
156
156
|
</ion-select>
|
|
157
157
|
`, config);
|
|
158
158
|
const select = page.locator('ion-select');
|
|
159
|
-
expect(
|
|
159
|
+
await expect(select).toHaveScreenshot(screenshot(`select-fill-outline-slotted-label`));
|
|
160
160
|
});
|
|
161
161
|
test('should render the notch correctly with a slotted label after the select was originally hidden', async ({ page, }) => {
|
|
162
162
|
await page.setContent(`
|
|
@@ -177,7 +177,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
177
177
|
`, config);
|
|
178
178
|
const select = page.locator('ion-select');
|
|
179
179
|
await select.evaluate((el) => el.style.removeProperty('display'));
|
|
180
|
-
expect(
|
|
180
|
+
await expect(select).toHaveScreenshot(screenshot(`select-fill-outline-hidden-slotted-label`));
|
|
181
181
|
});
|
|
182
182
|
});
|
|
183
183
|
test.describe(title('select: notch cutout'), () => {
|
|
@@ -100,7 +100,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
100
100
|
<ion-select label="Label" class="select-expanded"></ion-select>
|
|
101
101
|
`, config);
|
|
102
102
|
const select = page.locator('ion-select');
|
|
103
|
-
expect(
|
|
103
|
+
await expect(select).toHaveScreenshot(screenshot(`select-no-fill-highlight`));
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
test.describe('select: solid', () => {
|
|
@@ -109,7 +109,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
109
109
|
<ion-select fill="solid" label="Label" class="select-expanded"></ion-select>
|
|
110
110
|
`, config);
|
|
111
111
|
const select = page.locator('ion-select');
|
|
112
|
-
expect(
|
|
112
|
+
await expect(select).toHaveScreenshot(screenshot(`select-solid-highlight`));
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
115
|
test.describe('select: outline', () => {
|
|
@@ -118,7 +118,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
118
118
|
<ion-select fill="outline" label="Label" class="select-expanded"></ion-select>
|
|
119
119
|
`, config);
|
|
120
120
|
const select = page.locator('ion-select');
|
|
121
|
-
expect(
|
|
121
|
+
await expect(select).toHaveScreenshot(screenshot(`select-outline-highlight`));
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
});
|
|
@@ -19,7 +19,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
19
19
|
</ion-list>
|
|
20
20
|
`, config);
|
|
21
21
|
const list = page.locator('ion-list');
|
|
22
|
-
expect(
|
|
22
|
+
await expect(list).toHaveScreenshot(screenshot(`select-list-no-fill`));
|
|
23
23
|
});
|
|
24
24
|
test('should render correctly in inset list with no fill', async ({ page }) => {
|
|
25
25
|
await page.setContent(`
|
|
@@ -35,7 +35,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
35
35
|
</ion-list>
|
|
36
36
|
`, config);
|
|
37
37
|
const list = page.locator('ion-list');
|
|
38
|
-
expect(
|
|
38
|
+
await expect(list).toHaveScreenshot(screenshot(`select-inset-list-no-fill`));
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
});
|