diff --git a/packages/ui-tests/cypress/e2e/designer/sidepanelConfig/propertiesFilter.cy.ts b/packages/ui-tests/cypress/e2e/designer/sidepanelConfig/propertiesFilter.cy.ts index 2a5dc9f85..8cea4c621 100644 --- a/packages/ui-tests/cypress/e2e/designer/sidepanelConfig/propertiesFilter.cy.ts +++ b/packages/ui-tests/cypress/e2e/designer/sidepanelConfig/propertiesFilter.cy.ts @@ -50,9 +50,8 @@ 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'); @@ -60,14 +59,36 @@ describe('Tests for side panel step filtering', () => { // 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'); + }); });