@@ -8,7 +8,7 @@ import { enableOpenResource, respondWith, expectOpenResource, disableDefaultResp
88 disclosure triangle, count, or message
99*/
1010async function toggleDeprecationSource ( ) {
11- await click ( '[data-test=" deprecation-count" ]' ) ;
11+ await click ( '[data-test- deprecation-count]' ) ;
1212}
1313
1414function deprecationsWithoutSource ( ) {
@@ -77,18 +77,18 @@ module('Deprecation Tab', function(outer) {
7777
7878 await toggleDeprecationSource ( ) ;
7979
80- assert . dom ( '[data-test=" deprecation-source" ]' ) . doesNotExist ( 'no sources' ) ;
81- assert . dom ( findAll ( '[data-test=" deprecation-message" ]' ) [ 0 ] ) . hasText ( 'Deprecation 1' , 'message shown' ) ;
82- assert . dom ( findAll ( '[data-test=" deprecation-count" ]' ) [ 0 ] ) . hasText ( '2' , 'Count correct' ) ;
83- assert . dom ( '[data-test=" full-trace-deprecations-btn" ]' ) . exists ( 'Full trace button shown' ) ;
80+ assert . dom ( '[data-test- deprecation-source]' ) . doesNotExist ( 'no sources' ) ;
81+ assert . dom ( findAll ( '[data-test- deprecation-message]' ) [ 0 ] ) . hasText ( 'Deprecation 1' , 'message shown' ) ;
82+ assert . dom ( findAll ( '[data-test- deprecation-count]' ) [ 0 ] ) . hasText ( '2' , 'Count correct' ) ;
83+ assert . dom ( '[data-test- full-trace-deprecations-btn]' ) . exists ( 'Full trace button shown' ) ;
8484
8585 respondWith ( 'deprecation:sendStackTraces' , ( { deprecation } ) => {
8686 assert . equal ( deprecation . message , 'Deprecation 1' ) ;
8787 assert . equal ( deprecation . sources . length , 2 ) ;
8888 return false ;
8989 } ) ;
9090
91- await click ( '[data-test=" full-trace-deprecations-btn" ]' ) ;
91+ await click ( '[data-test- full-trace-deprecations-btn]' ) ;
9292 } ) ;
9393 } ) ;
9494
@@ -110,32 +110,32 @@ module('Deprecation Tab', function(outer) {
110110
111111 await toggleDeprecationSource ( ) ;
112112
113- assert . dom ( '[data-test=" deprecation-message"] ' ) . hasText ( 'Deprecation 1' , 'message shown' ) ;
114- assert . dom ( '[data-test=" deprecation-count" ]' ) . hasText ( '2' , 'Count correct' ) ;
115- assert . dom ( '[data-test=" full-trace-deprecations-btn" ]' ) . doesNotExist ( 'Full trace button not shown' ) ;
113+ assert . dom ( '[data-test- deprecation-message' ) . hasText ( 'Deprecation 1' , 'message shown' ) ;
114+ assert . dom ( '[data-test- deprecation-count]' ) . hasText ( '2' , 'Count correct' ) ;
115+ assert . dom ( '[data-test- full-trace-deprecations-btn]' ) . doesNotExist ( 'Full trace button not shown' ) ;
116116
117- let sources = findAll ( '[data-test=" deprecation-source" ]' ) ;
117+ let sources = findAll ( '[data-test- deprecation-source]' ) ;
118118 assert . equal ( sources . length , 2 , 'shows all sources' ) ;
119- assert . notOk ( sources [ 0 ] . querySelector ( '[data-test=" deprecation-source-link" ]' ) , 'source not clickable' ) ;
120- assert . dom ( sources [ 0 ] . querySelector ( '[data-test=" deprecation-source-text" ]' ) ) . hasText ( 'path-to-file.js:1' ) ;
121- assert . notOk ( sources [ 1 ] . querySelector ( '[data-test=" deprecation-source-link" ]' ) , 'source not clickable' ) ;
122- assert . dom ( sources [ 1 ] . querySelector ( '[data-test=" deprecation-source-text" ]' ) ) . hasText ( 'path-to-second-file.js:2' ) ;
119+ assert . notOk ( sources [ 0 ] . querySelector ( '[data-test- deprecation-source-link]' ) , 'source not clickable' ) ;
120+ assert . dom ( sources [ 0 ] . querySelector ( '[data-test- deprecation-source-text]' ) ) . hasText ( 'path-to-file.js:1' ) ;
121+ assert . notOk ( sources [ 1 ] . querySelector ( '[data-test- deprecation-source-link]' ) , 'source not clickable' ) ;
122+ assert . dom ( sources [ 1 ] . querySelector ( '[data-test- deprecation-source-text]' ) ) . hasText ( 'path-to-second-file.js:2' ) ;
123123
124124 respondWith ( 'deprecation:sendStackTraces' , ( { deprecation } ) => {
125125 assert . equal ( deprecation . message , 'Deprecation 1' ) ;
126126 assert . equal ( deprecation . sources . length , 1 ) ;
127127 return false ;
128128 } ) ;
129129
130- await click ( sources [ 0 ] . querySelector ( '[data-test=" trace-deprecations-btn" ]' ) ) ;
130+ await click ( sources [ 0 ] . querySelector ( '[data-test- trace-deprecations-btn]' ) ) ;
131131
132132 respondWith ( 'deprecation:sendStackTraces' , ( { deprecation } ) => {
133133 assert . equal ( deprecation . message , 'Deprecation 1' ) ;
134134 assert . equal ( deprecation . sources . length , 1 ) ;
135135 return false ;
136136 } ) ;
137137
138- await click ( sources [ 1 ] . querySelector ( '[data-test=" trace-deprecations-btn" ]' ) ) ;
138+ await click ( sources [ 1 ] . querySelector ( '[data-test- trace-deprecations-btn]' ) ) ;
139139 } ) ;
140140
141141 test ( "With source map, source found, can open resource" , async function ( assert ) {
@@ -145,41 +145,41 @@ module('Deprecation Tab', function(outer) {
145145
146146 await toggleDeprecationSource ( ) ;
147147
148- assert . dom ( '[data-test=" deprecation-message" ]' ) . hasText ( 'Deprecation 1' , 'message shown' ) ;
149- assert . dom ( '[data-test=" deprecation-count" ]' ) . hasText ( '2' , 'Count correct' ) ;
150- assert . dom ( '[data-test=" full-trace-deprecations-btn" ]' ) . doesNotExist ( 'Full trace button not shown' ) ;
148+ assert . dom ( '[data-test- deprecation-message]' ) . hasText ( 'Deprecation 1' , 'message shown' ) ;
149+ assert . dom ( '[data-test- deprecation-count]' ) . hasText ( '2' , 'Count correct' ) ;
150+ assert . dom ( '[data-test- full-trace-deprecations-btn]' ) . doesNotExist ( 'Full trace button not shown' ) ;
151151
152- let sources = findAll ( '[data-test=" deprecation-source" ]' ) ;
152+ let sources = findAll ( '[data-test- deprecation-source]' ) ;
153153 assert . equal ( sources . length , 2 , 'shows all sources' ) ;
154- assert . notOk ( sources [ 0 ] . querySelector ( '[data-test=" deprecation-source-text" ]' ) , 'source clickable' ) ;
155- assert . dom ( sources [ 0 ] . querySelector ( '[data-test=" deprecation-source-link" ]' ) ) . hasText ( 'path-to-file.js:1' ) ;
156- assert . notOk ( sources [ 1 ] . querySelector ( '[data-test=" deprecation-source-text" ]' ) , 'source clickable' ) ;
157- assert . dom ( sources [ 1 ] . querySelector ( '[data-test=" deprecation-source-link" ]' ) ) . hasText ( 'path-to-second-file.js:2' ) ;
154+ assert . notOk ( sources [ 0 ] . querySelector ( '[data-test- deprecation-source-text]' ) , 'source clickable' ) ;
155+ assert . dom ( sources [ 0 ] . querySelector ( '[data-test- deprecation-source-link]' ) ) . hasText ( 'path-to-file.js:1' ) ;
156+ assert . notOk ( sources [ 1 ] . querySelector ( '[data-test- deprecation-source-text]' ) , 'source clickable' ) ;
157+ assert . dom ( sources [ 1 ] . querySelector ( '[data-test- deprecation-source-link]' ) ) . hasText ( 'path-to-second-file.js:2' ) ;
158158
159159 expectOpenResource ( 'http://path-to-file.js' , 1 ) ;
160160
161- await click ( sources [ 0 ] . querySelector ( '[data-test=" deprecation-source-link" ]' ) ) ;
161+ await click ( sources [ 0 ] . querySelector ( '[data-test- deprecation-source-link]' ) ) ;
162162
163163 expectOpenResource ( 'http://path-to-second-file.js' , 2 ) ;
164164
165- await click ( sources [ 1 ] . querySelector ( '[data-test=" deprecation-source-link" ]' ) ) ;
165+ await click ( sources [ 1 ] . querySelector ( '[data-test- deprecation-source-link]' ) ) ;
166166 } ) ;
167167
168168 test ( "It should clear the search filter when the clear button is clicked" , async function ( assert ) {
169169 await visit ( '/deprecations' ) ;
170170
171171 await toggleDeprecationSource ( ) ;
172172
173- let sources = findAll ( '[data-test=" deprecation-source" ]' ) ;
173+ let sources = findAll ( '[data-test- deprecation-source]' ) ;
174174 assert . equal ( sources . length , 2 , 'shows all sources' ) ;
175175
176- await fillIn ( '[data-test=" deprecations-search" ] input' , 'xxxx' ) ;
177- sources = findAll ( '[data-test=" deprecation-source" ]' ) ;
176+ await fillIn ( '[data-test- deprecations-search] input' , 'xxxx' ) ;
177+ sources = findAll ( '[data-test- deprecation-source]' ) ;
178178 assert . equal ( sources . length , 0 , 'sources filtered' ) ;
179179
180- await click ( '[data-test=" search-field-clear-button" ]' ) ;
181- await click ( '[data-test=" deprecation-item" ] .disclosure-triangle' ) ;
182- sources = findAll ( '[data-test=" deprecation-source" ]' ) ;
180+ await click ( '[data-test- search-field-clear-button]' ) ;
181+ await click ( '[data-test- deprecation-item] .disclosure-triangle' ) ;
182+ sources = findAll ( '[data-test- deprecation-source]' ) ;
183183 assert . equal ( sources . length , 2 , 'show all sources' ) ;
184184 } ) ;
185185 } ) ;
0 commit comments