MM-63669 E2E/Playwright: Move "e2e-tests/playwright/test" to "e2e-tests/playwright" folder (#30647)

* move "e2e-tests/playwright/test" to  "e2e-tests/playwright/test" and expose "ensurePluginsLoaded"

* add test setup, and expose ensurePluginsLoaded and ensureServerDeployment to pw
Этот коммит содержится в:
Saturnino Abril
2025-04-07 22:26:29 +08:00
коммит произвёл GitHub
родитель 62753a1481
Коммит a35a6d7a3a
80 изменённых файлов: 165 добавлений и 154 удалений

25
e2e-tests/playwright/specs/client/schema.ts Обычный файл
Просмотреть файл

@@ -0,0 +1,25 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {z} from 'zod';
const FileInfoSchema = z.object({
id: z.string(),
user_id: z.string(),
channel_id: z.string(),
create_at: z.number().int(),
update_at: z.number().int(),
delete_at: z.number().int(),
name: z.string(),
extension: z.string(),
size: z.number().int(),
mime_type: z.string(),
mini_preview: z.nullable(z.any()),
remote_id: z.string(),
archived: z.boolean(),
});
export const FileUploadResponseSchema = z.object({
file_infos: z.array(FileInfoSchema),
client_ids: z.array(z.string()),
});