From a40e16adb31398558fb75f1983a743d449391537 Mon Sep 17 00:00:00 2001 From: Aman Agarwal Date: Wed, 3 Apr 2024 11:01:05 +0530 Subject: [PATCH] fix: asserting getApplicationsOfWorkspace call before clicking skip (#32311) ## Description Asserting getApplicationsOfWorkspace call before clicking `Skip this step, I`ll do it later` button to move to the application screen. Tldr: Earlier was failing because the applications in the workspace were not available (or the network call was already in progress) and when the button was clicked because of the application condition, it was not redirecting to the application screen. Now we wait for the applications network call to finish before clicking on the Skip button. Fixes #32310 _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.IDE" ### :mag: Cypress test results > [!CAUTION] > Workflow run: > Commit: `e94458e2051502af269082e46c5811717877b32b` > Cypress dashboard: Click here! > The following are new failures, please fix them before merging the PR:
    >
  1. cypress/e2e/Regression/ClientSide/IDE/IDE_Add_Pane_Interactions_spec.ts
> To know the list of identified flaky tests - Refer here ## Summary by CodeRabbit - **Refactor** - Enhanced user interaction on the homepage for improved usability. - Streamlined the process for creating superuser accounts. --- app/client/cypress/support/Pages/HomePage.ts | 2 ++ app/client/cypress/support/commands.js | 1 + 2 files changed, 3 insertions(+) diff --git a/app/client/cypress/support/Pages/HomePage.ts b/app/client/cypress/support/Pages/HomePage.ts index 343c82017e..af7222c9cb 100644 --- a/app/client/cypress/support/Pages/HomePage.ts +++ b/app/client/cypress/support/Pages/HomePage.ts @@ -463,6 +463,8 @@ export class HomePage { } }); + this.assertHelper.AssertNetworkStatus("@getApplicationsOfWorkspace"); + if (skipToApplication) { this.agHelper.WaitUntilEleAppear( this.onboarding.locators.skipStartFromData, diff --git a/app/client/cypress/support/commands.js b/app/client/cypress/support/commands.js index 50f197b23c..f17bd1e0cd 100644 --- a/app/client/cypress/support/commands.js +++ b/app/client/cypress/support/commands.js @@ -1327,6 +1327,7 @@ Cypress.Commands.add("createSuperUser", () => { cy.wait(2000); if (CURRENT_REPO === REPO.CE) { + assertHelper.AssertNetworkStatus("@getApplicationsOfWorkspace"); agHelper.WaitUntilEleAppear(onboarding.locators.skipStartFromData); agHelper.GetNClick(onboarding.locators.skipStartFromData); cy.get("#loading").should("not.exist");