From 80111920dd1b842b392deffed9686f79ae23a3bb Mon Sep 17 00:00:00 2001 From: mrfoxygmfr Date: Wed, 7 May 2025 01:04:09 +0300 Subject: fix(tests): operation controller tests --- .../warehouse_accounting/http/OperationsControllerTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/test/java') diff --git a/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/OperationsControllerTest.java b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/OperationsControllerTest.java index 0915450..28fed98 100644 --- a/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/OperationsControllerTest.java +++ b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/OperationsControllerTest.java @@ -52,7 +52,7 @@ public class OperationsControllerTest { continue; } - rowElements.get(2).click(); + rowElements.get(2).findElement(By.tagName("a")).click(); driver.manage().timeouts().implicitlyWait(500, TimeUnit.MILLISECONDS); break; } @@ -71,8 +71,9 @@ public class OperationsControllerTest { } assertEquals("10", rowElements.get(2).getText()); - rowElements.get(2).click(); + rowElements.get(2).findElement(By.tagName("a")).click(); driver.manage().timeouts().implicitlyWait(500, TimeUnit.MILLISECONDS); + driver.findElement(By.id("productAmount")).clear(); driver.findElement(By.id("productAmount")).sendKeys("0"); driver.findElement(By.id("saveBtn")).click(); driver.manage().timeouts().implicitlyWait(500, TimeUnit.MILLISECONDS); -- cgit mrf-deployment