From b7e17343e725082aed54b374d462f21c36625b3f Mon Sep 17 00:00:00 2001 From: minurajeeve Date: Thu, 12 Oct 2023 17:30:39 +0530 Subject: [PATCH] Modifying test cases such that they run independently. Adding a try catch block in waitForLoading function to handle missing element error. --- src/e2e-test/java/io/cdap/cdap/ui/utils/Commands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/e2e-test/java/io/cdap/cdap/ui/utils/Commands.java b/src/e2e-test/java/io/cdap/cdap/ui/utils/Commands.java index fa3ac2f5e2d..bae36123a49 100644 --- a/src/e2e-test/java/io/cdap/cdap/ui/utils/Commands.java +++ b/src/e2e-test/java/io/cdap/cdap/ui/utils/Commands.java @@ -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) { } } } }