-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e(1174): add coverage for parameters filter in canvas form
- Loading branch information
Showing
5 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
packages/ui-tests/cypress/e2e/designer/sidepanelConfig/propertiesFilter.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
describe('Tests for side panel step filtering', () => { | ||
beforeEach(() => { | ||
cy.openHomePage(); | ||
}); | ||
|
||
it('Side panel step filtering lowercase', () => { | ||
cy.uploadFixture('flows/camelRoute/basic.yaml'); | ||
cy.openDesignPage(); | ||
cy.openStepConfigurationTab('setHeader'); | ||
|
||
// expand wrapped section | ||
cy.contains('button', 'Processor advanced properties').click(); | ||
|
||
// 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'); | ||
cy.get(`input[data-testid="expression-preview-input"]`).should('exist'); | ||
|
||
// filter fields | ||
cy.filterFields('name'); | ||
cy.get(`input[data-testid="expression-preview-input"]`).should('exist'); | ||
cy.get(`input[name="name"]`).should('exist'); | ||
cy.get(`input[name="id"]`).should('not.exist'); | ||
cy.get(`textarea[name="description"]`).should('not.exist'); | ||
cy.get(`input[name="disabled"]`).should('not.exist'); | ||
}); | ||
|
||
it('Side panel step filtering uppercase', () => { | ||
cy.uploadFixture('flows/camelRoute/basic.yaml'); | ||
cy.openDesignPage(); | ||
cy.openStepConfigurationTab('setHeader'); | ||
|
||
// expand wrapped section | ||
cy.contains('button', 'Processor advanced properties').click(); | ||
|
||
// 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'); | ||
cy.get(`input[data-testid="expression-preview-input"]`).should('exist'); | ||
|
||
// filter fields | ||
cy.filterFields('DISABLED'); | ||
cy.get(`input[data-testid="expression-preview-input"]`).should('exist'); | ||
cy.get(`input[name="disabled"]`).should('exist'); | ||
cy.get(`input[name="name"]`).should('not.exist'); | ||
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', () => { | ||
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="id"]`).should('not.exist'); | ||
cy.get(`textarea[name="description"]`).should('not.exist'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters