Skip to content

Commit 9daa95f

Browse files
committed
Fixing more tests.
1 parent a963a42 commit 9daa95f

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe('Area rules type 1', () => {
105105
.should('have.text', `${task.startFrom.day}.${task.startFrom.month >= 10 ? '' : '0'}${task.startFrom.month}.${task.startFrom.year}`);
106106
cy.get('.cdk-row .cdk-column-repeat mat-chip span.mat-mdc-chip-action-label')
107107
.invoke('text')
108-
.should('eq', `${task.repeatEvery} ${task.repeatType}`);
108+
.should('eq', `${task.repeatType}`);
109109
cy.get('.cdk-row .cdk-column-status mat-chip span.mat-mdc-chip-action-label')
110110
.invoke('text')
111111
.should('eq', 'Aktiv');

eform-client/cypress/e2e/plugins/backend-configuration-pn/g/task-wizard.edit-frequency.spec.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ describe('Area rules type 1', () => {
232232
.should('have.text', `${editedTask.startFrom.day}.${editedTask.startFrom.month >= 10 ? '' : '0'}${editedTask.startFrom.month}.${editedTask.startFrom.year}`);
233233
cy.get('.cdk-row .cdk-column-repeat mat-chip span.mat-mdc-chip-action-label')
234234
.invoke('text')
235-
.should('eq', `${task.repeatEvery} ${task.repeatType}`);
235+
.should('eq', `${editedTask.repeatEvery} ${editedTask.repeatType}`);
236236
cy.get('.cdk-row .cdk-column-status mat-chip span.mat-mdc-chip-action-label')
237237
.invoke('text')
238238
.should('eq', 'Aktiv');

eform-client/cypress/e2e/plugins/backend-configuration-pn/g/task-wizard.edit.spec.cy.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,15 @@ describe('Area rules type 1', () => {
129129
cy.get('.cdk-row .cdk-column-eform span').should('have.text', task.eformName + ' (11)');
130130
cy.get('.cdk-row .cdk-column-startDate span')
131131
.should('have.text', `${task.startFrom.day}.${task.startFrom.month >= 10 ? '' : '0'}${task.startFrom.month}.${task.startFrom.year}`);
132-
cy.get('.cdk-row .cdk-column-repeat span').should('have.text', `${task.repeatEvery} ${task.repeatType}`);
133-
cy.get('.cdk-row .cdk-column-status span').should('have.text', 'Aktiv');
134-
cy.get('.cdk-row .cdk-column-assignedTo span').should('have.text', `${workerForCreate.name} ${workerForCreate.surname}`);
132+
cy.get('.cdk-row .cdk-column-repeat mat-chip span.mat-mdc-chip-action-label')
133+
.invoke('text')
134+
.should('eq', `${task.repeatEvery} ${task.repeatType}`);
135+
cy.get('.cdk-row .cdk-column-status mat-chip span.mat-mdc-chip-action-label')
136+
.invoke('text')
137+
.should('eq', 'Aktiv');
138+
cy.get('.cdk-row .cdk-column-assignedTo mat-chip span.mat-mdc-chip-action-label')
139+
.invoke('text')
140+
.should('eq', `${workerForCreate.name} ${workerForCreate.surname}`);
135141
// edit task
136142
cy.get('#advanced').click();
137143
cy.get('#folders').click();

0 commit comments

Comments
 (0)