Remove Cypress & Playwright in their entirety (#12145)
This commit is contained in:
parent
0b6d2f923d
commit
5983528a8d
78 changed files with 73 additions and 5812 deletions
|
@ -31,8 +31,8 @@ const AVATAR_SIZE = 30;
|
|||
const AVATAR_RESIZE_METHOD = "crop";
|
||||
|
||||
const ROOM_NAME = "Test room";
|
||||
const OLD_AVATAR = fs.readFileSync("cypress/fixtures/riot.png");
|
||||
const NEW_AVATAR = fs.readFileSync("cypress/fixtures/element.png");
|
||||
const OLD_AVATAR = fs.readFileSync("playwright/sample-files/riot.png");
|
||||
const NEW_AVATAR = fs.readFileSync("playwright/sample-files/element.png");
|
||||
const OLD_NAME = "Alan";
|
||||
const NEW_NAME = "Alan (away)";
|
||||
|
||||
|
@ -139,7 +139,7 @@ test.describe("Timeline", () => {
|
|||
),
|
||||
).toBeVisible();
|
||||
|
||||
// wait for the date separator to appear to have a stable percy snapshot
|
||||
// wait for the date separator to appear to have a stable screenshot
|
||||
await expect(page.locator(".mx_TimelineSeparator")).toHaveText("today");
|
||||
|
||||
await expect(page.locator(".mx_MainSplit")).toMatchScreenshot("configured-room-irc-layout.png");
|
||||
|
@ -684,7 +684,7 @@ test.describe("Timeline", () => {
|
|||
// Upload a file from the message composer
|
||||
await page
|
||||
.locator(".mx_MessageComposer_actions input[type='file']")
|
||||
.setInputFiles("cypress/fixtures/matrix-org-client-versions.json");
|
||||
.setInputFiles("playwright/sample-files/matrix-org-client-versions.json");
|
||||
|
||||
// Click "Upload" button
|
||||
await page.locator(".mx_Dialog").getByRole("button", { name: "Upload" }).click();
|
||||
|
@ -707,7 +707,7 @@ test.describe("Timeline", () => {
|
|||
"**/_matrix/media/v3/thumbnail/matrix.org/2022-08-16_yaiSVSRIsNFfxDnV?*",
|
||||
async (route) => {
|
||||
await route.fulfill({
|
||||
path: "cypress/fixtures/riot.png",
|
||||
path: "playwright/sample-files/riot.png",
|
||||
});
|
||||
},
|
||||
);
|
||||
|
@ -1048,7 +1048,7 @@ test.describe("Timeline", () => {
|
|||
.getByText(OLD_NAME + " created and configured the room."),
|
||||
).toBeVisible();
|
||||
|
||||
// Set the display name to "LONG_STRING 2" in order to avoid a warning in Percy tests from being triggered
|
||||
// Set the display name to "LONG_STRING 2" in order to avoid screenshot tests from failing
|
||||
// due to the generated random mxid being displayed inside the GELS summary.
|
||||
await app.client.setDisplayName(`${LONG_STRING} 2`);
|
||||
|
||||
|
@ -1089,7 +1089,7 @@ test.describe("Timeline", () => {
|
|||
|
||||
// Make sure the strings do not overflow on IRC layout
|
||||
await app.settings.setValue("layout", null, SettingLevel.DEVICE, Layout.IRC);
|
||||
// Scroll to the bottom to have Percy take a snapshot of the whole viewport
|
||||
// Scroll to the bottom to take a snapshot of the whole viewport
|
||||
await app.timeline.scrollToBottom();
|
||||
// Assert that both avatar in the introduction and the last message are visible at the same time
|
||||
await expect(page.locator(".mx_NewRoomIntro .mx_BaseAvatar")).toBeVisible();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue