Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Mar 31, 2016
2 parents ba0f904 + 2cbe627 commit 18b9ade
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ before_script:
- sleep 3 # give xvfb some time to start

script:
- npm run ci
- npm run test

after_script:
- npm run coveralls
10 changes: 8 additions & 2 deletions src/app/routes/choose.component.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
'use strict';
describe('ChooseRoute', () => {

beforeEach(() => {
// Temporary fix for zone.js issue #234 (TODO: remove)
beforeEach((done) => {
browser.get('/euw');
element(by.css('body')).isPresent().then(() => {
done();
}, () => {
//error skipped
done();
})
});


it('should have a title', () => {
expect(browser.getTitle()).toEqual('Legend Builder');
});
Expand Down
11 changes: 9 additions & 2 deletions src/app/routes/region.component.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
'use strict';
describe('RegionsComponent', () => {

beforeEach(() => {
// Temporary fix for zone.js issue #234 (TODO: remove)
beforeEach((done) => {
browser.get('/');
element(by.css('body')).isPresent().then(() => {
done();
}, () => {
//error skipped
done();
})
});


Expand All @@ -11,7 +18,7 @@ describe('RegionsComponent', () => {
});

it('should select EUW', () => {
element(by.css('region button[href=\'/euw\']')).click();
element(by.css('region button[href="/euw"]')).click();

browser.driver.getCurrentUrl().then(function(url) {
expect(/\.*\/euw/.test(url)).toBeTruthy();
Expand Down

0 comments on commit 18b9ade

Please sign in to comment.