Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e-webdriverio): add integration tests
- Loading branch information
1 parent
6f58920
commit 79d98a8
Showing
5 changed files
with
73 additions
and
7 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
packages/@vue/cli-plugin-e2e-webdriverio/__tests__/wdioPlugin.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
jest.setTimeout(process.env.APPVEYOR ? 120000 : 60000) | ||
|
||
const create = require('@vue/cli-test-utils/createTestProject') | ||
|
||
test('should work', async () => { | ||
const project = await create('e2e-webdriverio', { | ||
plugins: { | ||
'@vue/cli-plugin-babel': {}, | ||
'@vue/cli-plugin-e2e-webdriverio': {}, | ||
'@vue/cli-plugin-eslint': { | ||
config: 'airbnb', | ||
lintOn: 'save' | ||
} | ||
} | ||
}) | ||
|
||
if (!process.env.CI) { | ||
await project.run(`vue-cli-service test:e2e`) | ||
} else if (!process.env.APPVEYOR) { | ||
await project.run(`vue-cli-service test:e2e --headless`) | ||
} | ||
}) | ||
|
||
test('should work with TS', async () => { | ||
const project = await create('e2e-webdriverio-ts', { | ||
plugins: { | ||
'@vue/cli-plugin-typescript': { | ||
'classComponent': true, | ||
'tsLint': true, | ||
'lintOn': ['save'] | ||
}, | ||
'@vue/cli-plugin-e2e-webdriverio': {} | ||
} | ||
}) | ||
|
||
if (!process.env.CI) { | ||
await project.run(`vue-cli-service test:e2e`) | ||
} else if (!process.env.APPVEYOR) { | ||
await project.run(`vue-cli-service test:e2e --headless`) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,3 @@ exports.config = { | |
} | ||
}] | ||
} | ||
|
||
|
||
console.log(process.argv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters