@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
|
@@ -20,7 +20,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
20
20
|
<ion-select label="Label" placeholder="Select an Item" label-placement="start" justify="start" style="width: 200px"></ion-select>
|
|
21
21
|
`, config);
|
|
22
22
|
const select = page.locator('ion-select');
|
|
23
|
-
expect(
|
|
23
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-start-justify-start`));
|
|
24
24
|
});
|
|
25
25
|
test('should render an end justification with label in the start position', async ({ page }) => {
|
|
26
26
|
await page.setContent(`
|
|
@@ -28,7 +28,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
28
28
|
<ion-select label="Label" placeholder="Select an Item" label-placement="start" justify="end" style="width: 200px"></ion-select>
|
|
29
29
|
`, config);
|
|
30
30
|
const select = page.locator('ion-select');
|
|
31
|
-
expect(
|
|
31
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-start-justify-end`));
|
|
32
32
|
});
|
|
33
33
|
test('should render a space between justification with label in the start position', async ({ page }) => {
|
|
34
34
|
await page.setContent(`
|
|
@@ -36,7 +36,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
36
36
|
<ion-select label="Label" placeholder="Select an Item" label-placement="start" justify="space-between" style="width: 200px"></ion-select>
|
|
37
37
|
`, config);
|
|
38
38
|
const select = page.locator('ion-select');
|
|
39
|
-
expect(
|
|
39
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-start-justify-space-between`));
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
test.describe('select: end placement', () => {
|
|
@@ -46,7 +46,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
46
46
|
<ion-select label="Label" placeholder="Select an Item" label-placement="end" justify="start" style="width: 200px"></ion-select>
|
|
47
47
|
`, config);
|
|
48
48
|
const select = page.locator('ion-select');
|
|
49
|
-
expect(
|
|
49
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-end-justify-start`));
|
|
50
50
|
});
|
|
51
51
|
test('should render an end justification with label in the end position', async ({ page }) => {
|
|
52
52
|
await page.setContent(`
|
|
@@ -54,7 +54,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
54
54
|
<ion-select label="Label" placeholder="Select an Item" label-placement="end" justify="end" style="width: 200px"></ion-select>
|
|
55
55
|
`, config);
|
|
56
56
|
const select = page.locator('ion-select');
|
|
57
|
-
expect(
|
|
57
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-end-justify-end`));
|
|
58
58
|
});
|
|
59
59
|
test('should render a space between justification with label in the end position', async ({ page }) => {
|
|
60
60
|
await page.setContent(`
|
|
@@ -62,7 +62,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
62
62
|
<ion-select label="Label" placeholder="Select an Item" label-placement="end" justify="space-between" style="width: 200px"></ion-select>
|
|
63
63
|
`, config);
|
|
64
64
|
const select = page.locator('ion-select');
|
|
65
|
-
expect(
|
|
65
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-end-justify-space-between`));
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
test.describe('select: fixed placement', () => {
|
|
@@ -72,7 +72,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
72
72
|
<ion-select label="Label" placeholder="Select an Item" label-placement="fixed" justify="start" style="width: 200px"></ion-select>
|
|
73
73
|
`, config);
|
|
74
74
|
const select = page.locator('ion-select');
|
|
75
|
-
expect(
|
|
75
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-fixed-justify-start`));
|
|
76
76
|
});
|
|
77
77
|
test('should render an end justification with label in the fixed position', async ({ page }) => {
|
|
78
78
|
await page.setContent(`
|
|
@@ -80,7 +80,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
80
80
|
<ion-select label="Label" placeholder="Select an Item" label-placement="fixed" justify="end" style="width: 200px"></ion-select>
|
|
81
81
|
`, config);
|
|
82
82
|
const select = page.locator('ion-select');
|
|
83
|
-
expect(
|
|
83
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-fixed-justify-end`));
|
|
84
84
|
});
|
|
85
85
|
test('should render a space between justification with label in the fixed position', async ({ page }) => {
|
|
86
86
|
await page.setContent(`
|
|
@@ -88,7 +88,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
88
88
|
<ion-select label="Label" placeholder="Select an Item" label-placement="fixed" justify="space-between" style="width: 200px"></ion-select>
|
|
89
89
|
`, config);
|
|
90
90
|
const select = page.locator('ion-select');
|
|
91
|
-
expect(
|
|
91
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-fixed-justify-space-between`));
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
test.describe('select: floating placement', () => {
|
|
@@ -99,7 +99,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
99
99
|
</ion-select>
|
|
100
100
|
`, config);
|
|
101
101
|
const select = page.locator('ion-select');
|
|
102
|
-
expect(
|
|
102
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-floating-value`));
|
|
103
103
|
});
|
|
104
104
|
test('label should appear on top of the select when there is no value', async ({ page }) => {
|
|
105
105
|
await page.setContent(`
|
|
@@ -108,7 +108,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
108
108
|
</ion-select>
|
|
109
109
|
`, config);
|
|
110
110
|
const select = page.locator('ion-select');
|
|
111
|
-
expect(
|
|
111
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-floating-no-value`));
|
|
112
112
|
});
|
|
113
113
|
test('label should appear on top of the select when there is a placeholder and no value', async ({ page }) => {
|
|
114
114
|
await page.setContent(`
|
|
@@ -117,7 +117,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
117
117
|
</ion-select>
|
|
118
118
|
`, config);
|
|
119
119
|
const select = page.locator('ion-select');
|
|
120
|
-
expect(
|
|
120
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-floating-no-value-placeholder`));
|
|
121
121
|
});
|
|
122
122
|
test('label should appear on top of the select when the select is expanded', async ({ page }) => {
|
|
123
123
|
await page.setContent(`
|
|
@@ -126,7 +126,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
126
126
|
</ion-select>
|
|
127
127
|
`, config);
|
|
128
128
|
const select = page.locator('ion-select');
|
|
129
|
-
expect(
|
|
129
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-floating-expanded`));
|
|
130
130
|
});
|
|
131
131
|
test('long text should truncate', async ({ page }) => {
|
|
132
132
|
await page.setContent(`
|
|
@@ -135,7 +135,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
135
135
|
</ion-select>
|
|
136
136
|
`, config);
|
|
137
137
|
const select = page.locator('ion-select');
|
|
138
|
-
expect(
|
|
138
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-floating-long-text`));
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
141
|
test.describe('select: stacked placement', () => {
|
|
@@ -146,7 +146,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
146
146
|
</ion-select>
|
|
147
147
|
`, config);
|
|
148
148
|
const select = page.locator('ion-select');
|
|
149
|
-
expect(
|
|
149
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-stacked-value`));
|
|
150
150
|
});
|
|
151
151
|
test('label should appear above the select when there is no value', async ({ page }) => {
|
|
152
152
|
await page.setContent(`
|
|
@@ -155,7 +155,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
155
155
|
</ion-select>
|
|
156
156
|
`, config);
|
|
157
157
|
const select = page.locator('ion-select');
|
|
158
|
-
expect(
|
|
158
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-stacked-no-value`));
|
|
159
159
|
});
|
|
160
160
|
test('label should appear on top of the select when the select is expanded', async ({ page }) => {
|
|
161
161
|
await page.setContent(`
|
|
@@ -164,7 +164,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
164
164
|
</ion-select>
|
|
165
165
|
`, config);
|
|
166
166
|
const select = page.locator('ion-select');
|
|
167
|
-
expect(
|
|
167
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-stacked-expanded`));
|
|
168
168
|
});
|
|
169
169
|
test('long text should truncate', async ({ page }) => {
|
|
170
170
|
await page.setContent(`
|
|
@@ -173,7 +173,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
173
173
|
</ion-select>
|
|
174
174
|
`, config);
|
|
175
175
|
const select = page.locator('ion-select');
|
|
176
|
-
expect(
|
|
176
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-stacked-long-text`));
|
|
177
177
|
});
|
|
178
178
|
});
|
|
179
179
|
});
|
|
@@ -185,7 +185,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
185
185
|
<ion-select label="Label Label Label Label Label" placeholder="Select an Item"></ion-select>
|
|
186
186
|
`, config);
|
|
187
187
|
const select = page.locator('ion-select');
|
|
188
|
-
expect(
|
|
188
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-truncate`));
|
|
189
189
|
});
|
|
190
190
|
test('label slot should be truncated with ellipses', async ({ page }) => {
|
|
191
191
|
await page.setContent(`
|
|
@@ -194,7 +194,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
194
194
|
</ion-select>
|
|
195
195
|
`, config);
|
|
196
196
|
const select = page.locator('ion-select');
|
|
197
|
-
expect(
|
|
197
|
+
await expect(select).toHaveScreenshot(screenshot(`select-label-slot-truncate`));
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
200
|
});
|
|
@@ -10,7 +10,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
10
10
|
<ion-select label="Favorite Fruit" placeholder="Select a fruit"></ion-select>
|
|
11
11
|
`, config);
|
|
12
12
|
const select = page.locator('ion-select');
|
|
13
|
-
expect(
|
|
13
|
+
await expect(select).toHaveScreenshot(screenshot(`select-placeholder`));
|
|
14
14
|
});
|
|
15
15
|
test('should render enabled select with a value correctly', async ({ page }) => {
|
|
16
16
|
await page.setContent(`
|
|
@@ -19,14 +19,14 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
19
19
|
</ion-select>
|
|
20
20
|
`, config);
|
|
21
21
|
const select = page.locator('ion-select');
|
|
22
|
-
expect(
|
|
22
|
+
await expect(select).toHaveScreenshot(screenshot(`select-value`));
|
|
23
23
|
});
|
|
24
24
|
test('should render disabled select with a placeholder correctly', async ({ page }) => {
|
|
25
25
|
await page.setContent(`
|
|
26
26
|
<ion-select label="Favorite Fruit" placeholder="Select a fruit" disabled="true"></ion-select>
|
|
27
27
|
`, config);
|
|
28
28
|
const select = page.locator('ion-select');
|
|
29
|
-
expect(
|
|
29
|
+
await expect(select).toHaveScreenshot(screenshot(`select-disabled-placeholder`));
|
|
30
30
|
});
|
|
31
31
|
test('should render disabled select with a value correctly', async ({ page }) => {
|
|
32
32
|
await page.setContent(`
|
|
@@ -35,7 +35,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
35
35
|
</ion-select>
|
|
36
36
|
`, config);
|
|
37
37
|
const select = page.locator('ion-select');
|
|
38
|
-
expect(
|
|
38
|
+
await expect(select).toHaveScreenshot(screenshot(`select-disabled-value`));
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
});
|
|
@@ -41,7 +41,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
41
41
|
<ion-textarea class="ion-invalid ion-touched custom-textarea" label="my label" error-text="my error"></ion-textarea>
|
|
42
42
|
`, config);
|
|
43
43
|
const errorText = page.locator('ion-textarea .error-text');
|
|
44
|
-
expect(
|
|
44
|
+
await expect(errorText).toHaveScreenshot(screenshot(`textarea-error-custom-color`));
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
test.describe('textarea: hint text rendering', () => {
|
|
@@ -49,12 +49,12 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
49
49
|
test('should not have visual regressions when rendering helper text', async ({ page }) => {
|
|
50
50
|
await page.setContent(`<ion-textarea helper-text="my helper" label="my textarea"></ion-textarea>`, config);
|
|
51
51
|
const bottomEl = page.locator('ion-textarea .textarea-bottom');
|
|
52
|
-
expect(
|
|
52
|
+
await expect(bottomEl).toHaveScreenshot(screenshot(`textarea-bottom-content-helper`));
|
|
53
53
|
});
|
|
54
54
|
test('should not have visual regressions when rendering error text', async ({ page }) => {
|
|
55
55
|
await page.setContent(`<ion-textarea class="ion-invalid ion-touched" error-text="my helper" label="my textarea"></ion-textarea>`, config);
|
|
56
56
|
const bottomEl = page.locator('ion-textarea .textarea-bottom');
|
|
57
|
-
expect(
|
|
57
|
+
await expect(bottomEl).toHaveScreenshot(screenshot(`textarea-bottom-content-error`));
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
});
|
|
@@ -102,17 +102,17 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
102
102
|
test('should not have visual regressions when rendering counter', async ({ page }) => {
|
|
103
103
|
await page.setContent(`<ion-textarea counter="true" maxlength="20" label="my textarea"></ion-textarea>`, config);
|
|
104
104
|
const bottomEl = page.locator('ion-textarea .textarea-bottom');
|
|
105
|
-
expect(
|
|
105
|
+
await expect(bottomEl).toHaveScreenshot(screenshot(`textarea-bottom-content-counter`));
|
|
106
106
|
});
|
|
107
107
|
test('should not have visual regressions when rendering counter with helper text', async ({ page }) => {
|
|
108
108
|
await page.setContent(`<ion-textarea label="my textarea" counter="true" maxlength="20" helper-text="my helper"></ion-textarea>`, config);
|
|
109
109
|
const bottomEl = page.locator('ion-textarea .textarea-bottom');
|
|
110
|
-
expect(
|
|
110
|
+
await expect(bottomEl).toHaveScreenshot(screenshot(`textarea-bottom-content-counter-helper-text`));
|
|
111
111
|
});
|
|
112
112
|
test('should not have visual regressions when rendering counter with error text', async ({ page }) => {
|
|
113
113
|
await page.setContent(`<ion-textarea class="ion-invalid ion-touched" label="my textarea" counter="true" maxlength="20" error-text="my error"></ion-textarea>`, config);
|
|
114
114
|
const bottomEl = page.locator('ion-textarea .textarea-bottom');
|
|
115
|
-
expect(
|
|
115
|
+
await expect(bottomEl).toHaveScreenshot(screenshot(`textarea-bottom-content-counter-error-text`));
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
});
|
|
@@ -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(`textarea-card`));
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
});
|
|
@@ -22,35 +22,35 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
22
22
|
<ion-textarea class="has-focus" color="danger" label="Email" label-placement="start" value="hi@ionic.io"></ion-textarea>
|
|
23
23
|
`, config);
|
|
24
24
|
const textarea = page.locator('ion-textarea');
|
|
25
|
-
expect(
|
|
25
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-no-fill-color-start`));
|
|
26
26
|
});
|
|
27
27
|
test('should set label and highlight color on focus with end label placement', async ({ page }) => {
|
|
28
28
|
await page.setContent(`
|
|
29
29
|
<ion-textarea class="has-focus" color="danger" label="Email" label-placement="end" value="hi@ionic.io"></ion-textarea>
|
|
30
30
|
`, config);
|
|
31
31
|
const textarea = page.locator('ion-textarea');
|
|
32
|
-
expect(
|
|
32
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-no-fill-color-end`));
|
|
33
33
|
});
|
|
34
34
|
test('should set label and highlight color on focus with fixed label placement', async ({ page }) => {
|
|
35
35
|
await page.setContent(`
|
|
36
36
|
<ion-textarea class="has-focus" color="danger" label="Email" label-placement="fixed" value="hi@ionic.io"></ion-textarea>
|
|
37
37
|
`, config);
|
|
38
38
|
const textarea = page.locator('ion-textarea');
|
|
39
|
-
expect(
|
|
39
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-no-fill-color-fixed`));
|
|
40
40
|
});
|
|
41
41
|
test('should set label and highlight color on focus with floating label placement', async ({ page }) => {
|
|
42
42
|
await page.setContent(`
|
|
43
43
|
<ion-textarea class="has-focus" color="danger" label="Email" label-placement="floating" value="hi@ionic.io"></ion-textarea>
|
|
44
44
|
`, config);
|
|
45
45
|
const textarea = page.locator('ion-textarea');
|
|
46
|
-
expect(
|
|
46
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-no-fill-color-floating`));
|
|
47
47
|
});
|
|
48
48
|
test('should set label and highlight color on focus with stacked label placement', async ({ page }) => {
|
|
49
49
|
await page.setContent(`
|
|
50
50
|
<ion-textarea class="has-focus" color="danger" label="Email" label-placement="stacked" value="hi@ionic.io"></ion-textarea>
|
|
51
51
|
`, config);
|
|
52
52
|
const textarea = page.locator('ion-textarea');
|
|
53
|
-
expect(
|
|
53
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-no-fill-color-stacked`));
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
test.describe('textarea: fill solid', () => {
|
|
@@ -59,35 +59,35 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
59
59
|
<ion-textarea fill="solid" class="has-focus" color="danger" label="Email" label-placement="start" value="hi@ionic.io"></ion-textarea>
|
|
60
60
|
`, config);
|
|
61
61
|
const textarea = page.locator('ion-textarea');
|
|
62
|
-
expect(
|
|
62
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-solid-color-start`));
|
|
63
63
|
});
|
|
64
64
|
test('should set label and highlight color on focus with end label placement', async ({ page }) => {
|
|
65
65
|
await page.setContent(`
|
|
66
66
|
<ion-textarea fill="solid" class="has-focus" color="danger" label="Email" label-placement="end" value="hi@ionic.io"></ion-textarea>
|
|
67
67
|
`, config);
|
|
68
68
|
const textarea = page.locator('ion-textarea');
|
|
69
|
-
expect(
|
|
69
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-solid-color-end`));
|
|
70
70
|
});
|
|
71
71
|
test('should set label and highlight color on focus with fixed label placement', async ({ page }) => {
|
|
72
72
|
await page.setContent(`
|
|
73
73
|
<ion-textarea fill="solid" class="has-focus" color="danger" label="Email" label-placement="fixed" value="hi@ionic.io"></ion-textarea>
|
|
74
74
|
`, config);
|
|
75
75
|
const textarea = page.locator('ion-textarea');
|
|
76
|
-
expect(
|
|
76
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-solid-color-fixed`));
|
|
77
77
|
});
|
|
78
78
|
test('should set label and highlight color on focus with floating label placement', async ({ page }) => {
|
|
79
79
|
await page.setContent(`
|
|
80
80
|
<ion-textarea fill="solid" class="has-focus" color="danger" label="Email" label-placement="floating" value="hi@ionic.io"></ion-textarea>
|
|
81
81
|
`, config);
|
|
82
82
|
const textarea = page.locator('ion-textarea');
|
|
83
|
-
expect(
|
|
83
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-solid-color-floating`));
|
|
84
84
|
});
|
|
85
85
|
test('should set label and highlight color on focus with stacked label placement', async ({ page }) => {
|
|
86
86
|
await page.setContent(`
|
|
87
87
|
<ion-textarea fill="solid" class="has-focus" color="danger" label="Email" label-placement="stacked" value="hi@ionic.io"></ion-textarea>
|
|
88
88
|
`, config);
|
|
89
89
|
const textarea = page.locator('ion-textarea');
|
|
90
|
-
expect(
|
|
90
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-solid-color-stacked`));
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
93
|
test.describe('textarea: fill outline', () => {
|
|
@@ -96,35 +96,35 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
96
96
|
<ion-textarea fill="outline" class="has-focus" color="danger" label="Email" label-placement="start" value="hi@ionic.io"></ion-textarea>
|
|
97
97
|
`, config);
|
|
98
98
|
const textarea = page.locator('ion-textarea');
|
|
99
|
-
expect(
|
|
99
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-outline-color-start`));
|
|
100
100
|
});
|
|
101
101
|
test('should set label and highlight color on focus with end label placement', async ({ page }) => {
|
|
102
102
|
await page.setContent(`
|
|
103
103
|
<ion-textarea fill="outline" class="has-focus" color="danger" label="Email" label-placement="end" value="hi@ionic.io"></ion-textarea>
|
|
104
104
|
`, config);
|
|
105
105
|
const textarea = page.locator('ion-textarea');
|
|
106
|
-
expect(
|
|
106
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-outline-color-end`));
|
|
107
107
|
});
|
|
108
108
|
test('should set label and highlight color on focus with fixed label placement', async ({ page }) => {
|
|
109
109
|
await page.setContent(`
|
|
110
110
|
<ion-textarea fill="outline" class="has-focus" color="danger" label="Email" label-placement="fixed" value="hi@ionic.io"></ion-textarea>
|
|
111
111
|
`, config);
|
|
112
112
|
const textarea = page.locator('ion-textarea');
|
|
113
|
-
expect(
|
|
113
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-outline-color-fixed`));
|
|
114
114
|
});
|
|
115
115
|
test('should set label and highlight color on focus with floating label placement', async ({ page }) => {
|
|
116
116
|
await page.setContent(`
|
|
117
117
|
<ion-textarea fill="outline" class="has-focus" color="danger" label="Email" label-placement="floating" value="hi@ionic.io"></ion-textarea>
|
|
118
118
|
`, config);
|
|
119
119
|
const textarea = page.locator('ion-textarea');
|
|
120
|
-
expect(
|
|
120
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-outline-color-floating`));
|
|
121
121
|
});
|
|
122
122
|
test('should set label and highlight color on focus with stacked label placement', async ({ page }) => {
|
|
123
123
|
await page.setContent(`
|
|
124
124
|
<ion-textarea fill="outline" class="has-focus" color="danger" label="Email" label-placement="stacked" value="hi@ionic.io"></ion-textarea>
|
|
125
125
|
`, config);
|
|
126
126
|
const textarea = page.locator('ion-textarea');
|
|
127
|
-
expect(
|
|
127
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-outline-color-stacked`));
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
130
|
});
|
|
@@ -21,7 +21,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
21
21
|
></ion-textarea>
|
|
22
22
|
`, config);
|
|
23
23
|
const textarea = page.locator('ion-textarea');
|
|
24
|
-
expect(
|
|
24
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-fill-solid`));
|
|
25
25
|
});
|
|
26
26
|
test('should render correctly with floating label', async ({ page }) => {
|
|
27
27
|
await page.setContent(`
|
|
@@ -36,7 +36,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
36
36
|
></ion-textarea>
|
|
37
37
|
`, config);
|
|
38
38
|
const textarea = page.locator('ion-textarea');
|
|
39
|
-
expect(
|
|
39
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-fill-solid-label-floating`));
|
|
40
40
|
});
|
|
41
41
|
test('should not have visual regressions with shaped solid', async ({ page }) => {
|
|
42
42
|
await page.setContent(`
|
|
@@ -51,7 +51,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
51
51
|
></ion-textarea>
|
|
52
52
|
`, config);
|
|
53
53
|
const textarea = page.locator('ion-textarea');
|
|
54
|
-
expect(
|
|
54
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-fill-shaped-solid`));
|
|
55
55
|
});
|
|
56
56
|
test('padding and border radius should be customizable', async ({ page }) => {
|
|
57
57
|
await page.setContent(`
|
|
@@ -75,7 +75,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
75
75
|
></ion-textarea>
|
|
76
76
|
`, config);
|
|
77
77
|
const textarea = page.locator('ion-textarea');
|
|
78
|
-
expect(
|
|
78
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-fill-shaped-solid-custom`));
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
81
|
test.describe('textarea: fill outline', () => {
|
|
@@ -91,7 +91,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
91
91
|
></ion-textarea>
|
|
92
92
|
`, config);
|
|
93
93
|
const textarea = page.locator('ion-textarea');
|
|
94
|
-
expect(
|
|
94
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-fill-outline`));
|
|
95
95
|
});
|
|
96
96
|
test('should render correctly with floating label', async ({ page }) => {
|
|
97
97
|
await page.setContent(`
|
|
@@ -106,7 +106,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
106
106
|
></ion-textarea>
|
|
107
107
|
`, config);
|
|
108
108
|
const textarea = page.locator('ion-textarea');
|
|
109
|
-
expect(
|
|
109
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-fill-outline-label-floating`));
|
|
110
110
|
});
|
|
111
111
|
test('should not have visual regressions with shaped outline', async ({ page }) => {
|
|
112
112
|
await page.setContent(`
|
|
@@ -121,7 +121,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
121
121
|
></ion-textarea>
|
|
122
122
|
`, config);
|
|
123
123
|
const textarea = page.locator('ion-textarea');
|
|
124
|
-
expect(
|
|
124
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-fill-shaped-outline`));
|
|
125
125
|
});
|
|
126
126
|
test('padding and border radius should be customizable', async ({ page }) => {
|
|
127
127
|
await page.setContent(`
|
|
@@ -145,7 +145,7 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
|
145
145
|
></ion-textarea>
|
|
146
146
|
`, config);
|
|
147
147
|
const textarea = page.locator('ion-textarea');
|
|
148
|
-
expect(
|
|
148
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-fill-shaped-outline-custom`));
|
|
149
149
|
});
|
|
150
150
|
});
|
|
151
151
|
});
|
|
@@ -179,7 +179,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
179
179
|
</ion-textarea>
|
|
180
180
|
`, config);
|
|
181
181
|
const textarea = page.locator('ion-textarea');
|
|
182
|
-
expect(
|
|
182
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-fill-outline-slotted-label`));
|
|
183
183
|
});
|
|
184
184
|
test('should render the notch correctly with a slotted label after the textarea was originally hidden', async ({ page, }) => {
|
|
185
185
|
await page.setContent(`
|
|
@@ -199,7 +199,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
199
199
|
`, config);
|
|
200
200
|
const textarea = page.locator('ion-textarea');
|
|
201
201
|
await textarea.evaluate((el) => el.style.removeProperty('display'));
|
|
202
|
-
expect(
|
|
202
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-fill-outline-hidden-slotted-label`));
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
205
|
});
|
|
@@ -22,7 +22,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
22
22
|
></ion-textarea>
|
|
23
23
|
`, config);
|
|
24
24
|
const textarea = page.locator('ion-textarea');
|
|
25
|
-
expect(
|
|
25
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-no-fill-valid`));
|
|
26
26
|
});
|
|
27
27
|
test('should render invalid state correctly', async ({ page }) => {
|
|
28
28
|
await page.setContent(`
|
|
@@ -37,7 +37,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
37
37
|
></ion-textarea>
|
|
38
38
|
`, config);
|
|
39
39
|
const textarea = page.locator('ion-textarea');
|
|
40
|
-
expect(
|
|
40
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-no-fill-invalid`));
|
|
41
41
|
});
|
|
42
42
|
test('should render focused state correctly', async ({ page }) => {
|
|
43
43
|
await page.setContent(`
|
|
@@ -52,7 +52,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
52
52
|
></ion-textarea>
|
|
53
53
|
`, config);
|
|
54
54
|
const textarea = page.locator('ion-textarea');
|
|
55
|
-
expect(
|
|
55
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-no-fill-focus`));
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
test.describe('textarea: solid', () => {
|
|
@@ -70,7 +70,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
70
70
|
></ion-textarea>
|
|
71
71
|
`, config);
|
|
72
72
|
const textarea = page.locator('ion-textarea');
|
|
73
|
-
expect(
|
|
73
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-solid-valid`));
|
|
74
74
|
});
|
|
75
75
|
test('should render invalid state correctly', async ({ page }) => {
|
|
76
76
|
await page.setContent(`
|
|
@@ -86,7 +86,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
86
86
|
></ion-textarea>
|
|
87
87
|
`, config);
|
|
88
88
|
const textarea = page.locator('ion-textarea');
|
|
89
|
-
expect(
|
|
89
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-solid-invalid`));
|
|
90
90
|
});
|
|
91
91
|
test('should render focused state correctly', async ({ page }) => {
|
|
92
92
|
await page.setContent(`
|
|
@@ -102,7 +102,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
102
102
|
></ion-textarea>
|
|
103
103
|
`, config);
|
|
104
104
|
const textarea = page.locator('ion-textarea');
|
|
105
|
-
expect(
|
|
105
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-solid-focus`));
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
test.describe('textarea: outline', () => {
|
|
@@ -120,7 +120,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
120
120
|
></ion-textarea>
|
|
121
121
|
`, config);
|
|
122
122
|
const textarea = page.locator('ion-textarea');
|
|
123
|
-
expect(
|
|
123
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-outline-valid`));
|
|
124
124
|
});
|
|
125
125
|
test('should render invalid state correctly', async ({ page }) => {
|
|
126
126
|
await page.setContent(`
|
|
@@ -136,7 +136,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
136
136
|
></ion-textarea>
|
|
137
137
|
`, config);
|
|
138
138
|
const textarea = page.locator('ion-textarea');
|
|
139
|
-
expect(
|
|
139
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-outline-invalid`));
|
|
140
140
|
});
|
|
141
141
|
test('should render focused state correctly', async ({ page }) => {
|
|
142
142
|
await page.setContent(`
|
|
@@ -152,7 +152,7 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
|
|
|
152
152
|
></ion-textarea>
|
|
153
153
|
`, config);
|
|
154
154
|
const textarea = page.locator('ion-textarea');
|
|
155
|
-
expect(
|
|
155
|
+
await expect(textarea).toHaveScreenshot(screenshot(`textarea-outline-focus`));
|
|
156
156
|
});
|
|
157
157
|
});
|
|
158
158
|
});
|
|
@@ -20,7 +20,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
20
20
|
</ion-list>
|
|
21
21
|
`, config);
|
|
22
22
|
const list = page.locator('ion-list');
|
|
23
|
-
expect(
|
|
23
|
+
await expect(list).toHaveScreenshot(screenshot(`textarea-list-no-fill`));
|
|
24
24
|
});
|
|
25
25
|
test('should render correctly in inset list with no fill', async ({ page }) => {
|
|
26
26
|
await page.setContent(`
|
|
@@ -37,7 +37,7 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
37
37
|
</ion-list>
|
|
38
38
|
`, config);
|
|
39
39
|
const list = page.locator('ion-list');
|
|
40
|
-
expect(
|
|
40
|
+
await expect(list).toHaveScreenshot(screenshot(`textarea-inset-list-no-fill`));
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
});
|