From 058f3a80b033f16bf57f50ee78f63d8b82e75851 Mon Sep 17 00:00:00 2001 From: Matt Schile Date: Tue, 24 Oct 2023 11:54:22 -0600 Subject: [PATCH] test: fix spec search in windows (#28130) --- packages/app/cypress/e2e/specs_list_e2e.cy.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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') })