Skip to content

Commit

Permalink
test: try protractor
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed Mar 11, 2020
1 parent 4d6d438 commit fbc6aeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ describe('aurelia skeleton app', function() {

it('should navigate to users page', async () => {
await poSkeleton.navigateTo('#/users');
browser.sleep(2000);
await expect(await poSkeleton.getCurrentPageTitle()).toBe('Github Users | Aurelia');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export class PageObjectSkeleton {

async navigateTo(href) {
const navigatingReady = browser.waitForRouterComplete();
await element(by.css('a[href="' + href + '"]')).click();
const link = element(by.css('a[href="' + href + '"]'));
console.log(`link for ${href}`, await link.isPresent());
await link.click();
await navigatingReady;
await browser.sleep(200);
}
}

0 comments on commit fbc6aeb

Please sign in to comment.