Skip to content

Commit

Permalink
Merge pull request #368 from flacoman91/1616-fixing-query-filter-bug
Browse files Browse the repository at this point in the history
1616 - fixing query filter bug
  • Loading branch information
flacoman91 authored Sep 14, 2021
2 parents 8015695 + f21946c commit eb0957b
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 eb0957b

Please sign in to comment.