Skip to content

Commit

Permalink
FIX(vue-example) increase selector-timeout 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Aug 14, 2018
1 parent a531f67 commit 82201e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build": "cross-env NODE_ENV=production webpack --hide-modules",
"postbuild": "cp src/index.html ./dist/index.html && cp test/multitab.html ./dist/multitab.html",
"build:serve": "ws -p 8888 -d dist/",
"test:run": "testcafe chromium test/",
"test:run": "testcafe chromium test/ --selector-timeout 30000",
"test": "concurrently \"npm run build:serve \" \"npm run test:run\" --kill-others --success first"
},
"dependencies": {
Expand Down
11 changes: 8 additions & 3 deletions examples/vue/test/e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
} from 'testcafe';
import AsyncTestUtil from 'async-test-util';

fixture `Example page`
.page `http://0.0.0.0:8888/`;
fixture`Example page`
.page`http://0.0.0.0:8888/`;


test('insert a hero', async t => {
Expand Down Expand Up @@ -38,8 +38,13 @@ test('insert a hero', async t => {


test.page('http://0.0.0.0:8888/multitab.html?frames=2')('multitab: insert hero and check other tab', async t => {

await t.switchToIframe('#frame_0');

// w8 until loaded
await Selector('#insert-box button');

await t
.switchToIframe('#frame_0')
.typeText('#insert-box input[name=name]', 'SteveIrwin')
.typeText('#insert-box input[name=color]', 'red')
.click('#insert-box button');
Expand Down

0 comments on commit 82201e9

Please sign in to comment.