From b84b2ab546a90ed4f58ef034ade1871656e763ce Mon Sep 17 00:00:00 2001 From: Mischa Dasberg Date: Thu, 15 Nov 2018 21:16:08 +0100 Subject: [PATCH] fix(page-po): fix navigation --- .circleci/config.yml | 52 ++++++++++++++++++++++---------------------- test/pos/page.po.ts | 3 +++ 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fd75959..38bec75 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 \ No newline at end of file + - image: node:10 \ No newline at end of file diff --git a/test/pos/page.po.ts b/test/pos/page.po.ts index 8bb02bc..f995f5b 100644 --- a/test/pos/page.po.ts +++ b/test/pos/page.po.ts @@ -1,3 +1,5 @@ +import * as fs from 'fs-extra'; + export class PagePO { static get data() { return browser.element('.data'); @@ -21,6 +23,7 @@ export class PagePO { static async open(): Promise { 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;