test(aio): disable DocViewer animations during e2e tests

This commit is contained in:
George Kalpakas
2017-12-12 15:26:03 +02:00
committed by Alex Rickabaugh
parent 0d47c39609
commit a33eaf6e07
4 changed files with 18 additions and 2 deletions

View File

@ -29,7 +29,10 @@ export class SitePage {
locationPath() { return browser.executeScript('return document.location.pathname') as promise.Promise<string>; }
navigateTo(pageUrl) {
return browser.get('/' + pageUrl).then(() => browser.waitForAngular());
// Navigate to the page, disable animations, and wait for Angular.
return browser.get('/' + pageUrl)
.then(() => browser.executeScript('document.body.classList.add(\'no-animations\')'))
.then(() => browser.waitForAngular());
}
getDocViewerText() {