Skip to content

Commit

Permalink
e2e(992): test for consumer/producer properties in the CanvasForm
Browse files Browse the repository at this point in the history
  • Loading branch information
tplevko committed Oct 10, 2024
1 parent bce3f44 commit 6b536df
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
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');
});
});
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: {}

0 comments on commit 6b536df

Please sign in to comment.