generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compenf-780: Make table headers sticky (#139)
- Loading branch information
Showing
11 changed files
with
82 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
Tests to verify complaint list specification functionality | ||
*/ | ||
describe('Complaint List Functionality', () => { | ||
|
||
const complaintTypes = ['#hwcr-tab', '#ers-tab']; | ||
|
||
beforeEach(function() { | ||
cy.viewport("macbook-16"); | ||
cy.kcLogout().kcLogin(); | ||
}); | ||
|
||
Cypress._.times(complaintTypes.length, ((index) => { | ||
|
||
it('Verifies the complaint tabs, filter and table header are sticky', {scrollBehavior: false}, () => { | ||
cy.visit("/"); | ||
cy.get('.comp-loader-overlay').should('exist'); | ||
cy.get('.comp-loader-overlay').should('not.exist'); | ||
|
||
cy.get(complaintTypes[index]).click({ force: true }); | ||
|
||
// remove the open filter | ||
cy.get('#comp-status-filter').click({ force: true }); | ||
cy.get('#comp-zone-filter').click({ force: true }); | ||
|
||
|
||
//-- check to make sure there are enough rows to scroll | ||
cy.get('.pagination').should('exist'); | ||
|
||
//scroll to the bottom of the page | ||
cy.scrollTo('bottom'); | ||
|
||
cy.get('.fixed-nav-header').isInViewport(); | ||
cy.get('.fixed-filter-header').isInViewport(); | ||
cy.get('.fixed-table-header').isInViewport(); | ||
|
||
}); | ||
})); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters