Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e on exception cleanup - use predefined selector #1365

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/ui-tests/cypress/e2e/componentCatalog.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ describe('Catalog related tests', () => {

cy.get('[data-testid="processor-catalog-tab"]').click();
cy.get('[data-testid="kamelet-catalog-tab"]').click();
cy.get('.pf-v5-c-text-input-group__text-input').type('google');
cy.get('div[id="google-storage-source"]').should('be.visible');
cy.get('.pf-v5-c-text-input-group__text-input').type('aws secret');
cy.get('div[id="aws-secrets-manager-sink"]').should('be.visible');
cy.get('button[aria-label="Reset"]').click();
cy.get('.pf-v5-c-text-input-group__text-input').should('have.value', '');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,31 @@ describe('Test for root on exception container', () => {
cy.selectInTypeaheadField('redeliveryPolicy.retriesExhaustedLogLevel', 'INFO');
cy.selectInTypeaheadField('redeliveryPolicy.retryAttemptedLogLevel', 'INFO');

cy.get(`textarea[name="description"]`).clear().type('testDescription');
cy.get(`input[name="onExceptionOccurredRef"]`).clear().type('testOnExceptionOccurredRef');
cy.get(`input[name="onRedeliveryRef"]`).clear().type('testOnRedeliveryRef');
cy.get(`input[name="redeliveryPolicy.id"]`).clear().type('testRedeliveryPolicyId');
cy.get(`input[name="redeliveryPolicy.allowRedeliveryWhileStopping"]`).check();
cy.get(`input[name="redeliveryPolicy.asyncDelayedRedelivery"]`).check();
cy.get(`input[name="redeliveryPolicy.backOffMultiplier"]`).clear().type('3.0');
cy.get(`input[name="redeliveryPolicy.collisionAvoidanceFactor"]`).clear().type('0.2');
cy.get(`input[name="redeliveryPolicy.delayPattern"]`).clear().type('testRedeliveryPolicyDelayPattern');
cy.get(`input[name="redeliveryPolicy.disableRedelivery"]`).check();
cy.get(`input[name="redeliveryPolicy.exchangeFormatterRef"]`).clear().type('testExchangeFormatterRef');
cy.get(`input[name="redeliveryPolicy.logContinued"]`).check();
cy.get(`input[name="redeliveryPolicy.logExhausted"]`).check();
cy.get(`input[name="redeliveryPolicy.logExhaustedMessageBody"]`).check();
cy.get(`input[name="redeliveryPolicy.logExhaustedMessageHistory"]`).check();
cy.get(`input[name="redeliveryPolicy.logHandled"]`).check();
cy.get(`input[name="redeliveryPolicy.logNewException"]`).check();
cy.get(`input[name="redeliveryPolicy.logRetryAttempted"]`).check();
cy.get(`input[name="redeliveryPolicy.logRetryStackTrace"]`).check();
cy.get(`input[name="redeliveryPolicy.logStackTrace"]`).check();
cy.get(`input[name="redeliveryPolicy.maximumRedeliveries"]`).clear().type('10');
cy.get(`input[name="redeliveryPolicy.maximumRedeliveryDelay"]`).clear().type('40000');
cy.get(`input[name="redeliveryPolicy.redeliveryDelay"]`).clear().type('2000');
cy.get(`input[name="redeliveryPolicy.retryAttemptedLogInterval"]`).clear().type('2');
cy.get(`input[name="redeliveryPolicyRef"]`).clear().type('testRedeliveryPolicyRef');
cy.interactWithConfigInputObject('description', 'testDescription');
cy.interactWithConfigInputObject('onExceptionOccurredRef', 'testOnExceptionOccurredRef');
cy.interactWithConfigInputObject('onRedeliveryRef', 'testOnRedeliveryRef');
cy.interactWithConfigInputObject('redeliveryPolicy.id', 'testRedeliveryPolicyId');
cy.interactWithConfigInputObject('redeliveryPolicy.allowRedeliveryWhileStopping');
cy.interactWithConfigInputObject('redeliveryPolicy.asyncDelayedRedelivery');
cy.interactWithConfigInputObject('redeliveryPolicy.backOffMultiplier', '3.0');
cy.interactWithConfigInputObject('redeliveryPolicy.collisionAvoidanceFactor', '0.2');
cy.interactWithConfigInputObject('redeliveryPolicy.delayPattern', 'testRedeliveryPolicyDelayPattern');
cy.interactWithConfigInputObject('redeliveryPolicy.disableRedelivery');
cy.interactWithConfigInputObject('redeliveryPolicy.exchangeFormatterRef', 'testExchangeFormatterRef');
cy.interactWithConfigInputObject('redeliveryPolicy.logContinued');
cy.interactWithConfigInputObject('redeliveryPolicy.logExhausted');
cy.interactWithConfigInputObject('redeliveryPolicy.logExhaustedMessageBody');
cy.interactWithConfigInputObject('redeliveryPolicy.logExhaustedMessageHistory');
cy.interactWithConfigInputObject('redeliveryPolicy.logHandled');
cy.interactWithConfigInputObject('redeliveryPolicy.logNewException');
cy.interactWithConfigInputObject('redeliveryPolicy.logRetryAttempted');
cy.interactWithConfigInputObject('redeliveryPolicy.logRetryStackTrace');
cy.interactWithConfigInputObject('redeliveryPolicy.logStackTrace');
cy.interactWithConfigInputObject('redeliveryPolicy.maximumRedeliveries', '10');
cy.interactWithConfigInputObject('redeliveryPolicy.maximumRedeliveryDelay', '40000');
cy.interactWithConfigInputObject('redeliveryPolicy.redeliveryDelay', '2000');
cy.interactWithConfigInputObject('redeliveryPolicy.retryAttemptedLogInterval', '2');
cy.interactWithConfigInputObject('redeliveryPolicyRef', 'testRedeliveryPolicyRef');

cy.get('[data-fieldname="retryWhile"]').within(() => {
cy.selectExpression('Constant');
Expand Down
Loading