Skip to content

Commit bfc5014

Browse files
committed
Fixing more tests.
1 parent 12f5145 commit bfc5014

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

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

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,15 @@ describe('Area rules type 1', () => {
169169
cy.get('.cdk-row .cdk-column-eform span').should('have.text', task.eformName + ' (11)');
170170
cy.get('.cdk-row .cdk-column-startDate span')
171171
.should('have.text', `${task.startFrom.day}.${task.startFrom.month >= 10 ? '' : '0'}${task.startFrom.month}.${task.startFrom.year}`);
172-
cy.get('.cdk-row .cdk-column-repeat span').should('have.text', `${task.repeatEvery} ${task.repeatType}`);
173-
cy.get('.cdk-row .cdk-column-status span').should('have.text', 'Ikke aktiv');
174-
cy.get('.cdk-row .cdk-column-assignedTo span').should('have.text', `${workerForCreate.name} ${workerForCreate.surname}`);
172+
cy.get('.cdk-row .cdk-column-repeat mat-chip span.mat-mdc-chip-action-label')
173+
.invoke('text')
174+
.should('eq', `${task.repeatEvery} ${task.repeatType}`);
175+
cy.get('.cdk-row .cdk-column-status mat-chip span.mat-mdc-chip-action-label')
176+
.invoke('text')
177+
.should('eq', 'Ikke aktiv');
178+
cy.get('.cdk-row .cdk-column-assignedTo mat-chip span.mat-mdc-chip-action-label')
179+
.invoke('text')
180+
.should('eq', `${workerForCreate.name} ${workerForCreate.surname}`);
175181

176182
cy.get('.cdk-row .cdk-column-actions .editBtn').first().click();
177183
cy.intercept('GET', '**/api/backend-configuration-pn/properties/get-folder-dtos?**').as('getFolders');
@@ -222,9 +228,15 @@ describe('Area rules type 1', () => {
222228
cy.get('.cdk-row .cdk-column-eform span').should('have.text', editedTask.eformName + ' (3)');
223229
cy.get('.cdk-row .cdk-column-startDate span')
224230
.should('have.text', `${editedTask.startFrom.day}.${editedTask.startFrom.month >= 10 ? '' : '0'}${editedTask.startFrom.month}.${editedTask.startFrom.year}`);
225-
cy.get('.cdk-row .cdk-column-repeat span').should('have.text', `${editedTask.repeatEvery} ${editedTask.repeatType}`);
226-
cy.get('.cdk-row .cdk-column-status span').should('have.text', 'Aktiv');
227-
cy.get('.cdk-row .cdk-column-assignedTo span').should('have.text', `${workerForCreate.name} ${workerForCreate.surname}`);
231+
cy.get('.cdk-row .cdk-column-repeat mat-chip span.mat-mdc-chip-action-label')
232+
.invoke('text')
233+
.should('eq', `${editedTask.repeatEvery} ${editedTask.repeatType}`);
234+
cy.get('.cdk-row .cdk-column-status mat-chip span.mat-mdc-chip-action-label')
235+
.invoke('text')
236+
.should('eq', 'Aktiv');
237+
cy.get('.cdk-row .cdk-column-assignedTo mat-chip span.mat-mdc-chip-action-label')
238+
.invoke('text')
239+
.should('eq', `${workerForCreate.name} ${workerForCreate.surname}`);
228240
});
229241
after(() => {
230242
backendConfigurationPropertiesPage.goToProperties();

0 commit comments

Comments
 (0)