Skip to content

Commit

Permalink
Modifying test cases such that they run independently. Adding a try c…
Browse files Browse the repository at this point in the history
…atch block in waitForLoading function to handle missing element error.
  • Loading branch information
minurajeeve committed Oct 12, 2023
1 parent 91c75c5 commit b7e1734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/e2e-test/java/io/cdap/cdap/ui/utils/Commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,11 @@ public static JsonObject getPipelineStageJson(String stageName) {

public static void waitForLoading() {
if (Helper.isElementExists(Helper.getCssSelectorByDataTestId("loading-indicator"))) {
try{
try {
WaitHelper.waitForElementToBeHidden(
Helper.locateElementByCssSelector(Helper.getCssSelectorByDataTestId("loading-indicator"))
);
} catch(Exception e) {}
} catch (Exception e) { }
}
}
}

0 comments on commit b7e1734

Please sign in to comment.