Playwright/E2E: Upgrade to playwright@1.43 and its dependencies (#26833)
* chore: upgrade to playwright@1.43 and its dependencies * fix lint * attempt to fix lint error on console
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
22d72b6df8
Коммит
20825101a4
@@ -81,7 +81,7 @@ const onPremServerConfig = (): Partial<TestAdminConfig> => {
|
||||
};
|
||||
|
||||
// Should be based only from the generated default config from ./server via "make config-reset"
|
||||
// Based on v9.7 server
|
||||
// Based on v9.8 server
|
||||
const defaultServerConfig: AdminConfig = {
|
||||
ServiceSettings: {
|
||||
SiteURL: '',
|
||||
@@ -195,7 +195,7 @@ const defaultServerConfig: AdminConfig = {
|
||||
AllowSyncedDrafts: true,
|
||||
UniqueEmojiReactionLimitPerPost: 50,
|
||||
RefreshPostStatsRunTime: '00:00',
|
||||
MaximumPayloadSizeBytes: 100000,
|
||||
MaximumPayloadSizeBytes: 300000,
|
||||
},
|
||||
TeamSettings: {
|
||||
SiteName: 'Mattermost',
|
||||
@@ -319,6 +319,7 @@ const defaultServerConfig: AdminConfig = {
|
||||
AmazonS3SSE: false,
|
||||
AmazonS3Trace: false,
|
||||
AmazonS3RequestTimeoutMilliseconds: 30000,
|
||||
AmazonS3UploadPartSizeBytes: 5242880,
|
||||
DedicatedExportStore: false,
|
||||
ExportDriverName: 'local',
|
||||
ExportDirectory: './data/',
|
||||
@@ -334,6 +335,7 @@ const defaultServerConfig: AdminConfig = {
|
||||
ExportAmazonS3Trace: false,
|
||||
ExportAmazonS3RequestTimeoutMilliseconds: 30000,
|
||||
ExportAmazonS3PresignExpiresSeconds: 21600,
|
||||
ExportAmazonS3UploadPartSizeBytes: 104857600,
|
||||
},
|
||||
EmailSettings: {
|
||||
EnableSignUpWithEmail: true,
|
||||
@@ -724,7 +726,9 @@ const defaultServerConfig: AdminConfig = {
|
||||
ConsumePostHook: false,
|
||||
CloudAnnualRenewals: false,
|
||||
CloudDedicatedExportUI: false,
|
||||
ChannelBookmarks: false,
|
||||
WebSocketEventScope: false,
|
||||
NotificationMonitoring: true,
|
||||
},
|
||||
ImportSettings: {
|
||||
Directory: './import',
|
||||
|
||||
@@ -15,6 +15,7 @@ export default class PostDotMenu {
|
||||
readonly removeFromSavedMenuItem;
|
||||
readonly pinToChannelMenuItem;
|
||||
readonly unpinFromChannelMenuItem;
|
||||
readonly moveThreadMenuItem;
|
||||
readonly copyLinkMenuItem;
|
||||
readonly editMenuItem;
|
||||
readonly copyTextMenuItem;
|
||||
@@ -34,6 +35,7 @@ export default class PostDotMenu {
|
||||
this.removeFromSavedMenuItem = getMenuItem('Remove from Saved');
|
||||
this.pinToChannelMenuItem = getMenuItem('Pin to Channel');
|
||||
this.unpinFromChannelMenuItem = getMenuItem('Unpin from Channel');
|
||||
this.moveThreadMenuItem = getMenuItem('Move Thread');
|
||||
this.copyLinkMenuItem = getMenuItem('Copy Link');
|
||||
this.editMenuItem = getMenuItem('Edit');
|
||||
this.copyTextMenuItem = getMenuItem('Copy Text');
|
||||
|
||||
@@ -11,7 +11,7 @@ export default class NotificationsSettings {
|
||||
|
||||
constructor(container: Locator) {
|
||||
this.container = container;
|
||||
this.keysWithHighlightDesc = container.locator('#keysWithHighlightDesc');
|
||||
this.keysWithHighlightDesc = container.locator('#keywordsAndHighlightDesc');
|
||||
}
|
||||
|
||||
async toBeVisible() {
|
||||
|
||||
@@ -8,16 +8,14 @@ import {TestArgs} from '@e2e-types';
|
||||
|
||||
export default async function snapshotWithPercy(name: string, testArgs: TestArgs) {
|
||||
if (testArgs.browserName === 'chromium' && testConfig.percyEnabled && testArgs.viewport) {
|
||||
if (!testConfig.percyToken) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Error: Token is missing! Please set using: "export PERCY_TOKEN=<change_me>"');
|
||||
}
|
||||
|
||||
const {page, viewport} = testArgs;
|
||||
|
||||
// Ignore since percy is using Playwright.Page
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
await percySnapshot(page, name, {widths: [viewport.width], minHeight: viewport.height});
|
||||
try {
|
||||
await percySnapshot(page, name, {widths: [viewport.width], minHeight: viewport.height});
|
||||
} catch (error) {
|
||||
// log an error for debugging
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`${error}\nIn addition, check if token is properly set by "export PERCY_TOKEN=<change_me>"`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user