File tree Expand file tree Collapse file tree 1 file changed +3
-18
lines changed
features/step_definitions Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change 8181
8282 const dd = await findByText (
8383 dom . window . document . documentElement ,
84- / \d + % p a s s e d / ,
84+ / \d + % \( \d + \/ \d + \) p a s s e d / ,
8585 { selector : "span" } ,
8686 ) ;
8787
@@ -139,23 +139,8 @@ Then(
139139 }
140140 }
141141
142- const stepsContainers = await findAllByLabelText (
143- dom . window . document . documentElement ,
144- "Steps" ,
145- ) ;
146-
147- const matchingSteps = stepsContainers . reduce (
148- ( matchingSteps : Element [ ] , stepsContainer : HTMLElement ) => {
149- return [
150- ...matchingSteps ,
151- ...Array . from (
152- stepsContainer . querySelectorAll (
153- `[data-status="${ status . toUpperCase ( ) } "]` ,
154- ) ,
155- ) ,
156- ] ;
157- } ,
158- [ ] ,
142+ const matchingSteps = dom . window . document . querySelectorAll (
143+ `li[data-status="${ status . toUpperCase ( ) } "]` ,
159144 ) ;
160145
161146 assert . equal ( matchingSteps . length , n ) ;
You can’t perform that action at this time.
0 commit comments