File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -138,9 +138,10 @@ const expectedLinks = (mode, type) =>
138
138
describe ( 'Cucumber specific' , ( ) => {
139
139
it ( 'should contain data passed via tags' , ( ) => {
140
140
const { cucumber } = result ;
141
- const [ test ] = cucumber . tests ;
142
-
143
- console . log ( test . labels ) ;
141
+ const expectedHistoryID = 'c700cb5cd10aa2ad9a8000c773a8fd3c' ;
142
+ const [ test ] = cucumber . tests . filter (
143
+ ( t ) => t . historyId === expectedHistoryID
144
+ ) ;
144
145
145
146
expect ( test . labels ) . to . have . length ( expectedLabels ( 'cucumber' ) . length ) ;
146
147
expect ( test . labels ) . to . have . deep . members ( expectedLabels ( 'cucumber' ) ) ;
@@ -150,7 +151,10 @@ describe('Cucumber specific', () => {
150
151
151
152
it ( 'should contain cucumber steps' , ( ) => {
152
153
const { cucumber } = result ;
153
- const [ test ] = cucumber . tests ;
154
+ const expectedHistoryID = 'c700cb5cd10aa2ad9a8000c773a8fd3c' ;
155
+ const [ test ] = cucumber . tests . filter (
156
+ ( t ) => t . historyId === expectedHistoryID
157
+ ) ;
154
158
155
159
const expectedSteps = [
156
160
{
You can’t perform that action at this time.
0 commit comments