Skip to content

Commit

Permalink
#2490: removing race condition from a test
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-may committed Jun 11, 2024
1 parent 6c144c3 commit 3fe72a7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions e2e-tests/cypress/e2e/client-display/client-display_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,27 +217,37 @@ describe('Client Display Tests', () => {

it('clearly represent navigable components', () => {
cy.cdVisit('?internalBackButton=true', true);
cy.get('[data-cy="pointHistoryChartWithData"]')
cy.cdClickSubj(0, 'Subject 1',true);
cy.get('[data-cy="pointHistoryChartWithData"]')

// make sure it can navigate into each skill via title
cy.cdClickSkill(0, false);
cy.cdBack('Subject 1');
cy.get('[data-cy="pointHistoryChartWithData"]')
cy.cdClickSkill(1, false);
cy.cdBack('Subject 1');
cy.get('[data-cy="pointHistoryChartWithData"]')
cy.cdClickSkill(2, false);
cy.cdBack('Subject 1');
cy.get('[data-cy="pointHistoryChartWithData"]')
cy.cdClickSkill(3, false);
cy.cdBack('Subject 1');
cy.get('[data-cy="pointHistoryChartWithData"]')

// make sure it can navigate into each skill via progress bar
cy.cdClickSkill(0);
cy.cdBack('Subject 1');
cy.get('[data-cy="pointHistoryChartWithData"]')
cy.cdClickSkill(1);
cy.cdBack('Subject 1');
cy.get('[data-cy="pointHistoryChartWithData"]')
cy.cdClickSkill(2);
cy.cdBack('Subject 1');
cy.get('[data-cy="pointHistoryChartWithData"]')
cy.cdClickSkill(3);
cy.cdBack('Subject 1');
cy.get('[data-cy="pointHistoryChartWithData"]')
});

it('components should not be clickable in the summary only option', () => {
Expand Down

0 comments on commit 3fe72a7

Please sign in to comment.