Skip to content

Commit 1ddd535

Browse files
committed
Fixing updated link for menu.
1 parent 5383ef0 commit 1ddd535

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ describe('Dashboard assert', () => {
237237
// it('should go to dashboard', () => {
238238
// cy.get('mat-nested-tree-node').contains('Timeregistrering').click();
239239
// cy.get('mat-tree-node').contains('Timeregistrering').click();
240-
// cy.get('mat-toolbar > button .mat-mdc-button-persistent-ripple').parent().click();
240+
// cy.get('mat-toolbar > div > button .mat-mdc-button-persistent-ripple').first().parent().click();
241241
// cy.get('#workingHoursSite').clear().type('c d');
242242
// cy.get('.ng-option.ng-option-marked').click();
243243
// cy.intercept('POST', '**/api/time-planning-pn/working-hours/index').as('update');
@@ -298,7 +298,7 @@ describe('Dashboard assert', () => {
298298
// cy.wait('@save');
299299
// cy.get('#sumFlex7 input').should('contain.value', '-14.55');
300300
//
301-
// cy.get('mat-toolbar > button .mat-mdc-button-persistent-ripple').parent().click();
301+
// cy.get('mat-toolbar > div > button .mat-mdc-button-persistent-ripple').first().parent().click();
302302
// pluginPage.Navbar.goToPluginsPage();
303303
// const pluginName = 'Microting Time Planning Plugin';
304304
// // pluginPage.enablePluginByName(pluginName);
@@ -374,7 +374,7 @@ describe('Dashboard assert', () => {
374374
cy.wait('@index-update', { timeout: 160000 });
375375
cy.wait(1000);
376376
cy.get('mat-tree-node').contains('Timeregistrering').click();
377-
cy.get('mat-toolbar > button .mat-mdc-button-persistent-ripple').parent().click();
377+
cy.get('mat-toolbar > div > button .mat-mdc-button-persistent-ripple').first().parent().click();
378378
cy.get('#workingHoursSite').clear().type('c d');
379379
cy.get('.ng-option.ng-option-marked').click();
380380

@@ -465,7 +465,7 @@ describe('Dashboard assert', () => {
465465
cy.intercept('PUT', '**/api/time-planning-pn/working-hours').as('save');
466466
cy.get('#workingHoursSave').click();
467467
cy.wait('@save');
468-
cy.get('mat-toolbar > button .mat-mdc-button-persistent-ripple').parent().click();
468+
cy.get('mat-toolbar > div > button .mat-mdc-button-persistent-ripple').first().parent().click();
469469
cy.get('#sumFlex7 input').should('contain.value', '-78.55');
470470
pluginPage.Navbar.goToPluginsPage();
471471

@@ -479,7 +479,7 @@ describe('Dashboard assert', () => {
479479
cy.get('#saveSettings').click();
480480
cy.get('mat-tree-node').contains('Dashboard').click();
481481
cy.wait('@index-update', { timeout: 60000 });
482-
cy.get('mat-toolbar > button .mat-mdc-button-persistent-ripple').parent().click();
482+
cy.get('mat-toolbar > div > button .mat-mdc-button-persistent-ripple').first().parent().click();
483483

484484
cy.get('#workingHoursSite').clear().type('c d');
485485
cy.get('.ng-option.ng-option-marked').click();
@@ -570,7 +570,7 @@ describe('Dashboard assert', () => {
570570
it('should go to dashboard after updating planText to new values and they should change in dashboard', () => {
571571
cy.get('mat-nested-tree-node').contains('Timeregistrering').click();
572572
cy.get('mat-tree-node').contains('Timeregistrering').click();
573-
cy.get('mat-toolbar > button .mat-mdc-button-persistent-ripple').parent().click();
573+
cy.get('mat-toolbar > div > button .mat-mdc-button-persistent-ripple').first().parent().click();
574574
cy.get('#workingHoursSite').clear().type('c d');
575575
cy.get('.ng-option.ng-option-marked').click();
576576
cy.intercept('POST', '**/api/time-planning-pn/working-hours/index').as('update');
@@ -659,7 +659,7 @@ describe('Dashboard assert', () => {
659659
cy.intercept('PUT', '**/api/time-planning-pn/working-hours').as('save');
660660
cy.get('#workingHoursSave').click();
661661
cy.wait('@save');
662-
cy.get('mat-toolbar > button .mat-mdc-button-persistent-ripple').parent().click();
662+
cy.get('mat-toolbar > div > button .mat-mdc-button-persistent-ripple').first().parent().click();
663663
cy.get('#sumFlex7 input').should('contain.value', '-48.05');
664664

665665

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ describe('Dashboard edit values', () => {
281281
it('should enable auto break calculations with values', () => {
282282
cy.get('mat-nested-tree-node').contains('Timeregistrering').click();
283283
cy.get('mat-tree-node').contains('Timeregistrering').click();
284-
cy.get('mat-toolbar > button .mat-mdc-button-persistent-ripple').parent().click();
284+
cy.get('mat-toolbar > div > button .mat-mdc-button-persistent-ripple').first().parent().click();
285285
cy.get('#workingHoursSite').clear().type('c d');
286286
cy.get('.ng-option.ng-option-marked').click();
287287
cy.intercept('POST', '**/api/time-planning-pn/working-hours/index').as('update');

0 commit comments

Comments
 (0)