Skip to content

Commit 93637f8

Browse files
committed
scrolling the element into view and decreasing the waits, since it can be lowered.
1 parent a8128e4 commit 93637f8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

eform-client/cypress/e2e/plugins/time-planning-pn/b/dashboard-assert.spec.cy.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ describe('Dashboard assert', () => {
684684
}
685685

686686
let cellId = `#cell3_${i}`;
687+
cy.get(cellId).scrollIntoView();
687688
cy.get(cellId).click();
688689
cy.get('#planHours').should('be.visible');
689690
cy.get('#planHours').should('include.value', updatePlanTexts[i].calculatedHours);
@@ -699,10 +700,10 @@ describe('Dashboard assert', () => {
699700

700701
cy.get('#forwards').click();
701702
cy.wait('@index-update', { timeout: 60000 });
702-
cy.wait(1000);
703+
cy.wait(500);
703704
cy.get('#forwards').click();
704705
cy.wait('@index-update', { timeout: 60000 });
705-
cy.wait(1000);
706+
cy.wait(500);
706707
for (let i = 0; i < updatePlanTextsNextWeek.length; i++) {
707708
let firstShiftId = `#firstShift3_${i}`;
708709
cy.get(firstShiftId).should('include.text', updatePlanTextsNextWeek[i].firstShift);
@@ -712,6 +713,7 @@ describe('Dashboard assert', () => {
712713
}
713714

714715
let cellId = `#cell3_${i}`;
716+
cy.get(cellId).scrollIntoView();
715717
cy.get(cellId).click();
716718
cy.get('#planHours').should('be.visible');
717719
cy.get('#planHours').should('include.value', updatePlanTextsNextWeek[i].calculatedHours);
@@ -725,7 +727,7 @@ describe('Dashboard assert', () => {
725727
}
726728
cy.get('#forwards').click();
727729
cy.wait('@index-update', { timeout: 60000 });
728-
cy.wait(1000);
730+
cy.wait(500);
729731
for (let i = 0; i < updatePlanTextsFutureWeek.length; i++) {
730732
if (planTextsFutureWeek[i].firstShift) {
731733
let firstShiftId = `#firstShift3_${i}`;
@@ -741,6 +743,7 @@ describe('Dashboard assert', () => {
741743
cy.get(secondShiftId).should('include.text', updatePlanTextsFutureWeek[i].secondShift);
742744
}
743745
let cellId = `#cell3_${i}`;
746+
cy.get(cellId).scrollIntoView();
744747
cy.get(cellId).click();
745748
cy.get('#planHours').should('be.visible');
746749
cy.get('#planHours').should('include.value', updatePlanTextsFutureWeek[i].calculatedHours);

0 commit comments

Comments
 (0)