Skip to content

Commit

Permalink
fixing changepipeout test #1
Browse files Browse the repository at this point in the history
  • Loading branch information
amurlamur committed May 18, 2024
1 parent d11d373 commit d4a4882
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/java/com/stepDefinition/UIChangePipeOut.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void select_pipe_out() {
@Then("check if pipe out has changed")
public void check_if_the_pipe_out_has_changed() {
System.out.println("test started");
assertEquals(game.Fields().get(1).getPipeOut(), game.Pipes().get(3));
assertEquals(game.Fields().get(3).getPipeOut(), game.Pipes().get(0));
}

}
27 changes: 26 additions & 1 deletion src/test/resources/Features/UIChangePipeOut.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,31 @@ Feature: Tests a plumber changing the output of a pipe
And game starts
And click on move button
And select destination

And click on end turn
And click on move button
And select destination
And click on end turn
And click on move button
And select destination
And click on end turn
And click on move button
And select destination
And click on end turn
And click on move button
And select destination nomad
And click on end turn nomad
And click on move button
And select destination nomad
And click on end turn nomad
And click on move button
And select destination nomad
And click on end turn nomad
And click on move button
And select destination nomad
And click on end turn nomad
And click on move button
And select destination
And click on change pipe out
And select pipe out
And click on end turn
Then check if pipe out has changed
27 changes: 26 additions & 1 deletion target/test-classes/Features/UIChangePipeOut.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,31 @@ Feature: Tests a plumber changing the output of a pipe
And game starts
And click on move button
And select destination

And click on end turn
And click on move button
And select destination
And click on end turn
And click on move button
And select destination
And click on end turn
And click on move button
And select destination
And click on end turn
And click on move button
And select destination nomad
And click on end turn nomad
And click on move button
And select destination nomad
And click on end turn nomad
And click on move button
And select destination nomad
And click on end turn nomad
And click on move button
And select destination nomad
And click on end turn nomad
And click on move button
And select destination
And click on change pipe out
And select pipe out
And click on end turn
Then check if pipe out has changed
Binary file modified target/test-classes/com/stepDefinition/UIChangePipeOut.class
Binary file not shown.

0 comments on commit d4a4882

Please sign in to comment.