Skip to content

Commit

Permalink
Merge pull request #110 from Umutayb/uta-v0.0.4
Browse files Browse the repository at this point in the history
Maintained the unit tests for uta0.0.4
  • Loading branch information
Umutayb authored Feb 28, 2024
2 parents 6543221 + 2c57a39 commit bee9f34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/test/java/AppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ public void scrollInContainerTest(){//TODO: Try soft assertions
List<WebElement> categories = reflections.getElementsFromPage("categories", "homePage");
WebElement interactions = ElementAcquisition.acquireNamedElementAmongst(categories, "Interactions");
webInteractions.clickElement(interactions);
List<WebElement> dropDown = reflections.getElementsFromPage("tools", "interactionsPage");
WebElement selectable = ElementAcquisition.acquireNamedElementAmongst(dropDown, "DropDown");
webInteractions.clickElement(selectable);
List<WebElement> 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");
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/pages/HomePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
import java.util.List;

public class HomePage extends PickleibPageObject {
@FindBy(css = "categories a")
@FindBy(id = "category-card")
public List<WebElement> categories;
}
2 changes: 1 addition & 1 deletion src/test/java/pages/InteractionsPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public class InteractionsPage extends PickleibPageObject {
@FindBy(id = "title")
WebElement title;

@FindBy(css = "tools a")
@FindBy(id = "tool")
List<WebElement> tools;
}

0 comments on commit bee9f34

Please sign in to comment.