MM-63820 chore(e2e): update dependencies and docs (#30807)
* chore(e2e): update dependencies and docs * update the use of postMessage, expose 8065 on test server and fix flakiness on profile popover
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
de46d798e4
Коммит
d631974e88
@@ -94,11 +94,20 @@ async function printClientInfo(client: Client4) {
|
||||
- TelemetryId = ${config.TelemetryId}
|
||||
- ServiceEnvironment = ${config.ServiceEnvironment}`);
|
||||
|
||||
const {LogSettings, ServiceSettings} = await client.getConfig();
|
||||
const {LogSettings, ServiceSettings, FeatureFlags} = await client.getConfig();
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`Notable Server Config:
|
||||
- ServiceSettings.EnableSecurityFixAlert = ${ServiceSettings?.EnableSecurityFixAlert}
|
||||
- LogSettings.EnableDiagnostics = ${LogSettings?.EnableDiagnostics}`);
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('Feature Flags:');
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(
|
||||
Object.entries(FeatureFlags)
|
||||
.map(([key, value]) => ` - ${key} = ${value}`)
|
||||
.join('\n'),
|
||||
);
|
||||
}
|
||||
|
||||
async function printPluginDetails(client: Client4) {
|
||||
|
||||
@@ -277,6 +277,7 @@ const defaultServerConfig: AdminConfig = {
|
||||
FileCompress: false,
|
||||
FileMaxQueueSize: 1000,
|
||||
AdvancedLoggingJSON: {},
|
||||
Certificate: '',
|
||||
},
|
||||
NotificationLogSettings: {
|
||||
EnableConsole: true,
|
||||
@@ -783,4 +784,8 @@ const defaultServerConfig: AdminConfig = {
|
||||
DisableSharedChannelsStatusSync: false,
|
||||
MaxPostsPerSync: 50,
|
||||
},
|
||||
AccessControlSettings: {
|
||||
EnableAttributeBasedAccessControl: false,
|
||||
EnableChannelScopeAccessControl: false,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -50,6 +50,10 @@ export default class ChannelsCenterView {
|
||||
await this.postCreate.toBeVisible();
|
||||
}
|
||||
|
||||
async postMessage(message: string, files?: string[]) {
|
||||
await this.postCreate.postMessage(message, files);
|
||||
}
|
||||
|
||||
/**
|
||||
* Click on "See all scheduled messages"
|
||||
*/
|
||||
|
||||
@@ -45,6 +45,10 @@ export default class ChannelsSidebarRight {
|
||||
await expect(this.container).toBeVisible();
|
||||
}
|
||||
|
||||
async postMessage(message: string) {
|
||||
await this.postCreate.postMessage(message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the RHS post by post id
|
||||
* @param postId Just the ID without the prefix
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import {expect, Page} from '@playwright/test';
|
||||
|
||||
import {components} from '@/ui/components';
|
||||
import {ChannelsPost, components} from '@/ui/components';
|
||||
|
||||
export default class ChannelsPage {
|
||||
readonly channels = 'Channels';
|
||||
@@ -89,9 +89,10 @@ export default class ChannelsPage {
|
||||
/**
|
||||
* `postMessage` posts a message in the current channel
|
||||
* @param message Message to post
|
||||
* @param files Files to attach to the message
|
||||
*/
|
||||
async postMessage(message: string) {
|
||||
await this.centerView.postCreate.postMessage(message);
|
||||
async postMessage(message: string, files?: string[]) {
|
||||
await this.centerView.postMessage(message, files);
|
||||
}
|
||||
|
||||
async openUserAccountMenu() {
|
||||
@@ -106,4 +107,16 @@ export default class ChannelsPage {
|
||||
await expect(this.profileModal.container).toBeVisible();
|
||||
return this.profileModal;
|
||||
}
|
||||
|
||||
async openProfilePopover(post: ChannelsPost) {
|
||||
// Find and click the post's user avatar to open the profile popover
|
||||
await post.hover();
|
||||
await post.profileIcon.click();
|
||||
|
||||
// Wait for the profile popover to be visible
|
||||
const popover = this.userProfilePopover;
|
||||
await expect(popover.container).toBeVisible();
|
||||
|
||||
return popover;
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user