1
1
import { getPathForPlatform } from '../../src/paths'
2
- import path from 'path'
3
2
4
3
describe ( 'App: Spec List (E2E)' , ( ) => {
5
4
const launchApp = ( specFilter ?: string ) => {
@@ -289,7 +288,7 @@ describe('App: Spec List (E2E)', () => {
289
288
290
289
cy . findAllByTestId ( 'spec-list-directory' )
291
290
. should ( 'have.length' , 1 )
292
- . and ( 'contain' , path . join ( 'cypress' , 'e2e' , ' a-b_c') )
291
+ . and ( 'contain' , ' a-b_c')
293
292
294
293
cy . findByText ( 'No specs matched your search:' ) . should ( 'not.be.visible' )
295
294
} )
@@ -299,7 +298,7 @@ describe('App: Spec List (E2E)', () => {
299
298
300
299
cy . findAllByTestId ( 'spec-list-directory' )
301
300
. should ( 'have.length' , 1 )
302
- . and ( 'contain' , path . join ( 'cypress' , 'e2e' , ' a-b_c') )
301
+ . and ( 'contain' , ' a-b_c')
303
302
304
303
cy . findByText ( 'No specs matched your search:' ) . should ( 'not.be.visible' )
305
304
} )
@@ -309,7 +308,7 @@ describe('App: Spec List (E2E)', () => {
309
308
310
309
cy . findAllByTestId ( 'spec-list-directory' )
311
310
. should ( 'have.length' , 1 )
312
- . and ( 'contain' , path . join ( 'cypress' , 'e2e' , ' a-b_c') )
311
+ . and ( 'contain' , ' a-b_c')
313
312
314
313
cy . findByText ( 'No specs matched your search:' ) . should ( 'not.be.visible' )
315
314
} )
0 commit comments