Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e-tests/.ci/.e2erc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ mme2e_wait_image () {
IMAGE_NAME=${1?}
RETRIES_LEFT=${2:-1}
RETRIES_INTERVAL=${3:-10}
mme2e_wait_command_success "docker pull $IMAGE_NAME" "Waiting for docker image ${IMAGE_NAME} to be available" "$RETRIES_LEFT" "$RETRIES_INTERVAL"
mme2e_wait_command_success "docker pull --platform linux/amd64 $IMAGE_NAME" "Waiting for docker image ${IMAGE_NAME} to be available" "$RETRIES_LEFT" "$RETRIES_INTERVAL"
}
mme2e_is_token_in_list() {
local TOKEN=$1
Expand Down
1 change: 1 addition & 0 deletions e2e-tests/.ci/server.generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ generate_docker_compose_file() {
services:
server:
image: \${SERVER_IMAGE}
platform: linux/amd64
restart: always
env_file:
- "./.env.server"
Expand Down
8 changes: 8 additions & 0 deletions e2e-tests/playwright/lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ This library provides:
npm install @mattermost/playwright-lib
```

### Peer Dependencies

This library requires `@playwright/test` version 1.55.0 or higher:

```bash
npm install @playwright/test@^1.55.0
```

## Usage

Basic example of logging in and posting a message:
Expand Down
15 changes: 9 additions & 6 deletions e2e-tests/playwright/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mattermost/playwright-lib",
"version": "11.3.0",
"version": "11.4.0",
"description": "A comprehensive end-to-end testing library for Mattermost web, desktop and plugin applications using Playwright",
"repository": {
"type": "git",
Expand Down Expand Up @@ -45,23 +45,26 @@
"@axe-core/playwright": "4.11.0",
"@mattermost/client": "file:../../../webapp/platform/client",
"@mattermost/types": "file:../../../webapp/platform/types",
"@percy/cli": "1.31.5",
"@percy/cli": "1.31.8",
"@percy/playwright": "1.0.10",
"async-wait-until": "2.0.31",
"axe-core": "4.11.0",
"axe-core": "4.11.1",
"chalk": "4.1.2",
"deepmerge": "4.3.1",
"dotenv": "17.2.3",
"luxon": "3.7.2",
"mime-types": "3.0.2",
"uuid": "13.0.0"
},
"devDependencies": {
"@rollup/plugin-typescript": "12.3.0",
"@types/luxon": "3.7.1",
"@types/mime-types": "3.0.1",
"@types/node": "25.0.3",
"rollup": "4.53.5",
"@types/node": "25.0.9",
"rollup": "4.55.2",
"rollup-plugin-copy": "3.5.0"
},
"peerDependencies": {
"@playwright/test": "1.57.0"
"@playwright/test": ">=1.55.0"
}
}
15 changes: 0 additions & 15 deletions e2e-tests/playwright/lib/src/server/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,10 @@
// See LICENSE.txt for license information.

import {Client4} from '@mattermost/client';
import {AdminConfig} from '@mattermost/types/config';
import {UserProfile} from '@mattermost/types/users';

import {testConfig} from '@/test_config';

// Extend Client4 with methods used for testing
declare module '@mattermost/client' {
interface Client4 {
updateConfigX: (config: Partial<AdminConfig>) => Promise<AdminConfig>;
}
}

// updateConfigX merges the given config with the current config and updates it to the server
Client4.prototype.updateConfigX = async function (this: Client4, config: Partial<AdminConfig>) {
const currentConfig = await this.getConfig();
const newConfig = {...currentConfig, ...config};
return await this.updateConfig(newConfig);
};

// Variable to hold cache
const clients: Record<string, ClientCache> = {};

Expand Down
5 changes: 3 additions & 2 deletions e2e-tests/playwright/lib/src/server/default_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const defaultServerConfig: AdminConfig = {
PersistentNotificationIntervalMinutes: 5,
PersistentNotificationMaxCount: 6,
PersistentNotificationMaxRecipients: 5,
EnableBurnOnRead: false,
EnableBurnOnRead: true,
BurnOnReadDurationSeconds: 600,
BurnOnReadMaximumTimeToLiveSeconds: 604800,
BurnOnReadSchedulerFrequencySeconds: 600,
Expand Down Expand Up @@ -776,8 +776,9 @@ const defaultServerConfig: AdminConfig = {
EnableMattermostEntry: true,
MobileSSOCodeExchange: true,
AutoTranslation: false,
BurnOnRead: false,
BurnOnRead: true,
EnableAIPluginBridge: false,
EnableAIRecaps: false,
},
ImportSettings: {
Directory: './import',
Expand Down
Loading