Skip to content

Commit 6f4e9e2

Browse files
committed
making e2e test work on github.io
1 parent 2aeb51a commit 6f4e9e2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/e2e/scenarios.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ describe('Angular Timer E2E Tests', function () {
1212
});
1313

1414
beforeEach(function () {
15-
browser().navigateTo('/index.html');
15+
if (window.location.host.indexOf("github.io") > -1) {
16+
browser().navigateTo('/angular-timer/index.html');
17+
}
18+
else {
19+
browser().navigateTo('/index.html');
20+
}
1621
});
1722

1823
it("Simple Timer - Should stop ticking when user clicks 'Stop' button", function () {

0 commit comments

Comments
 (0)