Skip to content

Commit

Permalink
e2e - extend filter tests with all fields/user modified filter coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tplevko authored and lordrip committed Aug 1, 2024
1 parent 75f424f commit eb43ab3
Showing 1 changed file with 27 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,45 @@ describe('Tests for side panel step filtering', () => {
cy.get(`input[name="id"]`).should('not.exist');
cy.get(`textarea[name="description"]`).should('not.exist');
});

// blocked by https://github.com/KaotoIO/kaoto/issues/1207
it.skip('Side panel step filtering multiple words', () => {
// reproducer for https://github.com/KaotoIO/kaoto/issues/1207
it('Side panel step filtering multiple words', () => {
cy.uploadFixture('flows/camelRoute/basic.yaml');
cy.openDesignPage();
cy.openStepConfigurationTab('log');

// check all fields are present
cy.get(`input[name="id"]`).should('exist');
cy.get(`textarea[name="description"]`).should('exist');
cy.get(`input[name="name"]`).should('exist');
cy.get(`input[name="disabled"]`).should('exist');

// filter fields
cy.filterFields('show all');
cy.get(`input[name="showAll"]`).should('exist');
cy.get(`input[name="showAllProperties"]`).should('exist');
cy.get(`input[name="parameters.showAll"]`).should('exist');
cy.get(`input[name="parameters.showAllProperties"]`).should('exist');
cy.get(`input[name="id"]`).should('not.exist');
cy.get(`textarea[name="description"]`).should('not.exist');
});

it('Side panel all fields / user modified filter', () => {
cy.uploadFixture('flows/camelRoute/basic.yaml');
cy.openDesignPage();
cy.openStepConfigurationTab('log');

cy.interactWithConfigInputObject('variableSend', 'testVariableSend');
cy.interactWithConfigInputObject('variableReceive', 'testVariableReceive');

cy.get('button[id="User Modified"]').click();

cy.get(`input[name="variableSend"]`).should('exist');
cy.get(`input[name="variableReceive"]`).should('exist');
cy.get(`textarea[name="description"]`).should('not.exist');
cy.get(`input[name="id"]`).should('not.exist');

cy.get('button[id="All Fields"]').click();

cy.get(`input[name="variableSend"]`).should('exist');
cy.get(`input[name="variableReceive"]`).should('exist');
cy.get(`textarea[name="description"]`).should('exist');
cy.get(`input[name="id"]`).should('exist');
});
});

0 comments on commit eb43ab3

Please sign in to comment.