Skip to content

Commit

Permalink
Fix Cypress test for GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jq1836 committed Oct 3, 2023
1 parent c9efa62 commit 5c3d166
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions frontend/cypress/tests/chartView/chartView_zoomFeature.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,16 +281,15 @@ describe('range changes in chartview should reflect in zoom', () => {
.get('#summary-charts .summary-chart__ramp .ramp')
.first()
.click(120, 20)
.click(200, 20);
.click(185, 20);

cy.get('#tab-zoom')
.should('be.visible');

cy.get('#tab-zoom .ramp .ramp__slice')
.first()
.invoke('attr', 'title')
.should('eq', '[2020-11-21] [#1345] Authorship: Add last modified date to each LoC if specified '
+ '(#1348): +165 -76 lines ');
.should('eq', '[2020-05-23] [#1241] Restore checked file types (#1256): +14 -1 lines ');
cy.get('#tab-zoom .ramp .ramp__slice')
.last()
.invoke('attr', 'title')
Expand All @@ -307,7 +306,7 @@ describe('range changes in chartview should reflect in zoom', () => {
cy.get('body').type(zoomKey, { release: false })
.get('#summary-charts .summary-chart__ramp .ramp')
.first()
.click(200, 20)
.click(185, 20)
.click(250, 20);

cy.get('#tab-zoom')
Expand All @@ -320,8 +319,7 @@ describe('range changes in chartview should reflect in zoom', () => {
cy.get('#tab-zoom .ramp .ramp__slice')
.last()
.invoke('attr', 'title')
.should('eq', '[2020-12-18] [#1374] Travis: utilise latest node version for PR docs deployment '
+ '(#1381): +4 -0 lines ');
.should('eq', '[2020-09-27] Add optional check for quotes in diff file regex (#1330): +1 -1 lines ');
});

// Assumptions: Contributer 'jamessspanggg' is the first result,
Expand All @@ -335,7 +333,7 @@ describe('range changes in chartview should reflect in zoom', () => {
cy.get('body').type(zoomKey, { release: false })
.get('#summary-charts .summary-chart__ramp .ramp')
.first()
.click(200, 20)
.click(185, 20)
.click(225, 20);

cy.get('#tab-zoom')
Expand All @@ -352,7 +350,6 @@ describe('range changes in chartview should reflect in zoom', () => {
cy.get('#tab-zoom .ramp .ramp__slice')
.last()
.invoke('attr', 'title')
.should('eq', '[2020-12-18] [#1374] Travis: utilise latest node version for PR docs deployment '
+ '(#1381): +4 -0 lines ');
.should('eq', '[2020-09-27] Add optional check for quotes in diff file regex (#1330): +1 -1 lines ');
});
});

0 comments on commit 5c3d166

Please sign in to comment.