Skip to content

Commit 328b12e

Browse files
committed
Trying to be more specific abouth the xpath.
1 parent fd2138b commit 328b12e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

eform-client/cypress/e2e/plugins/backend-configuration-pn/c/task-wizard.create-daily.spec.cy.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,12 @@ describe('Area rules type 1', () => {
105105
cy.get('.cdk-row .cdk-column-eform span').should('have.text', task.eformName + ' (11)');
106106
cy.get('.cdk-row .cdk-column-startDate span')
107107
.should('have.text', `${task.startFrom.day}.${task.startFrom.month >= 10 ? '' : '0'}${task.startFrom.month}.${task.startFrom.year}`);
108-
cy.get('.cdk-row .cdk-column-repeat span').should('have.text', `${task.repeatEvery} ${task.repeatType}`);
109-
cy.get('.cdk-row .cdk-column-status span').should('have.text', 'Aktiv');
108+
cy.get('.cdk-row .cdk-column-repeat mat-chip span.mat-mdc-chip-action-label')
109+
.invoke('text')
110+
.should('eq', `${task.repeatEvery} ${task.repeatType}`);
111+
cy.get('.cdk-row .cdk-column-status mat-chip span.mat-mdc-chip-action-label')
112+
.invoke('text')
113+
.should('eq', 'Aktiv');
110114
cy.get('.cdk-row .cdk-column-assignedTo span').should('have.text', `${workerForCreate.name} ${workerForCreate.surname}`);
111115
});
112116
after(() => {

0 commit comments

Comments
 (0)