MM-62954 E2E/Playwright shared library (#30177)
* feat: Add package.json for Playwright library with dependencies * feat: Add explicit exports for test.config in playwright-lib package * feat: Add initialization setup for Mattermost E2E testing with admin and user client * fix: Update package dependencies and resolve TypeScript build errors * feat: Update package exports for test.config to support both CommonJS and ESM * playwright shared library * add README, fix pipeline * keep file structures, move report up to playwright * minimize API, use the prerelease versions of client and types * bump version * update package*.json * resolve merge conflict * update depedencies and merge conflicts * update readme and fix ci * remove unnecessary export and list all external packages * fix import for Client4
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ce9632cca3
Коммит
a47269cfe2
68
e2e-tests/playwright/lib/package.json
Обычный файл
68
e2e-tests/playwright/lib/package.json
Обычный файл
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"name": "@mattermost/playwright-lib",
|
||||
"version": "10.6.1",
|
||||
"description": "A comprehensive end-to-end testing library for Mattermost web, desktop and plugin applications using Playwright",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/mattermost/mattermost.git"
|
||||
},
|
||||
"author": "mattermost",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/mattermost/mattermost/issues"
|
||||
},
|
||||
"homepage": "https://github.com/mattermost/mattermost/tree/master/e2e-tests/playwright/lib#readme",
|
||||
"type": "commonjs",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"keywords": [
|
||||
"mattermost",
|
||||
"e2e",
|
||||
"playwright",
|
||||
"test-automation"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "rollup -c --bundleConfigAsCjs",
|
||||
"build:watch": "npm run build -- --watch",
|
||||
"build-tsc": "tsc --build --verbose",
|
||||
"build-tsc:watch": "tsc --watch --preserveWatchOutput",
|
||||
"clean": "rm -rf dist node_modules *.tsbuildinfo",
|
||||
"tsc": "tsc -b"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@axe-core/playwright": "4.10.1",
|
||||
"@mattermost/client": "file:../../../webapp/platform/client",
|
||||
"@mattermost/types": "file:../../../webapp/platform/types",
|
||||
"@percy/cli": "1.30.7",
|
||||
"@percy/playwright": "1.0.7",
|
||||
"async-wait-until": "2.0.23",
|
||||
"axe-core": "4.10.3",
|
||||
"deepmerge": "4.3.1",
|
||||
"dotenv": "16.4.7",
|
||||
"mime-types": "3.0.1",
|
||||
"uuid": "11.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-typescript": "12.1.2",
|
||||
"@types/mime-types": "2.1.4",
|
||||
"@types/node": "22.13.14",
|
||||
"@types/react": "19.0.12",
|
||||
"rollup": "4.38.0",
|
||||
"rollup-plugin-copy": "3.5.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@playwright/test": "1.51.1"
|
||||
}
|
||||
}
|
||||
Ссылка в новой задаче
Block a user