-
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.
fix(1428): add support for multiValue
- Loading branch information
Showing
8 changed files
with
197 additions
and
1 deletion.
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
packages/ui-tests/cypress/e2e/designer/sidepanelConfig/multiValueSerialization.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,74 @@ | ||
describe('Tests for Multi Value serialization', () => { | ||
beforeEach(() => { | ||
cy.openHomePage(); | ||
}); | ||
|
||
it('Sidebar add Multi Value step configuration', () => { | ||
cy.uploadFixture('flows/camelRoute/multiValue.yaml'); | ||
cy.openDesignPage(); | ||
cy.openStepConfigurationTab('quartz'); | ||
cy.selectFormTab('All'); | ||
|
||
cy.filterFields('Job Parameters'); | ||
cy.expandWrappedSection('parameters.jobParameters'); | ||
cy.get('[data-testid="properties-add-string-property--btn"]').not(':hidden').first().click({ force: true }); | ||
cy.get('[data-testid="parameters.jobParameters--placeholder-name-input"]').should('not.be.disabled'); | ||
cy.get('[data-testid="parameters.jobParameters--placeholder-name-input"]').click({ force: true }); | ||
cy.get('[data-testid="parameters.jobParameters--placeholder-name-input"]').clear().type('jobParametersTest'); | ||
|
||
cy.get('[data-testid="parameters.jobParameters--placeholder-value-input"]').should('not.be.disabled'); | ||
cy.get('[data-testid="parameters.jobParameters--placeholder-value-input"]').click({ force: true }); | ||
cy.get('[data-testid="parameters.jobParameters--placeholder-value-input"]').clear().type('jobParametersValue'); | ||
cy.get('[data-testid="parameters.jobParameters--placeholder-property-edit-confirm--btn"]').click({ force: true }); | ||
cy.closeWrappedSection('parameters.jobParameters'); | ||
|
||
cy.filterFields('Trigger Parameters'); | ||
cy.expandWrappedSection('parameters.triggerParameters'); | ||
cy.get('[data-testid="properties-add-string-property--btn"]').not(':hidden').first().click({ force: true }); | ||
cy.get('[data-testid="parameters.triggerParameters--placeholder-name-input"]').should('not.be.disabled'); | ||
cy.get('[data-testid="parameters.triggerParameters--placeholder-name-input"]').click({ force: true }); | ||
cy.get('[data-testid="parameters.triggerParameters--placeholder-name-input"]') | ||
.clear() | ||
.type('triggerParametersTest'); | ||
|
||
cy.get('[data-testid="parameters.triggerParameters--placeholder-value-input"]').should('not.be.disabled'); | ||
cy.get('[data-testid="parameters.triggerParameters--placeholder-value-input"]').click({ force: true }); | ||
cy.get('[data-testid="parameters.triggerParameters--placeholder-value-input"]') | ||
.clear() | ||
.type('triggerParametersValue'); | ||
cy.get('[data-testid="parameters.triggerParameters--placeholder-property-edit-confirm--btn"]').click({ | ||
force: true, | ||
}); | ||
cy.closeWrappedSection('parameters.triggerParameters'); | ||
|
||
// CHECK changes are reflected in the code editor | ||
cy.openSourceCode(); | ||
cy.checkCodeSpanLine('job.jobParametersTest: jobParametersValue'); | ||
cy.checkCodeSpanLine('trigger.triggerParametersTest: triggerParametersValue'); | ||
}); | ||
|
||
it('Sidebar delete Multi Value step configuration', () => { | ||
cy.uploadFixture('flows/camelRoute/multiValue.yaml'); | ||
cy.openDesignPage(); | ||
cy.openStepConfigurationTab('quartz'); | ||
cy.selectFormTab('All'); | ||
|
||
cy.filterFields('Job Parameters'); | ||
cy.expandWrappedSection('parameters.jobParameters'); | ||
cy.get('[data-testid="parameters.jobParameters-testJob-delete-testJob-btn"]') | ||
.not(':hidden') | ||
.first() | ||
.click({ force: true }); | ||
|
||
cy.filterFields('Trigger Parameters'); | ||
cy.expandWrappedSection('parameters.triggerParameters'); | ||
cy.get('[data-testid="parameters.triggerParameters-testTrigger-delete-testTrigger-btn"]') | ||
.not(':hidden') | ||
.first() | ||
.click({ force: true }); | ||
|
||
cy.openSourceCode(); | ||
cy.checkCodeSpanLine('job.testJob: testJob', 0); | ||
cy.checkCodeSpanLine('trigger.testTrigger: testTrigger', 0); | ||
}); | ||
}); |
12 changes: 12 additions & 0 deletions
12
packages/ui-tests/cypress/fixtures/flows/camelRoute/multiValue.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,12 @@ | ||
- route: | ||
id: route-2553 | ||
from: | ||
id: from-3744 | ||
uri: quartz:Camel/ | ||
parameters: | ||
job.testJob: testJob | ||
trigger.testTrigger: testTrigger | ||
steps: | ||
- log: | ||
id: log-3089 | ||
message: ${body} |
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
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