-
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(659): Indication the connectors mandatory properties are not conf…
…igured
- Loading branch information
Showing
2 changed files
with
60 additions
and
12 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
packages/ui-tests/cypress/e2e/designer/mandatoryPropsWarnings.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,50 @@ | ||
describe('Test for Multi route actions from the canvas', () => { | ||
beforeEach(() => { | ||
cy.openHomePage(); | ||
}); | ||
it('Check the canvas node warnings in Camel Route', () => { | ||
cy.uploadFixture('flows/CamelRoute.yaml'); | ||
cy.openDesignPage(); | ||
|
||
cy.selectAppendNode('setHeader'); | ||
cy.get('.pf-v5-c-text-input-group__text-input').click(); | ||
cy.get('.pf-v5-c-text-input-group__text-input').type('github'); | ||
cy.get('#github').should('be.visible').click(); | ||
// wait for the canvas rerender | ||
cy.wait(1000); | ||
cy.checkNodeExist('github', 1); | ||
|
||
cy.get('[data-id^="github"] g').find('.pf-topology__node__decorator__bg').click(); | ||
cy.get('.pf-v5-c-tooltip__content').should( | ||
'have.text', | ||
'3 required parameters are not yet configured: [ type,repoName,repoOwner ]', | ||
); | ||
|
||
cy.openStepConfigurationTab('github'); | ||
cy.interactWithConfigInputObject('parameters.repoName', 'test'); | ||
cy.closeStepConfigurationTab(); | ||
|
||
cy.get('[data-id^="github"] g').find('.pf-topology__node__decorator__bg').click(); | ||
cy.get('.pf-v5-c-tooltip__content').should( | ||
'have.text', | ||
'2 required parameters are not yet configured: [ type,repoOwner ]', | ||
); | ||
}); | ||
|
||
it('Check the canvas node warnings in Pipe', () => { | ||
cy.uploadFixture('flows/ErrorHandlerPipe.yaml'); | ||
cy.openDesignPage(); | ||
|
||
cy.get('[data-id^="delay-action"] g').find('.pf-topology__node__decorator__bg').click(); | ||
cy.get('.pf-v5-c-tooltip__content').should( | ||
'have.text', | ||
'1 required parameter is not yet configured: [ milliseconds ]', | ||
); | ||
|
||
cy.openStepConfigurationTab('delay-action'); | ||
cy.interactWithConfigInputObject('milliseconds', '1000'); | ||
cy.closeStepConfigurationTab(); | ||
|
||
cy.get('[data-id^="delay-action"] g').find('.pf-topology__node__decorator__bg').should('not.exist'); | ||
}); | ||
}); |
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