@@ -19,17 +19,17 @@ module('Integration | Component | Fields | Textarea', function (hooks) {
19
19
assert
20
20
.dom (' [data-hint]' )
21
21
.doesNotExist (
22
- ' Expected hint block not to be displayed as a hint was not provided'
22
+ ' Expected hint block not to be displayed as a hint was not provided' ,
23
23
);
24
24
25
25
assert .dom (' [data-textarea]' ).hasTagName (' textarea' );
26
26
assert .dom (' [data-textarea]' ).hasAttribute (' id' );
27
- assert .dom (' [data-textarea ]' ).hasClass (' text-titles-and-attributes' );
27
+ assert .dom (' [data-container ]' ).hasClass (' text-titles-and-attributes' );
28
28
29
29
assert
30
30
.dom (' [data-error]' )
31
31
.doesNotExist (
32
- ' Expected hint block not to be displayed as an error was not provided'
32
+ ' Expected hint block not to be displayed as an error was not provided' ,
33
33
);
34
34
35
35
assert .dom (' [data-lock-icon]' ).doesNotExist ();
@@ -54,7 +54,7 @@ module('Integration | Component | Fields | Textarea', function (hooks) {
54
54
55
55
assert .ok (
56
56
describedby .includes (hintId ),
57
- ' Expected hintId to be included in the aria-describedby'
57
+ ' Expected hintId to be included in the aria-describedby' ,
58
58
);
59
59
});
60
60
@@ -89,14 +89,16 @@ module('Integration | Component | Fields | Textarea', function (hooks) {
89
89
90
90
assert .ok (
91
91
describedby .includes (errorId ),
92
- ' Expected errorId to be included in the aria-describedby'
92
+ ' Expected errorId to be included in the aria-describedby' ,
93
93
);
94
94
95
95
assert .dom (' [data-textarea]' ).hasAttribute (' aria-invalid' , ' true' );
96
96
97
- assert .dom (' [data-textarea]' ).hasClass (' shadow-error-outline' );
98
- assert .dom (' [data-textarea]' ).hasClass (' focus:shadow-error-focus-outline' );
99
- assert .dom (' [data-textarea]' ).doesNotHaveClass (' shadow-focusable-outline' );
97
+ assert .dom (' [data-container]' ).hasClass (' shadow-error-outline' );
98
+ assert
99
+ .dom (' [data-container]' )
100
+ .hasClass (' focus-within:shadow-error-focus-outline' );
101
+ assert .dom (' [data-container]' ).doesNotHaveClass (' shadow-focusable-outline' );
100
102
});
101
103
102
104
test (' it sets aria-describedby when both a hint and error are provided using the hint and errorIds' , async function (assert ) {
@@ -128,7 +130,7 @@ module('Integration | Component | Fields | Textarea', function (hooks) {
128
130
</template >);
129
131
130
132
assert .dom (' [data-textarea]' ).isDisabled ();
131
- assert .dom (' [data-textarea ]' ).hasClass (' text-disabled' );
133
+ assert .dom (' [data-container ]' ).hasClass (' text-disabled' );
132
134
133
135
assert .dom (' [data-lock-icon]' ).exists ();
134
136
@@ -208,9 +210,9 @@ module('Integration | Component | Fields | Textarea', function (hooks) {
208
210
setupOnerror ((e : Error ) => {
209
211
assert .ok (
210
212
e .message .includes (
211
- ' Assertion Failed: You need either :label or @label'
213
+ ' Assertion Failed: You need either :label or @label' ,
212
214
),
213
- ' Expected assertion error message'
215
+ ' Expected assertion error message' ,
214
216
);
215
217
});
216
218
@@ -223,9 +225,9 @@ module('Integration | Component | Fields | Textarea', function (hooks) {
223
225
setupOnerror ((e : Error ) => {
224
226
assert .ok (
225
227
e .message .includes (
226
- ' Assertion Failed: You can have :label or @label, but not both'
228
+ ' Assertion Failed: You can have :label or @label, but not both' ,
227
229
),
228
- ' Expected assertion error message'
230
+ ' Expected assertion error message' ,
229
231
);
230
232
});
231
233
0 commit comments