Skip to content

Commit b4770d0

Browse files
committed
ci: temporarily disable Cypress tests on windows
1 parent cfd0555 commit b4770d0

File tree

2 files changed

+32
-24
lines changed

2 files changed

+32
-24
lines changed

packages/@vue/cli-plugin-e2e-cypress/__tests__/cypressPlugin.spec.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@ jest.setTimeout(process.env.APPVEYOR ? 80000 : 40000)
22

33
const create = require('@vue/cli-test-utils/createTestProject')
44

5-
test('should work', async () => {
6-
const project = await create('e2e-cypress', {
7-
plugins: {
8-
'@vue/cli-plugin-babel': {},
9-
'@vue/cli-plugin-e2e-cypress': {}
10-
}
11-
})
5+
// temporarily disabled on AppVeyor due to upstream issue
6+
// https://github.com/cypress-io/cypress/issues/1841
7+
if (!process.env.APPVEYOR) {
8+
test('should work', async () => {
9+
const project = await create('e2e-cypress', {
10+
plugins: {
11+
'@vue/cli-plugin-babel': {},
12+
'@vue/cli-plugin-e2e-cypress': {}
13+
}
14+
})
1215

13-
const config = JSON.parse(await project.read('cypress.json'))
14-
config.video = false
15-
await project.write('cypress.json', JSON.stringify(config))
16+
const config = JSON.parse(await project.read('cypress.json'))
17+
config.video = false
18+
await project.write('cypress.json', JSON.stringify(config))
1619

17-
await project.run(`vue-cli-service test:e2e --headless`)
18-
})
20+
await project.run(`vue-cli-service test:e2e --headless`)
21+
})
22+
}

packages/@vue/cli-plugin-typescript/__tests__/tsPluginE2e.spec.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,23 @@ jest.setTimeout(process.env.APPVEYOR ? 850000 : 50000)
22

33
const create = require('@vue/cli-test-utils/createTestProject')
44

5-
test('cypress', async () => {
6-
const project = await create('ts-e2e-cypress-router', {
7-
router: true,
8-
plugins: {
9-
'@vue/cli-plugin-typescript': {},
10-
'@vue/cli-plugin-e2e-cypress': {}
11-
}
5+
// temporarily disabled on AppVeyor due to upstream issue
6+
// https://github.com/cypress-io/cypress/issues/1841
7+
if (!process.env.APPVEYOR) {
8+
test('cypress', async () => {
9+
const project = await create('ts-e2e-cypress-router', {
10+
router: true,
11+
plugins: {
12+
'@vue/cli-plugin-typescript': {},
13+
'@vue/cli-plugin-e2e-cypress': {}
14+
}
15+
})
16+
const config = JSON.parse(await project.read('cypress.json'))
17+
config.video = false
18+
await project.write('cypress.json', JSON.stringify(config))
19+
await project.run(`vue-cli-service test:e2e --headless`)
1220
})
13-
const config = JSON.parse(await project.read('cypress.json'))
14-
config.video = false
15-
await project.write('cypress.json', JSON.stringify(config))
16-
await project.run(`vue-cli-service test:e2e --headless`)
17-
})
21+
}
1822

1923
test('nightwatch', async () => {
2024
const project = await create('ts-e2e-nightwatch', {

0 commit comments

Comments
 (0)