From c76bf8878c56e4c367f085e7600ac820c943a3bf Mon Sep 17 00:00:00 2001 From: Advitya Gemawat Date: Tue, 19 Sep 2023 09:43:12 -0400 Subject: [PATCH] get chained after waitUntil --- ...sionDataExplorerFlyoutElementsAfterSelectionArePresent.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/e2e/src/lib/describer/modelAssessment/visionDataExplorer/ensureAllVisionDataExplorerFlyoutElementsAfterSelectionArePresent.ts b/libs/e2e/src/lib/describer/modelAssessment/visionDataExplorer/ensureAllVisionDataExplorerFlyoutElementsAfterSelectionArePresent.ts index e562346cd2..f3738aaf3d 100644 --- a/libs/e2e/src/lib/describer/modelAssessment/visionDataExplorer/ensureAllVisionDataExplorerFlyoutElementsAfterSelectionArePresent.ts +++ b/libs/e2e/src/lib/describer/modelAssessment/visionDataExplorer/ensureAllVisionDataExplorerFlyoutElementsAfterSelectionArePresent.ts @@ -15,11 +15,10 @@ export function ensureAllVisionDataExplorerFlyoutElementsAfterSelectionArePresen cy.get(Locators.VisionDataExplorerImageExplorerViewButton).click(); cy.waitUntil(() => { - cy.reload() return Cypress.$(Locators.VisionDataExplorerImageExplorerViewSuccessImage).length > 0 && (Cypress.$(Locators.VisionDataExplorerImageExplorerViewSuccessImage)[0] as HTMLImageElement).naturalWidth > 0 && (Cypress.$(Locators.VisionDataExplorerImageExplorerViewSuccessImage)[0] as HTMLImageElement).naturalHeight > 0; - }); + }).get(Locators.VisionDataExplorerImageExplorerViewSuccessImage).click(); // cy.get(Locators.VisionDataExplorerImageExplorerViewSuccessImage, { timeout: 30000 }) // .should("be.visible") @@ -32,7 +31,7 @@ export function ensureAllVisionDataExplorerFlyoutElementsAfterSelectionArePresen // ); // }); - cy.get(Locators.VisionDataExplorerImageExplorerViewSuccessImage).click(); + // cy.get(Locators.VisionDataExplorerImageExplorerViewSuccessImage).click(); cy.get(Locators.VisionDataExplorerFlyoutPredictionTitle).should("exist");