-
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 - preserving modeline after pipe config
- Loading branch information
Showing
5 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
packages/ui-tests/cypress/e2e/designer/basicNodeActions/stepDisable.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,17 @@ | ||
describe('Tests for Design page', () => { | ||
beforeEach(() => { | ||
cy.openHomePage(); | ||
}); | ||
|
||
it('Design - disable steps in CamelRoute', () => { | ||
cy.uploadFixture('flows/camelRoute/basic.yaml'); | ||
cy.openDesignPage(); | ||
|
||
cy.selectDisableNode('setHeader'); | ||
cy.openStepConfigurationTab('setHeader'); | ||
cy.checkConfigCheckboxObject('disabled', true); | ||
|
||
cy.openSourceCode(); | ||
cy.checkCodeSpanLine('disabled: true', 1); | ||
}); | ||
}); |
17 changes: 17 additions & 0 deletions
17
packages/ui-tests/cypress/e2e/designer/sidepanelConfig/modelineConf.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,17 @@ | ||
describe('Tests for modeline', () => { | ||
beforeEach(() => { | ||
cy.openHomePage(); | ||
}); | ||
|
||
it('Preserve modeline in pipe config after pipe source was changed', () => { | ||
cy.uploadFixture('flows/pipe/modeline.yaml'); | ||
cy.openDesignPage(); | ||
|
||
cy.removeNodeByName('https'); | ||
cy.openStepConfigurationTab('kamelet:log-sink'); | ||
cy.get(`input[name="parameters.showProperties"]`).check(); | ||
|
||
cy.openSourceCode(); | ||
cy.checkCodeSpanLine('# camel-k: dependency=camel:aws-secrets-manager', 1); | ||
}); | ||
}); |
16 changes: 16 additions & 0 deletions
16
packages/ui-tests/cypress/fixtures/flows/pipe/modeline.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,16 @@ | ||
# camel-k: dependency=camel:aws-secrets-manager | ||
|
||
- route: | ||
from: | ||
uri: "kamelet:timer-source" | ||
parameters: | ||
period: 10000 | ||
message: 'test' | ||
steps: | ||
- to: | ||
uri: "https://finnhub.io/api/v1/quote?symbol=AAPL&token={{aws:finnhub-token}}" | ||
- to: | ||
uri: "kamelet:log-sink" | ||
parameters: | ||
showStreams: true | ||
showHeaders: 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
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