Skip to content

Commit

Permalink
fix: add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
astone123 committed Sep 12, 2022
1 parent 963723d commit 31c97a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/app/cypress/e2e/specs_list_e2e.cy.ts
Expand Up @@ -237,6 +237,14 @@ describe('App: Spec List (E2E)', () => {
cy.get('button').contains('23 Matches')
})

it('normalizes directory path separators for Windows', function () {
// On Windows, when a user types `e2e/accounts`, it should match `e2e\accounts`
clearSearchAndType('e2e/accounts')
cy.findAllByTestId('spec-item').should('have.length', 2)

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

// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23305
it.skip('saves the filter when navigating to a spec and back', function () {
const targetSpecFile = 'accounts_list.spec.js'
Expand Down

0 comments on commit 31c97a8

Please sign in to comment.