Skip to content

Commit

Permalink
fix(page-po): fix navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
mdasberg committed Nov 15, 2018
1 parent 67210fa commit b84b2ab
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,45 @@ workflows:
version: 2
build:
jobs:
- node-v8
- node-v9
- node-v10
- node-v8
- node-v9
- node-v10

version: 2
jobs:
node-base: &node-base
docker:
- image: node
- image: node
steps:
- run:
name: Versions
command: npm version
- checkout
- run:
name: Install dependencies
command: npm install
- run:
name: Lint
command: npm run lint
- run:
name: Test
command: npm test
- run:
name: Compile
command: npm run compile
- run:
name: Integration
command: npm run wdio-ci
- run:
name: Versions
command: npm version
- checkout
- run:
name: Install dependencies
command: npm install
- run:
name: Lint
command: npm run lint
- run:
name: Test
command: npm test
- run:
name: Compile
command: npm run compile
- run:
name: Integration
command: npm run wdio-ci

node-v8:
<<: *node-base
docker:
- image: node:8
- image: node:8
node-v9:
<<: *node-base
docker:
- image: node:9
- image: node:9
node-v10:
<<: *node-base
docker:
- image: node:10
- image: node:10
3 changes: 3 additions & 0 deletions test/pos/page.po.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as fs from 'fs-extra';

export class PagePO {
static get data() {
return browser.element('.data');
Expand All @@ -21,6 +23,7 @@ export class PagePO {

static async open(): Promise<any> {
await browser.url('/index.html');
await browser.url('/index.html'); // make sure navigation worked
await browser.waitUntil(async () => {
const header = await browser.getText('h1');
return header.indexOf('ng-apimock test example app') > -1;
Expand Down

0 comments on commit b84b2ab

Please sign in to comment.