diff --git a/src/test/java/com/stepDefinition/UIChangePipeOut.java b/src/test/java/com/stepDefinition/UIChangePipeOut.java index d4a0068..b3e46a8 100644 --- a/src/test/java/com/stepDefinition/UIChangePipeOut.java +++ b/src/test/java/com/stepDefinition/UIChangePipeOut.java @@ -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)); } } diff --git a/src/test/resources/Features/UIChangePipeOut.feature b/src/test/resources/Features/UIChangePipeOut.feature index 25a778d..f15d543 100644 --- a/src/test/resources/Features/UIChangePipeOut.feature +++ b/src/test/resources/Features/UIChangePipeOut.feature @@ -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 \ No newline at end of file diff --git a/target/test-classes/Features/UIChangePipeOut.feature b/target/test-classes/Features/UIChangePipeOut.feature index 25a778d..f15d543 100644 --- a/target/test-classes/Features/UIChangePipeOut.feature +++ b/target/test-classes/Features/UIChangePipeOut.feature @@ -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 \ No newline at end of file diff --git a/target/test-classes/com/stepDefinition/UIChangePipeOut.class b/target/test-classes/com/stepDefinition/UIChangePipeOut.class index c2c01a1..2bdf0a6 100644 Binary files a/target/test-classes/com/stepDefinition/UIChangePipeOut.class and b/target/test-classes/com/stepDefinition/UIChangePipeOut.class differ