Skip to content

Commit

Permalink
Fixed up the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed Feb 15, 2017
1 parent e642cf0 commit 8bac67c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/test/java/au/com/agic/apptesting/LiveTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
* Runs examples as unit tests
Expand Down Expand Up @@ -170,7 +171,15 @@ public void stepTests() {
*/
@Test
public void failWhenClosingOnlyWindow() {
for (final String browser : browsers) {
/*
Firefox actually allows you to close the final window, so we don't test
it here.
*/
final List<String> closeFailBrowsers = browsers.stream()
.filter(browser -> !"Marionette".equalsIgnoreCase(browser))
.collect(Collectors.toList());

for (final String browser : closeFailBrowsers) {
setCommonProperties();
System.setProperty("appURLOverride", "https://mcasperson.github.io/iridium/examples/test.html");
System.setProperty("testSource", this.getClass().getResource("/steptest.feature").toString());
Expand Down

0 comments on commit 8bac67c

Please sign in to comment.