Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brenner-company committed Apr 16, 2021
1 parent e6af623 commit e44f63b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/all-flaky-tests/subcase.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ context('Subcase tests', () => {
// Go via kort-bestek view
cy.route('GET', '/meetings/**/mail-campaign').as('getMeetingsMail');
cy.route('GET', '/meetings?**').as('getMeetingsfilter');
cy.get('.vlc-toolbar').contains('Kort bestek')
cy.get('.auk-toolbar-complex').contains('Kort bestek')
.click();
cy.wait('@getMeetingsMail');
cy.wait('@getMeetingsfilter');
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/unit/cancel-editing-document.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ context('Tests for cancelling CRUD operations on document and pieces', () => {
cy.get('.js-vl-accordion > button').click();

// Cancel/save access-level in document card
cy.get('.vlc-document-card__content > .vlc-toolbar > .vlc-document-card-toolbar__right').as('accessLevelToolbar')
cy.get('.vlc-document-card__content > .auk-toolbar-complex > .vlc-document-card-toolbar__right').as('accessLevelToolbar')
.within(() => {
cy.get('.vlc-pill').contains('Intern Overheid')
.click();
Expand Down
6 changes: 3 additions & 3 deletions cypress/support/commands/agenda-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ function approveDesignAgenda(shouldConfirm = true) {

// TODO add boolean for when not all items are formally ok, click through the confirmation modal
// TODO use test selector
cy.get('.vlc-toolbar').within(() => {
cy.get('.auk-toolbar-complex').within(() => {
cy.get(agenda.agendaHeaderShowAgendaOptions).click();
});
cy.get(agenda.approveAgenda).click();
Expand Down Expand Up @@ -427,7 +427,7 @@ function approveAndCloseDesignAgenda(shouldConfirm = true) {

// TODO add boolean for when not all items are formally ok, click through the confirmation modal
// TODO use test selector
cy.get('.vlc-toolbar').within(() => {
cy.get('.auk-toolbar-complex').within(() => {
cy.get(agenda.agendaHeaderShowAgendaOptions).click();
});
cy.get(agenda.agendaHeaderApproveAndCloseAgenda).click();
Expand Down Expand Up @@ -561,7 +561,7 @@ function toggleShowChanges(refresh) {
cy.wait(2500); // data loading after switching to overzicht
}

cy.get('.vlc-agenda-items .vlc-toolbar__right > .vlc-toolbar__item')
cy.get('.vlc-agenda-items .auk-toolbar-complex__right > .auk-toolbar-complex__item')
.first()
.click();
cy.wait(1500); // the changes are not loaded yet, cypress does not find the get call to agenda-sort
Expand Down
4 changes: 2 additions & 2 deletions cypress/support/commands/case-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function createCase(confidential, shortTitle) {
});

cy.get('@dialog').within(() => {
cy.get('.vlc-toolbar__item > .auk-button').contains('Dossier aanmaken')
cy.get('.auk-toolbar-complex__item > .auk-button').contains('Dossier aanmaken')
.click();
});

Expand Down Expand Up @@ -158,7 +158,7 @@ function addSubcase(type, newShortTitle, longTitle, step, stepName) {
});
}

cy.get('.vlc-toolbar').within(() => {
cy.get('.auk-toolbar-complex').within(() => {
cy.contains('Procedurestap aanmaken').click();
});

Expand Down

0 comments on commit e44f63b

Please sign in to comment.