Skip to content

Commit a70f825

Browse files
committed
feat(select): adds more testing
1 parent 1089f5b commit a70f825

File tree

1 file changed

+32
-12
lines changed
  • core/src/components/select/test/bottom-content

1 file changed

+32
-12
lines changed

core/src/components/select/test/bottom-content/index.html

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,44 @@
5252
<div class="grid">
5353

5454
<div class="grid-item">
55-
<h2>Select with Helper</h2>
56-
<ion-select class="ion-touched ion-invalid" helperText="Select a fruit"
57-
errorText="No fruit selected">
58-
<div slot="label">Favorite Fruit <ion-text color="danger">(Required)</ion-text></div>
55+
<h2>Select with Helper text</h2>
56+
<ion-select class="ion-touched ion-valid"
57+
helper-text="Select a fruit"
58+
value="apple">
59+
<div slot="label">Favorite Fruit</div>
5960
<ion-select-option value="apple">Apple</ion-select-option>
6061
<ion-select-option value="bananna">Bananna</ion-select-option>
6162
</ion-select>
6263
</div>
6364

6465
<div class="grid-item">
65-
<h2>Counter with Error</h2>
66-
<ion-input
67-
class="ion-touched ion-invalid"
68-
label="Email"
69-
counter="true"
70-
maxlength="100"
71-
error-text="Please enter a valid email"
72-
></ion-input>
66+
<h2>Select with Error text</h2>
67+
<ion-select class="ion-touched ion-invalid"
68+
error-text="No fruit selected">
69+
<div slot="label">Favorite Fruit</div>
70+
<ion-select-option value="apple">Apple</ion-select-option>
71+
<ion-select-option value="bananna">Bananna</ion-select-option>
72+
</ion-select>
73+
</div>
74+
75+
<div class="grid-item">
76+
<h2>Select with Helper and error text| Valid</h2>
77+
<ion-select class="ion-touched ion-valid" helper-text="Select a fruit"
78+
error-text="No fruit selected" value="apple">
79+
<div slot="label">Favorite Fruit</div>
80+
<ion-select-option value="apple">Apple</ion-select-option>
81+
<ion-select-option value="bananna">Bananna</ion-select-option>
82+
</ion-select>
83+
</div>
84+
85+
<div class="grid-item">
86+
<h2>Select with no helper or error text</h2>
87+
<ion-select class="ion-touched ion-valid"
88+
value="bananna">
89+
<div slot="label">Favorite Fruit</div>
90+
<ion-select-option value="apple">Apple</ion-select-option>
91+
<ion-select-option value="bananna">Bananna</ion-select-option>
92+
</ion-select>
7393
</div>
7494
</div>
7595

0 commit comments

Comments
 (0)