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",
|
2026-05-08 17:04:32 -04:00
|
|
|
"tsc": "npm run tsc --workspaces && tsc -b",
|
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",
|
2026-02-01 19:37:55 -05:00
|
|
|
"test:smoke": "npm run build && playwright test --grep @smoke --project=chrome --retries=1",
|
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",
|
2026-03-11 00:12:31 -04:00
|
|
|
"start:libretranslate-mock": "node mock_libre_translate.js",
|
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-04-15 05:43:52 -04:00
|
|
|
"@playwright/test": "1.59.1",
|
2025-10-16 23:41:54 -04:00
|
|
|
"@types/luxon": "3.7.1",
|
2026-04-15 05:43:52 -04:00
|
|
|
"@typescript-eslint/eslint-plugin": "8.58.1",
|
2025-10-16 23:41:54 -04:00
|
|
|
"cross-env": "10.1.0",
|
2026-04-15 05:43:52 -04:00
|
|
|
"dayjs": "1.11.20",
|
2026-01-08 21:48:19 -05:00
|
|
|
"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-04-15 05:43:52 -04:00
|
|
|
"glob": "13.0.6",
|
2025-10-16 23:41:54 -04:00
|
|
|
"luxon": "3.7.2",
|
2026-04-15 05:43:52 -04:00
|
|
|
"prettier": "3.8.2",
|
|
|
|
|
"typescript": "6.0.2",
|
2026-02-09 08:30:07 -05:00
|
|
|
"zod": "4.3.6"
|
2025-03-31 20:52:56 -04:00
|
|
|
}
|
2023-03-22 17:22:27 -04:00
|
|
|
}
|