Skip to content

Commit da4fcb2

Browse files
committed
ADD log
1 parent 4e7b9d2 commit da4fcb2

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

examples/angular/test/e2e.test.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
2-
Selector
2+
Selector,
3+
ClientFunction
34
} from 'testcafe';
45
import AsyncTestUtil from 'async-test-util';
56

@@ -10,6 +11,16 @@ fixture`Example page`
1011

1112

1213
test.page('http://localhost:8888/')('insert/edit/remove a hero', async t => {
14+
15+
// check if pouchdb server is up
16+
const res = await fetch('http://localhost:10101/');
17+
const data = await res.json();
18+
if (!data.version) {
19+
throw new Error('pouchdb-server not up ' + JSON.stringify(data));
20+
}
21+
console.log('PouchDB server is up with version ' + data.version);
22+
23+
1324
// clear previous heroes
1425
const heroElements = Selector('.hero-list-component mat-list-item');
1526
const amount = heroElements.count;

0 commit comments

Comments
 (0)