@@ -22,24 +22,6 @@ test.describe('input: fill', () => {
22
22
const input = page . locator ( 'ion-input' ) ;
23
23
expect ( await input . screenshot ( ) ) . toMatchSnapshot ( `input-fill-solid-${ page . getSnapshotSettings ( ) } .png` ) ;
24
24
} ) ;
25
- test ( 'should render correctly with floating label' , async ( { page } ) => {
26
- await page . setContent ( `
27
- <ion-input
28
- fill="solid"
29
- label="Email"
30
- label-placement="floating"
31
-
32
- helper-text="Enter your email"
33
- maxlength="20"
34
- counter="true"
35
- ></ion-input>
36
- ` ) ;
37
-
38
- const input = page . locator ( 'ion-input' ) ;
39
- expect ( await input . screenshot ( ) ) . toMatchSnapshot (
40
- `input-fill-solid-label-floating-${ page . getSnapshotSettings ( ) } .png`
41
- ) ;
42
- } ) ;
43
25
test ( 'should not have visual regressions with shaped solid' , async ( { page } ) => {
44
26
await page . setContent ( `
45
27
<ion-input
@@ -56,33 +38,6 @@ test.describe('input: fill', () => {
56
38
const input = page . locator ( 'ion-input' ) ;
57
39
expect ( await input . screenshot ( ) ) . toMatchSnapshot ( `input-fill-shaped-solid-${ page . getSnapshotSettings ( ) } .png` ) ;
58
40
} ) ;
59
- test ( 'padding and border radius should be customizable' , async ( { page } ) => {
60
- await page . setContent ( `
61
- <style>
62
- ion-input {
63
- --border-radius: 10px !important;
64
- --padding-start: 50px !important;
65
- --padding-end: 50px !important;
66
- }
67
- </style>
68
-
69
- <ion-input
70
- shape="round"
71
- fill="solid"
72
- label="Email"
73
- label-placement="floating"
74
-
75
- helper-text="Enter your email"
76
- maxlength="20"
77
- counter="true"
78
- ></ion-input>
79
- ` ) ;
80
-
81
- const input = page . locator ( 'ion-input' ) ;
82
- expect ( await input . screenshot ( ) ) . toMatchSnapshot (
83
- `input-fill-shaped-solid-custom-${ page . getSnapshotSettings ( ) } .png`
84
- ) ;
85
- } ) ;
86
41
} ) ;
87
42
test . describe ( 'input: fill outline' , ( ) => {
88
43
test ( 'should not have visual regressions' , async ( { page } ) => {
@@ -100,24 +55,6 @@ test.describe('input: fill', () => {
100
55
const input = page . locator ( 'ion-input' ) ;
101
56
expect ( await input . screenshot ( ) ) . toMatchSnapshot ( `input-fill-outline-${ page . getSnapshotSettings ( ) } .png` ) ;
102
57
} ) ;
103
- test ( 'should render correctly with floating label' , async ( { page } ) => {
104
- await page . setContent ( `
105
- <ion-input
106
- fill="outline"
107
- label="Email"
108
- label-placement="floating"
109
-
110
- helper-text="Enter your email"
111
- maxlength="20"
112
- counter="true"
113
- ></ion-input>
114
- ` ) ;
115
-
116
- const input = page . locator ( 'ion-input' ) ;
117
- expect ( await input . screenshot ( ) ) . toMatchSnapshot (
118
- `input-fill-outline-label-floating-${ page . getSnapshotSettings ( ) } .png`
119
- ) ;
120
- } ) ;
121
58
test ( 'should not have visual regressions with shaped outline' , async ( { page } ) => {
122
59
await page . setContent ( `
123
60
<ion-input
@@ -134,32 +71,5 @@ test.describe('input: fill', () => {
134
71
const input = page . locator ( 'ion-input' ) ;
135
72
expect ( await input . screenshot ( ) ) . toMatchSnapshot ( `input-fill-shaped-outline-${ page . getSnapshotSettings ( ) } .png` ) ;
136
73
} ) ;
137
- test ( 'padding and border radius should be customizable' , async ( { page } ) => {
138
- await page . setContent ( `
139
- <style>
140
- ion-input {
141
- --border-radius: 10px !important;
142
- --padding-start: 50px !important;
143
- --padding-end: 50px !important;
144
- }
145
- </style>
146
-
147
- <ion-input
148
- shape="round"
149
- fill="outline"
150
- label="Email"
151
- label-placement="floating"
152
-
153
- helper-text="Enter your email"
154
- maxlength="20"
155
- counter="true"
156
- ></ion-input>
157
- ` ) ;
158
-
159
- const input = page . locator ( 'ion-input' ) ;
160
- expect ( await input . screenshot ( ) ) . toMatchSnapshot (
161
- `input-fill-shaped-outline-custom-${ page . getSnapshotSettings ( ) } .png`
162
- ) ;
163
- } ) ;
164
74
} ) ;
165
75
} ) ;
0 commit comments