We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e7b9d2 commit da4fcb2Copy full SHA for da4fcb2
1 file changed
examples/angular/test/e2e.test.js
@@ -1,5 +1,6 @@
1
import {
2
- Selector
+ Selector,
3
+ ClientFunction
4
} from 'testcafe';
5
import AsyncTestUtil from 'async-test-util';
6
@@ -10,6 +11,16 @@ fixture`Example page`
10
11
12
13
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
24
// clear previous heroes
25
const heroElements = Selector('.hero-list-component mat-list-item');
26
const amount = heroElements.count;
0 commit comments