Skip to content

Commit

Permalink
Trying to fix error while passing tests on actions
Browse files Browse the repository at this point in the history
  • Loading branch information
uo287545 committed Apr 7, 2024
1 parent f20497f commit 59f2726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/com/uniovi/steps/GameStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void iShouldStartPlaying() throws InterruptedException {
List<WebElement> finalMessage;
while(playing){
//I obtain the buttons for the answers
List<WebElement> elems = SeleniumUtils.waitLoadElementsBy(driver, "text", "Test answer 0", 5);
List<WebElement> elems = SeleniumUtils.waitLoadElementsBy(driver, "text", "Test answer 0", 10);
//I click on the first button
elems.get(0).click();

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/uniovi/steps/SignUpStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void iPressTheRegisterButton() {

@Then("I should see the profile page")
public void iShouldSeeTheProfilePage() {
SeleniumUtils.waitLoadElementsBy(driver, "span", p.getString("home.authenticated_as", PropertiesExtractor.getSPANISH()), 10);
SeleniumUtils.waitLoadElementsBy(driver, "span", p.getString("home.authenticated_as", PropertiesExtractor.getSPANISH()), 5);
}

@Then("I should see the error message {string}")
Expand Down

0 comments on commit 59f2726

Please sign in to comment.