Skip to content

Commit

Permalink
feat: CQDG-414 Adjust Cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Karine St-Onge committed Oct 26, 2023
1 parent 950aeea commit 9de2ac9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cypress/e2e/Navigation/Pages.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ describe('Navigation', () => {
cy.get('[data-cy="ProTable_DataFiles"]').should('exist');
cy.get('[class*="QueryBar_selected"]').find('[class*="QueryPill_field"]').contains('File ID').should('exist');
cy.get('[class*="QueryBar_selected"]').find('[class*="QueryValues_value"]').contains('Cypress Data Files').should('exist');

cy.visitDashboard();
cy.get('[data-cy="SavedSets"] [data-cy="Tab_Variants"]').click({force: true});
cy.get('[data-cy="SavedSets"]').contains('Cypress Variants').click({force: true});
cy.get('[data-cy="Title_Variants"]').should('exist');
cy.get('[class*="QueryBar_selected"]').find('[class*="QueryPill_field"]').contains('Variant ID').should('exist');
cy.get('[class*="QueryBar_selected"]').find('[class*="QueryValues_value"]').contains('Cypress Variants').should('exist');
});

it('Liens Saved Filters de la page Dashboard', () => {
Expand All @@ -99,7 +106,7 @@ describe('Navigation', () => {
cy.get('[class*="QueryBar_selected"]').find('[class*="QueryValues_value"]').contains('Female').should('exist');

cy.visitDashboard();
cy.get('[data-cy="Tab_Variants"]').click({force: true});
cy.get('[data-cy="SavedFilters"] [data-cy="Tab_Variants"]').click({force: true});
cy.get('[data-cy="SavedFilters"]').contains('Cypress Variant Type Filter').click({force: true});
cy.get('[data-cy="Title_Variants"]').should('exist');
cy.get('[class*="QueryBar_selected"]').find('[class*="QueryPill_field"]').contains('Variant Type').should('exist');
Expand Down

0 comments on commit 9de2ac9

Please sign in to comment.