Skip to content

Commit

Permalink
Trying to fix the game controller test
Browse files Browse the repository at this point in the history
  • Loading branch information
uo287545 committed Apr 26, 2024
1 parent 62f5618 commit a49cc53
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 @@ -40,7 +40,7 @@ public void iShouldStartPlaying() {
List<WebElement> finalMessage;
while(playing){
//I obtain the buttons for the answers
List<WebElement> elems = SeleniumUtils.waitLoadElementsBy(driver, "text", "Test answer 0", 10);
List<WebElement> elems = By.cssSelector(".container .row button").findElements(driver);
log.info("Found " + elems.size() + " buttons");
log.info("Iteration " + i + " of the game");
//I click on the first button
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/features/Game.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Feature: I try to play a normal game
And I press the register button
And I go to the home page
When I press Play
#Then I should start playing
Then I should start playing

0 comments on commit a49cc53

Please sign in to comment.