feat: create e2e config

This commit is contained in:
夜鹰 2022-08-23 18:09:42 +08:00
parent 253eff1471
commit adf81e2444
4 changed files with 46 additions and 5 deletions

View File

@ -1,11 +1,11 @@
::: env_manage {
find: (<)
find(<):
[select 'Environment'] = sel
sel -> 'Mangage Environment'
find: (<)
find(<):
[icon] [label 'New'] = newLabel
newLabel -> click
@ -42,10 +42,10 @@ host -> 'https://youtube.com'
save -> click
find: (<)
find(<):
[label 'myEnv']
find: (<)
find(<):
[select 'Environment'] = sel
sel -> 'myEnv'

13
e2e/package.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "e2e",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"test": "playwright test"
},
"devDependencies": {
"@playwright/test": "1.25.0",
"playwright": "1.25.0"
}
}

View File

@ -1,5 +1,5 @@
const config = {
testDir: './e2e',
testDir: './',
};
module.exports = config;

28
e2e/yarn.lock Normal file
View File

@ -0,0 +1,28 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@playwright/test@1.25.0":
version "1.25.0"
resolved "https://registry.npmjs.org/@playwright/test/-/test-1.25.0.tgz#e0de134651e78e45e986c5f16578188dd5937331"
integrity sha512-j4EZhTTQI3dBeWblE21EV//swwmBtOpIrLdOIJIRv4uqsLdHgBg1z+JtTg+AeC5o2bAXIE26kDNW5A0TimG8Bg==
dependencies:
"@types/node" "*"
playwright-core "1.25.0"
"@types/node@*":
version "18.7.11"
resolved "https://registry.npmjs.org/@types/node/-/node-18.7.11.tgz#486e72cfccde88da24e1f23ff1b7d8bfb64e6250"
integrity sha512-KZhFpSLlmK/sdocfSAjqPETTMd0ug6HIMIAwkwUpU79olnZdQtMxpQP+G1wDzCH7na+FltSIhbaZuKdwZ8RDrw==
playwright-core@1.25.0:
version "1.25.0"
resolved "https://registry.npmjs.org/playwright-core/-/playwright-core-1.25.0.tgz#54dc867c6c2cc5e4233905e249206a02914d14f1"
integrity sha512-kZ3Jwaf3wlu0GgU0nB8UMQ+mXFTqBIFz9h1svTlNduNKjnbPXFxw7mJanLVjqxHJRn62uBfmgBj93YHidk2N5Q==
playwright@1.25.0:
version "1.25.0"
resolved "https://registry.npmjs.org/playwright/-/playwright-1.25.0.tgz#a5e317c8c207b921e7da17507ef9ec2983367970"
integrity sha512-Z+pQNWI17Qx/tHhnmgMmPsptsisXpKgAnUvYv98kctlHUJaqMt2400P8kTw9vEPoC0xdxqu0JhxO7pDTmaaIKw==
dependencies:
playwright-core "1.25.0"