Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Add wait for API response before code sync
Browse files Browse the repository at this point in the history
  • Loading branch information
tplevko authored and lordrip committed Jun 1, 2023
1 parent 8d6df34 commit 0f7c0fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ describe('Test for Step actions from the canvas', () => {

it('User appends a step(+ button to the right of the node)', () => {
cy.deleteStep('log');
//Wait for backend sync
cy.appendStepMiniCatalog('timer', 'aggregate');
//Wait for backend sync
cy.appendStepMiniCatalog('aggregate', 'log', 'end');

// CHECK that stepNodes are in the correct order
Expand Down Expand Up @@ -174,11 +172,9 @@ describe('Test for Step actions from the canvas', () => {

cy.get('[data-testid="kaoto-right-drawer"]').should('be.visible');
cy.deleteStep('log');
//Wait for backend sync
cy.get('[data-testid="kaoto-right-drawer"]').should('not.be.visible');

cy.openStepConfigurationTab('timer');
//Wait for backend sync
cy.get('[data-testid="kaoto-right-drawer"]').should('be.visible');
cy.deleteStep('choice');
cy.get('[data-testid="kaoto-right-drawer"]').should('be.visible');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ describe('Test for Nested Branching actions from the canvas', () => {
// CHECK test setup
cy.get('.stepNode').eq(9).should('have.attr', 'data-testid', 'viz-step-slot');
cy.get('.stepNode').eq(10).should('have.attr', 'data-testid', 'viz-step-slot');

cy.prependStepMiniCatalog('log', 'activemq');

// CHECK that the activemq step was prepended before filter and after all the branches ends
Expand Down

0 comments on commit 0f7c0fa

Please sign in to comment.