File tree 3 files changed +26
-20
lines changed
tests/acceptance/components/hds
3 files changed +26
-20
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,6 @@ body.components-pagination {
20
20
}
21
21
}
22
22
23
- .shw-component-pagination-ul-wrapper {
24
- margin : 0 ;
25
- padding : 0 ;
26
- list-style : none ;
27
- }
28
-
29
23
// paginated tables demo
30
24
31
25
.shw-component-pagination-table-demo {
Original file line number Diff line number Diff line change 227
227
<Shw::Flex as |SF|>
228
228
<SF .Item as |SFI|>
229
229
<SFI .Label>Generic (default)</SFI .Label>
230
- <ul class = " shw-component-pagination-ul-wrapper " >< Hds::Pagination::Nav::Number @page =" 1" /></ ul >
230
+ <Hds::Pagination::Nav::Number @page =" 1" />
231
231
</SF .Item>
232
232
<SF .Item as |SFI|>
233
233
<SFI .Label>Current (with <code >@isSelected={{ true}} </code >)</SFI .Label>
234
- <ul class =" shw-component-pagination-ul-wrapper" ><Hds::Pagination::Nav::Number
235
- @page =" 1"
236
- @isSelected ={{ true }}
237
- /></ul >
234
+ <Hds::Pagination::Nav::Number @page =" 1" @isSelected ={{ true }} />
238
235
</SF .Item>
239
236
</Shw::Flex >
240
237
247
244
<SF .Item @label ={{ capitalize state }} mock-state-value ={{ state }} mock-state-selector =" button,a" >
248
245
<Shw::Flex as |SF|>
249
246
<SF .Item>
250
- <ul class = " shw-component-pagination-ul-wrapper " >< Hds::Pagination::Nav::Number @page =" 1" /></ ul >
247
+ <Hds::Pagination::Nav::Number @page =" 1" />
251
248
</SF .Item>
252
249
<SF .Item>
253
- <ul class = " shw-component-pagination-ul-wrapper " >< Hds::Pagination::Nav::Number @page =" 12" /></ ul >
250
+ <Hds::Pagination::Nav::Number @page =" 12" />
254
251
</SF .Item>
255
252
<SF .Item>
256
- <ul class = " shw-component-pagination-ul-wrapper " >< Hds::Pagination::Nav::Number @page =" 123" /></ ul >
253
+ <Hds::Pagination::Nav::Number @page =" 123" />
257
254
</SF .Item>
258
255
<SF .Item>
259
- <ul class = " shw-component-pagination-ul-wrapper " >< Hds::Pagination::Nav::Number
256
+ <Hds::Pagination::Nav::Number
260
257
@page =" 1"
261
258
@isSelected ={{ true }}
262
- /></ ul >
259
+ />
263
260
</SF .Item>
264
261
<SF .Item>
265
- <ul class = " shw-component-pagination-ul-wrapper " >< Hds::Pagination::Nav::Number
262
+ <Hds::Pagination::Nav::Number
266
263
@page =" 12"
267
264
@isSelected ={{ true }}
268
- /></ ul >
265
+ />
269
266
</SF .Item>
270
267
<SF .Item>
271
- <ul class = " shw-component-pagination-ul-wrapper " >< Hds::Pagination::Nav::Number
268
+ <Hds::Pagination::Nav::Number
272
269
@page =" 123"
273
270
@isSelected ={{ true }}
274
- /></ ul >
271
+ />
275
272
</SF .Item>
276
273
</Shw::Flex >
277
274
</SF .Item>
Original file line number Diff line number Diff line change 6
6
import { module , test } from 'qunit' ;
7
7
import { click , select , visit , currentURL } from '@ember/test-helpers' ;
8
8
import { setupApplicationTest } from '../../../helpers' ;
9
+ import { a11yAudit } from 'ember-a11y-testing/test-support' ;
9
10
10
11
module ( 'Acceptance | Component | hds/pagination' , function ( hooks ) {
11
12
setupApplicationTest ( hooks ) ;
12
13
14
+ test ( 'Components/pagination page passes automated a11y checks' , async function ( assert ) {
15
+ let axeOptions = {
16
+ rules : {
17
+ 'landmark-unique' : {
18
+ enabled : false ,
19
+ } ,
20
+ } ,
21
+ } ;
22
+ await visit ( '/components/pagination' ) ;
23
+ await a11yAudit ( axeOptions ) ;
24
+
25
+ assert . ok ( true , 'a11y automation audit passed' ) ;
26
+ } )
27
+
13
28
test ( 'interacting with the demo of a "numbered" pagination with routing' , async function ( assert ) {
14
29
await visit ( '/components/pagination' ) ;
15
30
You can’t perform that action at this time.
0 commit comments