bump playwright lib to 10.8.0, update dependencies and update snapshots (#30662)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4d093a7795
Коммит
cf68cfdf4b
@@ -34,7 +34,7 @@ npm run test -- login --project=chrome
|
|||||||
npm run test
|
npm run test
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 3. Inspect test results at `/test-results` folder when something fails unexpectedly.
|
#### 3. Inspect test results at `/results/output` folder when something fails unexpectedly.
|
||||||
|
|
||||||
## Updating screenshots is done strictly via Playwright's docker container for consistency
|
## Updating screenshots is done strictly via Playwright's docker container for consistency
|
||||||
|
|
||||||
@@ -51,22 +51,22 @@ docker run -it --rm -v "$(pwd):/mattermost/" --ipc=host mcr.microsoft.com/playwr
|
|||||||
```
|
```
|
||||||
export PW_BASE_URL=http://host.docker.internal:8065
|
export PW_BASE_URL=http://host.docker.internal:8065
|
||||||
export PW_HEADLESS=true
|
export PW_HEADLESS=true
|
||||||
cd mattermost
|
cd mattermost/e2e-tests/playwright
|
||||||
|
|
||||||
# Install npm packages. Use "npm ci" to match the automated environment
|
# Install npm packages. Use "npm ci" to match the automated environment
|
||||||
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm ci
|
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm ci
|
||||||
|
|
||||||
# Run specific test. See https://playwright.dev/docs/test-cli.
|
# Run specific test. See https://playwright.dev/docs/test-cli.
|
||||||
npm run test -- -- login --project=chrome
|
npm run test -- login --project=chrome
|
||||||
|
|
||||||
# Or run all tests
|
# Or run all tests
|
||||||
npm run test
|
npm run test
|
||||||
|
|
||||||
# Run visual tests
|
# Run visual tests
|
||||||
npm run test -- -- visual
|
npm run test -- visual
|
||||||
|
|
||||||
# Update snapshots of visual tests
|
# Update snapshots of visual tests
|
||||||
npm run test -- -- visual --update-snapshots
|
npm run test -- visual --update-snapshots
|
||||||
```
|
```
|
||||||
|
|
||||||
## Page/Component Object Model
|
## Page/Component Object Model
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mattermost/playwright-lib",
|
"name": "@mattermost/playwright-lib",
|
||||||
"version": "10.7.0",
|
"version": "10.8.0",
|
||||||
"description": "A comprehensive end-to-end testing library for Mattermost web, desktop and plugin applications using Playwright",
|
"description": "A comprehensive end-to-end testing library for Mattermost web, desktop and plugin applications using Playwright",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -45,9 +45,9 @@
|
|||||||
"@axe-core/playwright": "4.10.1",
|
"@axe-core/playwright": "4.10.1",
|
||||||
"@mattermost/client": "file:../../../webapp/platform/client",
|
"@mattermost/client": "file:../../../webapp/platform/client",
|
||||||
"@mattermost/types": "file:../../../webapp/platform/types",
|
"@mattermost/types": "file:../../../webapp/platform/types",
|
||||||
"@percy/cli": "1.30.7",
|
"@percy/cli": "1.30.9",
|
||||||
"@percy/playwright": "1.0.7",
|
"@percy/playwright": "1.0.7",
|
||||||
"async-wait-until": "2.0.23",
|
"async-wait-until": "2.0.27",
|
||||||
"axe-core": "4.10.3",
|
"axe-core": "4.10.3",
|
||||||
"deepmerge": "4.3.1",
|
"deepmerge": "4.3.1",
|
||||||
"dotenv": "16.4.7",
|
"dotenv": "16.4.7",
|
||||||
@@ -57,9 +57,9 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-typescript": "12.1.2",
|
"@rollup/plugin-typescript": "12.1.2",
|
||||||
"@types/mime-types": "2.1.4",
|
"@types/mime-types": "2.1.4",
|
||||||
"@types/node": "22.13.14",
|
"@types/node": "22.14.0",
|
||||||
"@types/react": "19.0.12",
|
"@types/react": "19.1.0",
|
||||||
"rollup": "4.38.0",
|
"rollup": "4.39.0",
|
||||||
"rollup-plugin-copy": "3.5.0"
|
"rollup-plugin-copy": "3.5.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|||||||
@@ -626,6 +626,7 @@ const defaultServerConfig: AdminConfig = {
|
|||||||
AggregatePostsAfterDays: 365,
|
AggregatePostsAfterDays: 365,
|
||||||
PostsAggregatorJobStartTime: '03:00',
|
PostsAggregatorJobStartTime: '03:00',
|
||||||
IndexPrefix: '',
|
IndexPrefix: '',
|
||||||
|
GlobalSearchPrefix: '',
|
||||||
LiveIndexingBatchSize: 10,
|
LiveIndexingBatchSize: 10,
|
||||||
BatchSize: 10000,
|
BatchSize: 10000,
|
||||||
RequestTimeoutSeconds: 30,
|
RequestTimeoutSeconds: 30,
|
||||||
|
|||||||
550
e2e-tests/playwright/package-lock.json
сгенерированный
550
e2e-tests/playwright/package-lock.json
сгенерированный
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
@@ -31,11 +31,11 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "8.29.0",
|
"@typescript-eslint/eslint-plugin": "8.29.0",
|
||||||
"eslint": "9.23.0",
|
"eslint": "9.24.0",
|
||||||
"eslint-import-resolver-typescript": "4.3.1",
|
"eslint-import-resolver-typescript": "4.3.2",
|
||||||
"eslint-plugin-header": "3.1.1",
|
"eslint-plugin-header": "3.1.1",
|
||||||
"eslint-plugin-import": "2.31.0",
|
"eslint-plugin-import": "2.31.0",
|
||||||
"prettier": "3.5.3",
|
"prettier": "3.5.3",
|
||||||
"typescript": "5.8.2"
|
"typescript": "5.8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Двоичный файл не отображается.
|
До Ширина: | Высота: | Размер: 68 KiB После Ширина: | Высота: | Размер: 68 KiB |
Двоичный файл не отображается.
|
До Ширина: | Высота: | Размер: 107 KiB После Ширина: | Высота: | Размер: 107 KiB |
Двоичный файл не отображается.
|
До Ширина: | Высота: | Размер: 86 KiB После Ширина: | Высота: | Размер: 86 KiB |
@@ -847,6 +847,7 @@ export type ElasticsearchSettings = {
|
|||||||
AggregatePostsAfterDays: number;
|
AggregatePostsAfterDays: number;
|
||||||
PostsAggregatorJobStartTime: string;
|
PostsAggregatorJobStartTime: string;
|
||||||
IndexPrefix: string;
|
IndexPrefix: string;
|
||||||
|
GlobalSearchPrefix: string;
|
||||||
LiveIndexingBatchSize: number;
|
LiveIndexingBatchSize: number;
|
||||||
BatchSize: number;
|
BatchSize: number;
|
||||||
RequestTimeoutSeconds: number;
|
RequestTimeoutSeconds: number;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user