From d468df41daaed3353c7eb09ab7ee804840e6258f Mon Sep 17 00:00:00 2001 From: Jayesh Kharode Date: Tue, 19 Mar 2024 12:00:44 +0530 Subject: [PATCH] MOSIP-31999 Signed-off-by: Jayesh Kharode --- .../java/io/mosip/testrig/adminui/dbaccess/DBManager.java | 2 +- .../main/java/io/mosip/testrig/adminui/utility/Commons.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admintest/src/main/java/io/mosip/testrig/adminui/dbaccess/DBManager.java b/admintest/src/main/java/io/mosip/testrig/adminui/dbaccess/DBManager.java index 860860a6..84fa6be2 100644 --- a/admintest/src/main/java/io/mosip/testrig/adminui/dbaccess/DBManager.java +++ b/admintest/src/main/java/io/mosip/testrig/adminui/dbaccess/DBManager.java @@ -175,7 +175,7 @@ public void execute(Connection connection) throws SQLException { try { ; statement.addBatch("delete from applicant_valid_document where cr_by ='"+BaseClass.userid+"'"); - statement.addBatch("delete from appl_form_type where cr_by ='"+BaseClass.userid+"'"); + // statement.addBatch("delete from appl_form_type where cr_by ='"+BaseClass.userid+"'"); statement.addBatch("delete from biometric_attribute where cr_by ='"+BaseClass.userid+"'"); statement.addBatch("delete from biometric_type where cr_by ='"+BaseClass.userid+"'"); statement.addBatch("delete from blocklisted_words where cr_by ='"+BaseClass.userid+"'"); diff --git a/admintest/src/main/java/io/mosip/testrig/adminui/utility/Commons.java b/admintest/src/main/java/io/mosip/testrig/adminui/utility/Commons.java index a8951f46..e668bebf 100644 --- a/admintest/src/main/java/io/mosip/testrig/adminui/utility/Commons.java +++ b/admintest/src/main/java/io/mosip/testrig/adminui/utility/Commons.java @@ -340,6 +340,7 @@ public static void edit(ExtentTest test,WebDriver driver,String data,By by) { Commons.enter(test,driver, by, data); Commons.click(test,driver, By.id("createButton")); + Commons.click(test,driver,By.id("confirmpopup")); Commons.click(test,driver, By.id("confirmmessagepopup")); logger.info("Click Edit and Confirm" + by + data); @@ -428,8 +429,8 @@ public static void editCenter(ExtentTest test,WebDriver driver,String data,By by public static void create(ExtentTest test,WebDriver driver) throws IOException { Commons.click(test,driver, By.xpath("//button[@id='createButton']")); - Commons.click(test,driver, By.id("confirmmessagepopup")); - + Commons.click(test,driver, By.id("confirmpopup")); + Commons.click(test,driver, By.id("confirmmessagepopup")); logger.info("Click create"); } public static void createRes(ExtentTest test,WebDriver driver) throws IOException {