2023-03-22 17:22:27 -04:00
|
|
|
{
|
2025-03-31 20:52:56 -04:00
|
|
|
"name": "mattermost-playwright",
|
2025-05-05 23:27:18 -04:00
|
|
|
"workspaces": [
|
|
|
|
|
"lib"
|
|
|
|
|
],
|
2025-03-31 20:52:56 -04:00
|
|
|
"scripts": {
|
2025-04-07 10:26:29 -04:00
|
|
|
"postinstall": "script/post_install.sh && npm run build",
|
|
|
|
|
"build": "npm run build --workspaces",
|
|
|
|
|
"build:watch": "npm run build:watch --workspaces",
|
|
|
|
|
"tsc": "tsc -b && npm run tsc --workspaces",
|
2025-03-31 20:52:56 -04:00
|
|
|
"lint": "eslint .",
|
2025-05-19 13:07:47 -04:00
|
|
|
"lint:test-docs": "node script/lint-test-docs.js",
|
2025-03-31 20:52:56 -04:00
|
|
|
"prettier": "prettier . --check",
|
|
|
|
|
"prettier:fix": "prettier --write .",
|
2025-05-19 13:07:47 -04:00
|
|
|
"check": "npm run lint && npm run prettier && npm run tsc && npm run lint:test-docs",
|
2025-04-15 22:32:27 -04:00
|
|
|
"test": "npm run build && cross-env PW_SNAPSHOT_ENABLE=true playwright test",
|
2025-05-22 11:21:23 -04:00
|
|
|
"test:ci": "npm run build && cross-env PW_SNAPSHOT_ENABLE=true playwright test --grep-invert @visual --project=chrome",
|
2025-09-26 09:23:04 -04:00
|
|
|
"test:a11y-update-snapshots": "npm run build && cross-env PW_SNAPSHOT_ENABLE=true playwright test specs/accessibility --project=chrome --grep @snapshots --update-snapshots --update-source-method=overwrite",
|
2025-09-19 10:51:03 -04:00
|
|
|
"test:visual": "npm run build && cross-env PW_SNAPSHOT_ENABLE=true playwright test --grep @visual",
|
2025-09-26 09:23:04 -04:00
|
|
|
"test:visual-update-snapshots": "npm run build && cross-env PW_SNAPSHOT_ENABLE=true playwright test specs/visual --grep @visual --update-snapshots",
|
|
|
|
|
"test:update-snapshots": "npm run build && cross-env PW_SNAPSHOT_ENABLE=true playwright test --project=chrome --grep @snapshots --update-snapshots --update-source-method=overwrite",
|
2025-04-15 22:32:27 -04:00
|
|
|
"test:slomo": "npm run build && cross-env PW_SNAPSHOT_ENABLE=true PW_SLOWMO=1000 playwright test",
|
2025-05-22 11:21:23 -04:00
|
|
|
"percy:docker": "npm run build && cross-env PW_PERCY_ENABLE=true PERCY_BROWSER_EXECUTABLE='/ms-playwright/chromium-1169/chrome-linux/chrome' percy exec -- playwright test specs/visual --grep @visual --project=chrome --project=ipad",
|
2025-04-15 22:32:27 -04:00
|
|
|
"codegen": "npm run build && cross-env playwright codegen $PW_BASE_URL",
|
|
|
|
|
"playwright-ui": "npm run build && cross-env playwright test --ui",
|
|
|
|
|
"show-report": "npm run build && npx playwright show-report results/reporter",
|
2025-04-07 10:26:29 -04:00
|
|
|
"clean": "rm -rf dist node_modules package-lock.json *.tsbuildinfo logs results storage_state test-results && npm run clean --workspaces"
|
2025-03-31 20:52:56 -04:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
2025-04-07 10:26:29 -04:00
|
|
|
"@mattermost/client": "file:../../webapp/platform/client",
|
|
|
|
|
"@mattermost/playwright-lib": "*",
|
2025-10-16 23:41:54 -04:00
|
|
|
"@mattermost/types": "file:../../webapp/platform/types"
|
2025-03-31 20:52:56 -04:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2026-01-08 21:48:19 -05:00
|
|
|
"@playwright/test": "1.57.0",
|
2025-10-16 23:41:54 -04:00
|
|
|
"@types/luxon": "3.7.1",
|
2026-01-08 21:48:19 -05:00
|
|
|
"@typescript-eslint/eslint-plugin": "8.50.0",
|
2025-10-16 23:41:54 -04:00
|
|
|
"cross-env": "10.1.0",
|
2026-01-08 21:48:19 -05:00
|
|
|
"dayjs": "1.11.19",
|
|
|
|
|
"eslint": "9.39.2",
|
2025-06-30 11:38:24 -04:00
|
|
|
"eslint-import-resolver-typescript": "4.4.4",
|
2025-03-31 20:52:56 -04:00
|
|
|
"eslint-plugin-header": "3.1.1",
|
2025-06-30 11:38:24 -04:00
|
|
|
"eslint-plugin-import": "2.32.0",
|
2026-01-08 21:48:19 -05:00
|
|
|
"glob": "13.0.0",
|
2025-10-16 23:41:54 -04:00
|
|
|
"luxon": "3.7.2",
|
2026-01-08 21:48:19 -05:00
|
|
|
"prettier": "3.7.4",
|
2025-10-16 23:41:54 -04:00
|
|
|
"typescript": "5.9.3",
|
2026-01-08 21:48:19 -05:00
|
|
|
"zod": "4.2.1"
|
2025-03-31 20:52:56 -04:00
|
|
|
}
|
2023-03-22 17:22:27 -04:00
|
|
|
}
|