Skip to content

Commit b84b2ab

Browse files
committed
fix(page-po): fix navigation
1 parent 67210fa commit b84b2ab

File tree

2 files changed

+29
-26
lines changed

2 files changed

+29
-26
lines changed

.circleci/config.yml

+26-26
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,45 @@ workflows:
22
version: 2
33
build:
44
jobs:
5-
- node-v8
6-
- node-v9
7-
- node-v10
5+
- node-v8
6+
- node-v9
7+
- node-v10
88

99
version: 2
1010
jobs:
1111
node-base: &node-base
1212
docker:
13-
- image: node
13+
- image: node
1414
steps:
15-
- run:
16-
name: Versions
17-
command: npm version
18-
- checkout
19-
- run:
20-
name: Install dependencies
21-
command: npm install
22-
- run:
23-
name: Lint
24-
command: npm run lint
25-
- run:
26-
name: Test
27-
command: npm test
28-
- run:
29-
name: Compile
30-
command: npm run compile
31-
- run:
32-
name: Integration
33-
command: npm run wdio-ci
15+
- run:
16+
name: Versions
17+
command: npm version
18+
- checkout
19+
- run:
20+
name: Install dependencies
21+
command: npm install
22+
- run:
23+
name: Lint
24+
command: npm run lint
25+
- run:
26+
name: Test
27+
command: npm test
28+
- run:
29+
name: Compile
30+
command: npm run compile
31+
- run:
32+
name: Integration
33+
command: npm run wdio-ci
3434

3535
node-v8:
3636
<<: *node-base
3737
docker:
38-
- image: node:8
38+
- image: node:8
3939
node-v9:
4040
<<: *node-base
4141
docker:
42-
- image: node:9
42+
- image: node:9
4343
node-v10:
4444
<<: *node-base
4545
docker:
46-
- image: node:10
46+
- image: node:10

test/pos/page.po.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import * as fs from 'fs-extra';
2+
13
export class PagePO {
24
static get data() {
35
return browser.element('.data');
@@ -21,6 +23,7 @@ export class PagePO {
2123

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

0 commit comments

Comments
 (0)