Skip to content

Commit

Permalink
get chained after waitUntil
Browse files Browse the repository at this point in the history
  • Loading branch information
Advitya17 committed Sep 19, 2023
1 parent 270e512 commit c76bf88
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -32,7 +31,7 @@ export function ensureAllVisionDataExplorerFlyoutElementsAfterSelectionArePresen
// );
// });

cy.get(Locators.VisionDataExplorerImageExplorerViewSuccessImage).click();
// cy.get(Locators.VisionDataExplorerImageExplorerViewSuccessImage).click();

cy.get(Locators.VisionDataExplorerFlyoutPredictionTitle).should("exist");

Expand Down

0 comments on commit c76bf88

Please sign in to comment.