Skip to content

Commit

Permalink
oct-2125: arrows click without force
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikolajczyk committed Dec 5, 2024
1 parent 69131b9 commit 9f9bb8d
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions client/cypress/e2e/_13metrics.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ Object.values(viewports).forEach(
cy.get('[data-test=MetricsEpochHeader__title]')
.invoke('text')
.should('eq', isMobile || isTablet ? 'E3 Allocation' : 'Epoch 3 Allocation Window');
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__rightArrow]').click({
force: true,
});
cy.get('[data-test=Layout__body]').scrollIntoView();
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__rightArrow]').click();
cy.get('[data-test=MetricsEpochHeader__title]')
.invoke('text')
.should('eq', isMobile || isTablet ? 'E3 Allocation' : 'Epoch 3 Allocation Window');
Expand All @@ -113,13 +112,10 @@ Object.values(viewports).forEach(
cy.get('[data-test=MetricsEpochHeader__title]')
.invoke('text')
.should('eq', isMobile || isTablet ? 'E3 Allocation' : 'Epoch 3 Allocation Window');
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__leftArrow]').click({
force: true,
});
cy.get('[data-test=Layout__body]').scrollIntoView();
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__leftArrow]').click();
cy.wait(1000);
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__leftArrow]').click({
force: true,
});
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__leftArrow]').click();
cy.get('[data-test=MetricsEpochHeader__title]')
.invoke('text')
.should('eq', isMobile || isTablet ? 'E1 Allocation' : 'Epoch 1 Allocation Window');
Expand All @@ -129,9 +125,8 @@ Object.values(viewports).forEach(
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__leftArrowSvg] path')
.then($el => $el.css('fill'))
.should('be.colored', '#ebebeb');
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__leftArrow]').click({
force: true,
});
cy.get('[data-test=Layout__body]').scrollIntoView();
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__leftArrow]').click();
cy.get('[data-test=MetricsEpochHeader__title]')
.invoke('text')
.should('eq', isMobile || isTablet ? 'E1 Allocation' : 'Epoch 1 Allocation Window');
Expand Down

0 comments on commit 9f9bb8d

Please sign in to comment.