From 2c57a39bff522b3dce801eddab95c9c9e82445fa Mon Sep 17 00:00:00 2001 From: Umut Ay Bora Date: Wed, 28 Feb 2024 12:47:16 +0100 Subject: [PATCH] Maintained the unit tests for uta0.0.4 --- src/test/java/AppTest.java | 6 +++--- src/test/java/pages/HomePage.java | 2 +- src/test/java/pages/InteractionsPage.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/AppTest.java b/src/test/java/AppTest.java index b350d7b8..eee00a98 100644 --- a/src/test/java/AppTest.java +++ b/src/test/java/AppTest.java @@ -162,9 +162,9 @@ public void scrollInContainerTest(){//TODO: Try soft assertions List categories = reflections.getElementsFromPage("categories", "homePage"); WebElement interactions = ElementAcquisition.acquireNamedElementAmongst(categories, "Interactions"); webInteractions.clickElement(interactions); - List dropDown = reflections.getElementsFromPage("tools", "interactionsPage"); - WebElement selectable = ElementAcquisition.acquireNamedElementAmongst(dropDown, "DropDown"); - webInteractions.clickElement(selectable); + List tools = reflections.getElementsFromPage("tools", "interactionsPage"); + WebElement dropdownTool = ElementAcquisition.acquireNamedElementAmongst(tools, "Dropdown"); + webInteractions.clickElement(dropdownTool); WebElement countriesDropDown = reflections.getElementFromPage("countriesDropDown", "dropDownPage"); webInteractions.clickElement(countriesDropDown); WebElement countriesContainer = reflections.getElementFromPage("countriesContainer", "dropDownPage"); diff --git a/src/test/java/pages/HomePage.java b/src/test/java/pages/HomePage.java index 82ca0e42..757bcc29 100644 --- a/src/test/java/pages/HomePage.java +++ b/src/test/java/pages/HomePage.java @@ -6,6 +6,6 @@ import java.util.List; public class HomePage extends PickleibPageObject { - @FindBy(css = "categories a") + @FindBy(id = "category-card") public List categories; } \ No newline at end of file diff --git a/src/test/java/pages/InteractionsPage.java b/src/test/java/pages/InteractionsPage.java index 7bac6d9a..14eaa08d 100644 --- a/src/test/java/pages/InteractionsPage.java +++ b/src/test/java/pages/InteractionsPage.java @@ -11,6 +11,6 @@ public class InteractionsPage extends PickleibPageObject { @FindBy(id = "title") WebElement title; - @FindBy(css = "tools a") + @FindBy(id = "tool") List tools; }