Skip to content

Commit 058f3a8

Browse files
authored
test: fix spec search in windows (#28130)
1 parent 7f01e8d commit 058f3a8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/app/cypress/e2e/specs_list_e2e.cy.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { getPathForPlatform } from '../../src/paths'
2-
import path from 'path'
32

43
describe('App: Spec List (E2E)', () => {
54
const launchApp = (specFilter?: string) => {
@@ -289,7 +288,7 @@ describe('App: Spec List (E2E)', () => {
289288

290289
cy.findAllByTestId('spec-list-directory')
291290
.should('have.length', 1)
292-
.and('contain', path.join('cypress', 'e2e', 'a-b_c'))
291+
.and('contain', 'a-b_c')
293292

294293
cy.findByText('No specs matched your search:').should('not.be.visible')
295294
})
@@ -299,7 +298,7 @@ describe('App: Spec List (E2E)', () => {
299298

300299
cy.findAllByTestId('spec-list-directory')
301300
.should('have.length', 1)
302-
.and('contain', path.join('cypress', 'e2e', 'a-b_c'))
301+
.and('contain', 'a-b_c')
303302

304303
cy.findByText('No specs matched your search:').should('not.be.visible')
305304
})
@@ -309,7 +308,7 @@ describe('App: Spec List (E2E)', () => {
309308

310309
cy.findAllByTestId('spec-list-directory')
311310
.should('have.length', 1)
312-
.and('contain', path.join('cypress', 'e2e', 'a-b_c'))
311+
.and('contain', 'a-b_c')
313312

314313
cy.findByText('No specs matched your search:').should('not.be.visible')
315314
})

0 commit comments

Comments
 (0)