-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e(992): test for consumer/producer properties in the CanvasForm
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
packages/ui-tests/cypress/e2e/designer/sidepanelConfig/producerConsumerConf.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,28 @@ | ||
describe('Tests for producer/consumer sidebar config', () => { | ||
beforeEach(() => { | ||
cy.openHomePage(); | ||
}); | ||
|
||
it('Check if producer/consumer properties are allowed or forbidden on route nodes', () => { | ||
cy.uploadFixture('flows/camelRoute/consumerProducer.yaml'); | ||
cy.openDesignPage(); | ||
|
||
cy.openStepConfigurationTab('amqp'); | ||
cy.selectFormTab('All'); | ||
cy.get('.pf-v5-c-expandable-section__toggle-text') | ||
.contains('Consumer (advanced) properties') | ||
.should('exist'); | ||
cy.get('.pf-v5-c-expandable-section__toggle-text') | ||
.contains('Producer (advanced) properties') | ||
.should('not.exist'); | ||
|
||
cy.openStepConfigurationTab('activemq6'); | ||
cy.selectFormTab('All'); | ||
cy.get('.pf-v5-c-expandable-section__toggle-text') | ||
.contains('Producer (advanced) properties') | ||
.should('exist'); | ||
cy.get('.pf-v5-c-expandable-section__toggle-text') | ||
.contains('Consumer (advanced) properties') | ||
.should('not.exist'); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
packages/ui-tests/cypress/fixtures/flows/camelRoute/consumerProducer.yaml
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,11 @@ | ||
- route: | ||
id: route-1921 | ||
from: | ||
id: from-2265 | ||
uri: amqp | ||
parameters: {} | ||
steps: | ||
- to: | ||
id: to-9644 | ||
uri: activemq6 | ||
parameters: {} |