2024-01-11 19:49:20 +01:00
|
|
|
/*
|
2024-09-06 18:56:18 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
|
|
|
Copyright 2022, 2023 The Matrix.org Foundation C.I.C.
|
2024-01-11 19:49:20 +01:00
|
|
|
|
2024-09-06 18:56:18 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2024-01-11 19:49:20 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
import { test, expect } from "../../element-desktop-test";
|
|
|
|
|
2024-05-14 16:56:25 +02:00
|
|
|
declare global {
|
|
|
|
interface Window {
|
|
|
|
mxPlatformPeg: {
|
|
|
|
get(): {
|
|
|
|
getEventIndexingManager():
|
|
|
|
| {
|
|
|
|
supportsEventIndexing(): Promise<boolean>;
|
|
|
|
}
|
|
|
|
| undefined;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-11 19:49:20 +01:00
|
|
|
test.describe("App launch", () => {
|
2024-03-12 19:31:13 +01:00
|
|
|
test.slow();
|
2024-05-14 16:56:25 +02:00
|
|
|
test("should launch and render the welcome view successfully and support seshat", async ({ page }) => {
|
2024-01-11 19:49:20 +01:00
|
|
|
await page.locator("#matrixchat").waitFor();
|
|
|
|
await page.locator(".mx_Welcome").waitFor();
|
|
|
|
await expect(page).toHaveURL("vector://vector/webapp/#/welcome");
|
|
|
|
await expect(page).toHaveScreenshot();
|
2024-05-14 16:56:25 +02:00
|
|
|
|
|
|
|
const supported = await page.evaluate<boolean>(async () => {
|
|
|
|
const indexManager = window.mxPlatformPeg.get()?.getEventIndexingManager();
|
|
|
|
return await indexManager?.supportsEventIndexing();
|
|
|
|
});
|
|
|
|
|
|
|
|
expect(supported).toBe(true);
|
2024-01-11 19:49:20 +01:00
|
|
|
});
|
|
|
|
});
|