diff --git a/packages/app/cypress/e2e/specs_list_e2e.cy.ts b/packages/app/cypress/e2e/specs_list_e2e.cy.ts index 38db09b577f0..6d05d6c3e909 100644 --- a/packages/app/cypress/e2e/specs_list_e2e.cy.ts +++ b/packages/app/cypress/e2e/specs_list_e2e.cy.ts @@ -1,5 +1,4 @@ import { getPathForPlatform } from '../../src/paths' -import path from 'path' describe('App: Spec List (E2E)', () => { const launchApp = (specFilter?: string) => { @@ -289,7 +288,7 @@ describe('App: Spec List (E2E)', () => { cy.findAllByTestId('spec-list-directory') .should('have.length', 1) - .and('contain', path.join('cypress', 'e2e', 'a-b_c')) + .and('contain', 'a-b_c') cy.findByText('No specs matched your search:').should('not.be.visible') }) @@ -299,7 +298,7 @@ describe('App: Spec List (E2E)', () => { cy.findAllByTestId('spec-list-directory') .should('have.length', 1) - .and('contain', path.join('cypress', 'e2e', 'a-b_c')) + .and('contain', 'a-b_c') cy.findByText('No specs matched your search:').should('not.be.visible') }) @@ -309,7 +308,7 @@ describe('App: Spec List (E2E)', () => { cy.findAllByTestId('spec-list-directory') .should('have.length', 1) - .and('contain', path.join('cypress', 'e2e', 'a-b_c')) + .and('contain', 'a-b_c') cy.findByText('No specs matched your search:').should('not.be.visible') })