-
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(768) - root container configuration for CR
- Loading branch information
Showing
2 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
99 changes: 99 additions & 0 deletions
99
packages/ui-tests/cypress/e2e/designer/rootContainersConf.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,99 @@ | ||
describe('Test for root containers', () => { | ||
beforeEach(() => { | ||
cy.openHomePage(); | ||
}); | ||
|
||
it('Canvas route wrap and unwrap', () => { | ||
cy.uploadFixture('flows/MultiflowCR.yaml'); | ||
cy.openDesignPage(); | ||
cy.toggleRouteVisibility(1); | ||
|
||
cy.get('[data-id^="route-1234"]') | ||
.find('.pf-topology__group__label') | ||
.find('.pf-topology__node__action-icon') | ||
.click(); | ||
|
||
cy.get('[data-id^="route-4321"]') | ||
.find('.pf-topology__group__label') | ||
.find('.pf-topology__node__action-icon') | ||
.click(); | ||
cy.checkNodeExist('timer', 0); | ||
cy.checkNodeExist('log', 0); | ||
cy.get('[data-id^="route-4321"]') | ||
.find('.pf-topology__group__label') | ||
.find('.pf-topology__node__action-icon') | ||
.click(); | ||
cy.checkNodeExist('timer', 1); | ||
cy.checkNodeExist('log', 1); | ||
}); | ||
|
||
// Blocked by: https://github.com/KaotoIO/kaoto-next/issues/860 | ||
it.skip('Canvas route wrap and unwrap, toggle visibility', () => { | ||
cy.uploadFixture('flows/MultiflowCR.yaml'); | ||
cy.openDesignPage(); | ||
cy.toggleRouteVisibility(1); | ||
cy.get('[data-id^="route-1234"]') | ||
.find('.pf-topology__group__label') | ||
.find('.pf-topology__node__action-icon') | ||
.click(); | ||
cy.toggleRouteVisibility(1); | ||
cy.checkNodeExist('timer', 0); | ||
cy.checkNodeExist('log', 0); | ||
}); | ||
|
||
it('Canvas route container config', () => { | ||
cy.uploadFixture('flows/CamelRoute.yaml'); | ||
cy.openDesignPage(); | ||
|
||
cy.get('[data-id^="camel-route"]') | ||
.find('.pf-topology__group__label') | ||
.find('.pf-topology__node__label__background') | ||
.click(); | ||
|
||
cy.get(`input[name="description"]`).clear().type('test.description'); | ||
cy.get(`input[name="group"]`).clear().type('test.group'); | ||
cy.get(`input[name="inputType.description"]`).clear().type('test.inputType.description'); | ||
cy.get(`input[name="inputType.id"]`).clear().type('test.inputType.id'); | ||
cy.get(`input[name="inputType.urn"]`).clear().type('test.inputType.urn'); | ||
cy.get(`input[name="inputType.validate"]`).check(); | ||
cy.get(`input[name="logMask"]`).uncheck(); | ||
cy.get(`input[name="messageHistory"]`).check(); | ||
cy.get(`input[name="nodePrefixId"]`).clear().type('test.nodePrefixId'); | ||
cy.get(`input[name="outputType.description"]`).clear().type('test.outputType.description'); | ||
cy.get(`input[name="outputType.id"]`).clear().type('test.outputType.id'); | ||
cy.get(`input[name="outputType.urn"]`).clear().type('test.outputType.urn'); | ||
cy.get(`input[name="outputType.validate"]`).check(); | ||
cy.get(`input[name="precondition"]`).clear().type('test.precondition'); | ||
cy.get(`input[name="routeConfigurationId"]`).clear().type('test.routeConfigurationId'); | ||
cy.get(`input[name="routePolicy"]`).clear().type('test.routePolicy'); | ||
cy.get(`input[name="startupOrder"]`).clear().type('test.startupOrder'); | ||
cy.get(`input[name="streamCaching"]`).check(); | ||
cy.get(`input[name="trace"]`).check(); | ||
|
||
cy.openSourceCode(); | ||
|
||
cy.checkCodeSpanLine('description: test.description'); | ||
cy.checkCodeSpanLine('group: test.group'); | ||
cy.checkCodeSpanLine('inputType:'); | ||
cy.checkCodeSpanLine('description: test.inputType.description'); | ||
cy.checkCodeSpanLine('id: test.inputType.id'); | ||
cy.checkCodeSpanLine('urn: test.inputType.urn'); | ||
cy.checkCodeSpanLine('validate: true'); | ||
// Blocked by - https://github.com/KaotoIO/kaoto-next/issues/861 | ||
// cy.checkCodeSpanLine('logMask: false'); | ||
cy.checkCodeSpanLine('messageHistory: true'); | ||
cy.checkCodeSpanLine('validate: true'); | ||
cy.checkCodeSpanLine('nodePrefixId: test.nodePrefixId'); | ||
cy.checkCodeSpanLine('outputType:'); | ||
cy.checkCodeSpanLine('description: test.outputType.description'); | ||
cy.checkCodeSpanLine('id: test.outputType.id'); | ||
cy.checkCodeSpanLine('urn: test.outputType.urn'); | ||
cy.checkCodeSpanLine('validate: true'); | ||
cy.checkCodeSpanLine('precondition: test.precondition'); | ||
cy.checkCodeSpanLine('routeConfigurationId: test.routeConfigurationId'); | ||
cy.checkCodeSpanLine('routePolicy: test.routePolicy'); | ||
cy.checkCodeSpanLine('startupOrder: test.startupOrder'); | ||
cy.checkCodeSpanLine('streamCaching: true'); | ||
cy.checkCodeSpanLine('trace: true'); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
- route: | ||
id: Camel Route | ||
id: camel-route | ||
from: | ||
uri: timer:test | ||
steps: | ||
|