@@ -8,11 +8,7 @@ module('Integration | Component | es ulist', function(hooks){
8
8
9
9
test ( 'it renders with border' , async function ( assert ) {
10
10
11
- await render ( hbs `
12
- <EsUlist
13
- @hasBorder={{true}}
14
- />`
15
- ) ;
11
+ await render ( hbs `{{es-ulist hasBorder=true}}` ) ;
16
12
17
13
assert . dom ( '.es-ulist' ) . hasClass ( 'bordered' ) ;
18
14
@@ -22,12 +18,7 @@ module('Integration | Component | es ulist', function(hooks){
22
18
test ( 'it renders the title with correct id' , async function ( assert ) {
23
19
assert . expect ( 2 ) ;
24
20
25
- await render ( hbs `
26
- <EsUlist
27
- @elementId="mylist"
28
- @listTitle="My List Title"
29
- />`
30
- ) ;
21
+ await render ( hbs `{{es-ulist elementId="mylist" listTitle="My List Title"}}` ) ;
31
22
32
23
assert . dom ( '#mylist' ) . hasText ( 'My List Title' ) ;
33
24
assert . dom ( '.es-ulist' ) . doesNotHaveClass ( 'bordered' ) ;
@@ -36,14 +27,7 @@ module('Integration | Component | es ulist', function(hooks){
36
27
test ( 'it renders the title with sr-only class when isTitleVisible is true' , async function ( assert ) {
37
28
assert . expect ( 2 ) ;
38
29
39
- await render ( hbs `
40
- <EsUlist
41
- @isTitleVisible={{true}}
42
- @sr-only="srClass"
43
- @elementId="mylist"
44
- @listTitle="My List Title"
45
- />`
46
- ) ;
30
+ await render ( hbs `{{es-ulist isTitleVisible=true sr-only="srClass" elementId="mylist" listTitle="My List Title"}}` ) ;
47
31
48
32
assert . dom ( '#list-mylist' ) . hasClass ( 'list-title' ) ;
49
33
assert . dom ( '#list-mylist' ) . hasClass ( 'srClass' ) ;
@@ -52,14 +36,7 @@ module('Integration | Component | es ulist', function(hooks){
52
36
test ( 'it renders the title without sr-only class when isTitleVisible is false' , async function ( assert ) {
53
37
assert . expect ( 2 ) ;
54
38
55
- await render ( hbs `
56
- <EsUlist
57
- @isTitleVisible={{false}}
58
- @sr-only="srClass"
59
- @elementId="mylist"
60
- @listTitle="My List Title"
61
- />`
62
- ) ;
39
+ await render ( hbs `{{es-ulist isTitleVisible=false sr-only="srClass" elementId="mylist" listTitle="My List Title"}}` ) ;
63
40
64
41
assert . dom ( '#list-mylist' ) . hasClass ( 'list-title' ) ;
65
42
assert . dom ( '#list-mylist' ) . doesNotHaveClass ( 'srClass' ) ;
@@ -73,11 +50,7 @@ module('Integration | Component | es ulist', function(hooks){
73
50
test ( 'the list does not have unorderded items' , async function ( assert ) {
74
51
assert . expect ( 1 ) ;
75
52
76
- await render ( hbs `
77
- <EsUlist
78
- @isUnorderedList={{false}}
79
- />`
80
- ) ;
53
+ await render ( hbs `{{es-ulist isUnorderedList=false}}` ) ;
81
54
82
55
assert . dom ( '.es-ulist ul' ) . doesNotExist ( ) ;
83
56
} ) ;
@@ -88,12 +61,7 @@ module('Integration | Component | es ulist', function(hooks){
88
61
test ( 'the id value of the list title matches the value in the aria-describedby property on the list element' , async function ( assert ) {
89
62
assert . expect ( 2 ) ;
90
63
91
- await render ( hbs `
92
- <EsUlist
93
- @elementId='mylist'
94
- @isUnorderedList={{true}}
95
- />`
96
- ) ;
64
+ await render ( hbs `{{es-ulist elementId='mylist' isUnorderedList=true}}` ) ;
97
65
98
66
assert . dom ( '.es-ulist ul' ) . hasAttribute ( 'aria-describedby' , 'list-mylist' ) ;
99
67
assert . dom ( '.list-title' ) . hasAttribute ( 'id' , 'list-mylist' ) ;
@@ -103,11 +71,7 @@ module('Integration | Component | es ulist', function(hooks){
103
71
test ( 'the list does not have ordered items' , async function ( assert ) {
104
72
assert . expect ( 1 ) ;
105
73
106
- await render ( hbs `
107
- <EsUlist
108
- @isUnorderedList={{false}}
109
- />`
110
- ) ;
74
+ await render ( hbs `{{es-ulist isUnorderedList=false}}` ) ;
111
75
112
76
assert . dom ( '.es-ulist ol' ) . doesNotExist ( ) ;
113
77
} ) ;
@@ -138,12 +102,7 @@ module('Integration | Component | es ulist', function(hooks){
138
102
test ( 'the list has correct aria label and classes' , async function ( assert ) {
139
103
assert . expect ( 3 ) ;
140
104
141
- await render ( hbs `
142
- <EsUlist
143
- @elementId='mylist'
144
- @isUnorderedList={{true}}
145
- />`
146
- ) ;
105
+ await render ( hbs `{{es-ulist elementId='mylist' isUnorderedList=true}}` ) ;
147
106
148
107
assert . dom ( '.es-ulist ul' ) . hasAttribute ( 'aria-labelledby' , 'list-mylist' ) ;
149
108
assert . dom ( '.es-ulist ul' ) . hasClass ( 'list' ) ;
@@ -154,12 +113,7 @@ module('Integration | Component | es ulist', function(hooks){
154
113
test ( 'the list is populated' , async function ( assert ) {
155
114
assert . expect ( 14 ) ;
156
115
157
- await render ( hbs `
158
- <EsUlist
159
- @isUnorderedList={{true}}
160
- @listItems={{listItems}}
161
- />`
162
- ) ;
116
+ await render ( hbs `{{es-ulist isUnorderedList=true listItems=listItems}}` ) ;
163
117
164
118
assert . dom ( '.es-ulist ul li' ) . exists ( { count : 3 } ) ;
165
119
assert . dom ( '.es-ulist ul li:nth-child(1) img' ) . hasAttribute ( 'src' , '/images/tomsters/columbus.png' ) ;
0 commit comments