Skip to content

Commit dddaf6a

Browse files
committed
test: add tags for e2e, run on ie9
1 parent e47bd82 commit dddaf6a

23 files changed

+45
-4
lines changed

.circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ jobs:
5555
at: ~/project
5656
- run: npm run test:e2e
5757

58-
test-e2e-browserstack:
58+
test-e2e-bs-ie9:
5959
<<: *defaults
6060
steps:
6161
- attach_workspace:
6262
at: ~/project
63-
- run: npm run test:e2e:ci
63+
- run: npm run test:e2e:ie9
6464

6565
workflows:
6666
version: 2
@@ -76,6 +76,6 @@ workflows:
7676
- test-e2e:
7777
requires:
7878
- install
79-
- test-e2e-browserstack:
79+
- test-e2e-bs-ie9:
8080
requires:
8181
- install

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"test:e2e": "node test/e2e/runner.js",
3636
"test:e2e:ci": "node test/e2e/runner.js --local -e ie,android44 -c test/e2e/nightwatch.browserstack.js test/e2e/specs/active-links.js",
3737
"test:e2e:ff": "node test/e2e/runner.js -e firefox -c test/e2e/nightwatch.config.js",
38+
"test:e2e:ie9": "node test/e2e/runner.js --local -e ie9 -c test/e2e/nightwatch.browserstack.js --skiptags history,ie9-fail",
3839
"test:types": "tsc -p types/test",
3940
"docs": "vuepress dev docs",
4041
"docs:build": "vuepress build docs",

test/e2e/browserstack-send-status.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = function sendStatus () {
4545
return cb()
4646
}
4747

48-
if (results.errors > 0) {
48+
if (results.errors > 0 || results.failed > 0) {
4949
const reason = results.lastError.message
5050
console.log('Found failed test', reason)
5151
axios

test/e2e/specs/active-links.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history', 'active', 'router-link'],
7+
68
'active links': function (browser) {
79
browser
810
.url('http://localhost:8080/active-links/')

test/e2e/specs/auth-flow.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
'auth flow': function (browser) {
79
browser
810
.url('http://localhost:8080/auth-flow/')

test/e2e/specs/basic.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
basic: function (browser) {
79
browser
810
.url('http://localhost:8080/basic/')

test/e2e/specs/data-fetching.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': [],
7+
68
'data fetching': function (browser) {
79
browser
810
.url('http://localhost:8080/data-fetching/')

test/e2e/specs/hash-mode.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['hash', 'ie9-fail'],
7+
68
'Hash mode': function (browser) {
79
browser
810
.url('http://localhost:8080/hash-mode/')

test/e2e/specs/hash-scroll-behavior.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['hash', 'ie9-fail'],
7+
68
'scroll behavior': function (browser) {
79
browser
810
.url('http://localhost:8080/hash-scroll-behavior/')

test/e2e/specs/keepalive-view.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': [],
7+
68
'keepalive view': function (browser) {
79
browser
810
.url('http://localhost:8080/keepalive-view/')

test/e2e/specs/lazy-loading-before-mount.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': [],
7+
68
'lazy loading before mount': function (browser) {
79
browser
810
.url('http://localhost:8080/lazy-loading-before-mount/')

test/e2e/specs/lazy-loading.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
'lazy loading': function (browser) {
79
browser
810
.url('http://localhost:8080/lazy-loading/')

test/e2e/specs/named-routes.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
'named routes': function (browser) {
79
browser
810
.url('http://localhost:8080/named-routes/')

test/e2e/specs/named-views.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
'named views': function (browser) {
79
browser
810
.url('http://localhost:8080/named-views/')

test/e2e/specs/navigation-guards.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
'navigation guards with alerts': function (browser) {
79
browser
810
.url('http://localhost:8080/navigation-guards/')

test/e2e/specs/nested-router.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
basic: function (browser) {
79
browser
810
.url('http://localhost:8080/nested-router/')

test/e2e/specs/nested-routes.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
'nested routes': function (browser) {
79
browser
810
.url('http://localhost:8080/nested-routes/')

test/e2e/specs/redirect.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
redirect: function (browser) {
79
browser
810
.url('http://localhost:8080/redirect/')

test/e2e/specs/route-alias.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
'route alias': function (browser) {
79
browser
810
.url('http://localhost:8080/route-alias/')

test/e2e/specs/route-matching.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': [],
7+
68
'route-matching': function (browser) {
79
browser
810
.url('http://localhost:8080/route-matching/')

test/e2e/specs/route-props.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
'route-props': function (browser) {
79
const $attrs = ' { "foo": "123" }'
810

test/e2e/specs/scroll-behavior.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
'scroll behavior': function (browser) {
79
const TIMEOUT = 2000
810

test/e2e/specs/transitions.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const bsStatus = require('../browserstack-send-status')
33
module.exports = {
44
...bsStatus(),
55

6+
'@tags': ['history'],
7+
68
transitions: function (browser) {
79
const TIMEOUT = 2000
810

0 commit comments

Comments
 (0)