Skip to content

Commit

Permalink
e2e - add side panel required filter field coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tplevko committed Aug 20, 2024
1 parent 68a9f66 commit 330baf3
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,43 @@ describe('Tests for side panel step filtering', () => {
cy.get(`textarea[name="description"]`).should('exist');
cy.get(`input[name="id"]`).should('exist');
});

it('Side panel required fields filter', () => {
cy.uploadFixture('flows/camelRoute/basic.yaml');
cy.openDesignPage();
cy.openStepConfigurationTab('timer');
cy.selectFormTab('Required');

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

cy.selectReplaceNode('marshal');
cy.chooseFromCatalog('processor', 'transacted');
cy.openStepConfigurationTab('transacted');

cy.selectFormTab('Required');

cy.get('.pf-v5-c-alert__title').should('contain', 'No Required Field Found');
});

it('Side panel to retain user specified fields filter', () => {
cy.uploadFixture('flows/camelRoute/basic.yaml');
cy.openDesignPage();
cy.openStepConfigurationTab('log');
cy.selectFormTab('All');

cy.openStepConfigurationTab('timer');

cy.specifiedFormTab('All');
cy.selectFormTab('Required');

cy.openStepConfigurationTab('log');
cy.specifiedFormTab('Required');
cy.selectFormTab('Modified');

cy.closeStepConfigurationTab();
cy.openStepConfigurationTab('timer');
cy.specifiedFormTab('Modified');
});
});

0 comments on commit 330baf3

Please sign in to comment.