Skip to content

Commit dd550ed

Browse files
committed
Scrolling to the element.
1 parent 93637f8 commit dd550ed

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ describe('Dashboard assert', () => {
499499
cy.get(flexBalanceToDateId).should('include.text', planTexts[i].flexBalanceToDate);
500500

501501
let cellId = `#cell3_${i}`;
502+
cy.get(cellId).scrollIntoView();
502503
cy.get(cellId).click();
503504
cy.get('#planHours').should('be.visible');
504505
cy.get('#planHours').should('have.value', planTexts[i].calculatedHours);
@@ -527,6 +528,7 @@ describe('Dashboard assert', () => {
527528
}
528529

529530
let cellId = `#cell3_${i}`;
531+
cy.get(cellId).scrollIntoView();
530532
cy.get(cellId).click();
531533
cy.get('#planHours').should('be.visible');
532534
cy.get('#planHours').should('have.value', planTextsNextWeek[i].calculatedHours);
@@ -556,6 +558,7 @@ describe('Dashboard assert', () => {
556558
}
557559

558560
let cellId = `#cell3_${i}`;
561+
cy.get(cellId).scrollIntoView();
559562
cy.get(cellId).click();
560563
cy.get('#planHours').should('be.visible');
561564
cy.get('#planHours').should('have.value', planTextsFutureWeek[i].calculatedHours);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ describe('Dashboard edit values', () => {
212212
}
213213

214214
let cellId = `#cell3_${i}`;
215+
cy.get(cellId).scrollIntoView();
215216
cy.get(cellId).click();
216217
cy.get('#planHours').should('be.visible');
217218
cy.get('#planHours').should('have.value', updatePlanTexts[i].calculatedHours);
@@ -232,6 +233,7 @@ describe('Dashboard edit values', () => {
232233
for (let i = 0; i < secondUpdatePlanTexts.length; i++) {
233234

234235
let cellId = `#cell3_${i}`;
236+
cy.get(cellId).scrollIntoView();
235237
cy.get(cellId).click();
236238
cy.get('#planHours').should('be.visible');
237239
cy.get(`#plannedStartOfShift1`).click();

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ describe('Dashboard edit values', () => {
141141
for (let i = 0; i < secondUpdatePlanTexts.length; i++) {
142142

143143
let cellId = `#cell3_${i}`;
144+
cy.get(cellId).scrollIntoView();
144145
cy.get(cellId).click();
145146
cy.get('#planHours').should('be.visible');
146147

0 commit comments

Comments
 (0)