Skip to content

Commit

Permalink
update test coverage
Browse files Browse the repository at this point in the history
update cypress testing.

update cypress test

missed an action. date filters need to clean up too.

missing test coverage
  • Loading branch information
flacoman91 committed Sep 14, 2021
1 parent 8015695 commit f21946c
Show file tree
Hide file tree
Showing 5 changed files with 32,908 additions and 305 deletions.
24 changes: 24 additions & 0 deletions cypress/integration/list/list-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,30 @@ describe( 'List View', () => {
cy.get( currentPage ).should( 'have.text', 'Page 2' )
} )

it( 'resets after applying filter', () => {
cy.get( nextButton ).click()

cy.url().should( 'include', 'page=2' )
cy.get( cardContainers ).should( 'have.length', 10 )

cy.get( prevButton )
.should( 'be.visible' )
.should( 'not.have.class', 'a-btn__disabled' )

cy.get( currentPage ).should( 'have.text', 'Page 2' )

cy.get( '.aggregation-branch label.a-label:first' ).click()
cy.get( currentPage ).should( 'have.text', 'Page 1' )

cy.log( 'reset after applying date filter' )
cy.get( nextButton ).click()
cy.get( currentPage ).should( 'have.text', 'Page 2' )

cy.get( '#date_received-from' ).clear().type( '9/23/2018' ).blur()
cy.get( currentPage ).should( 'have.text', 'Page 1' )

} )


it( 'resets', () => {
const fields = [ 'Company name', 'Narratives', 'All data' ];
Expand Down
Loading

0 comments on commit f21946c

Please sign in to comment.