Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e - extend filter tests with all fields/user modified filter coverage #1281

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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');
});
});
Loading