Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
chore: Remove non-applicable e2e tests
Browse files Browse the repository at this point in the history
The underlying functionality that these tests covers, has changed in favor of
directly selecting the flow type whenever we create a new route so they no
longer applies.

relates to: #801
  • Loading branch information
lordrip committed May 30, 2023
1 parent e82448c commit 6371d2e
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions cypress/e2e/01-settings/settings.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ describe('Settings', () => {

// CHECK that steps are still there and toolbar contains new name
cy.get('[data-testid="viz-step-timer"]').should('be.visible');
cy.get('[data-testid="kaoto-toolbar--name"]').should('have.text', 'cherry');

// verify that source code editor contains new values
cy.openCodeEditor();
Expand Down Expand Up @@ -80,45 +79,4 @@ describe('Settings', () => {
// CHECK that value is changed accordingly
cy.get('[data-testid="settings--description"]').should('have.text', description);
});

it('Only shows relevant DSLs', () => {
cy.get('[data-testid="settings--integration-type"]')
.select('Integration')
.should('have.value', 'Integration');
cy.saveMenuModal();
cy.replaceEmptyStepMiniCatalog('timer');
cy.openSettingsModal();

// CHECK that KameletBinding DSL should not be available to select
cy.get('[data-testid="settings--integration-type__KameletBinding"]').should('not.exist');
});

it('updates the DSL', () => {
// close modal
cy.get('[data-testid="settings--integration-type"]')
.select('Integration')
.should('have.value', 'Integration');
cy.saveMenuModal(true);

cy.replaceEmptyStepMiniCatalog('kamelet');

// reopen modal, make changes, save and close again
cy.openSettingsModal();

// select Kamelet
cy.get('[data-testid="settings--integration-type"]')
.select('Kamelet')
.should('have.value', 'Kamelet');

cy.saveMenuModal(true);

// CHECK that steps are still there
cy.get('[data-testid="viz-step-kamelet"]').should('be.visible');

// reopen modal,
cy.openSettingsModal();

// CHECK that value is still Kamelet
cy.get('[data-testid="settings--integration-type"]').should('have.value', 'Kamelet');
});
});

0 comments on commit 6371d2e

Please sign in to comment.