Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmunechika committed Apr 29, 2022
1 parent 7daf8d0 commit d0cf6ed
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions packages/app/cypress/e2e/specs_list_e2e.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,24 +113,41 @@ describe('App: Spec List (E2E)', () => {
})
})

it('allows you to search and filter the list of specs in the list', () => {
cy.get('button').contains('6 Matches')

cy.get('input').type('content', { force: true })

cy.get('[data-cy="spec-item"]').should('have.length', 2)
.should('contain', 'dom-content.spec.js')

cy.get('button').contains('2 of 6 Matches')

cy.get('input').clear().type('asdf', { force: true })

cy.get('[data-cy="spec-item"]').should('have.length', 0)

cy.get('button').contains('0 of 6 Matches')
})

describe('typing the filter', function () {
const runAllIntegrationSpecsLabel = 'Run 8 integration specs'
// const runAllIntegrationSpecsLabel = 'Run 8 integration specs'

beforeEach(function () {
this.specs.integration.push({
name: 'a-b_c/d~e(f)g.spec.js',
absolute: '/user/project/cypress/integration/a-b_c/d~e(f)g.spec.js',
relative: 'cypress/integration/a-b_c/d~e(f)g.spec.js',
})
// beforeEach(function () {
// this.specs.integration.push({
// name: 'a-b_c/d~e(f)g.spec.js',
// absolute: '/user/project/cypress/integration/a-b_c/d~e(f)g.spec.js',
// relative: 'cypress/integration/a-b_c/d~e(f)g.spec.js',
// })

this.numSpecs = 16
// this.numSpecs = 16

this.ipc.getSpecs.yields(null, this.specs)
this.openProject.resolve(this.config)
// this.ipc.getSpecs.yields(null, this.specs)
// this.openProject.resolve(this.config)

cy.contains('.all-tests', runAllIntegrationSpecsLabel)
cy.get('.filter').type('new')
})
// cy.contains('.all-tests', runAllIntegrationSpecsLabel)
// cy.get('.filter').type('new')
// })

it('displays only matching spec', function () {
cy.get('.specs-list .file')
Expand Down

0 comments on commit d0cf6ed

Please sign in to comment.