Skip to content

Commit 3f559a0

Browse files
committed
test(e2e): fix audioplayer spec
1 parent f7b236d commit 3f559a0

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

apps/web/playwright/e2e/audio-player/audio-player.spec.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ test.describe("Audio player", { tag: ["@no-firefox", "@no-webkit"] }, () => {
4747
await expect(page.getByTestId("audio-player-name").last().filter({ hasText: sampleFile })).toBeVisible();
4848
};
4949

50-
const scrollToBottomOfTimeline = async (page: Page) => {
51-
await page.locator(".mx_RoomView_MessageList").click();
52-
await page.mouse.wheel(0, 100);
53-
};
54-
5550
/**
5651
* Take snapshots of mx_EventTile_last on each layout, outputting log for reference/debugging.
5752
* @param detail The snapshot name. Used for outputting logs too.
@@ -121,7 +116,6 @@ test.describe("Audio player", { tag: ["@no-firefox", "@no-webkit"] }, () => {
121116

122117
// Take a snapshot of mx_EventTile_last on IRC layout
123118
screenshotOptions.clip = await page.locator(".mx_EventTile_last").boundingBox();
124-
await scrollToBottomOfTimeline(page);
125119
await expect(page).toMatchScreenshot(`${detail.replaceAll(" ", "-")}-irc-layout.png`, screenshotOptions);
126120

127121
// Take a snapshot on modern/group layout
@@ -130,7 +124,6 @@ test.describe("Audio player", { tag: ["@no-firefox", "@no-webkit"] }, () => {
130124
await groupTile.locator(".mx_MessageTimestamp").click();
131125
await checkPlayerVisibility(groupTile);
132126
screenshotOptions.clip = await page.locator(".mx_EventTile_last").boundingBox();
133-
await scrollToBottomOfTimeline(page);
134127
await expect(page).toMatchScreenshot(`${detail.replaceAll(" ", "-")}-group-layout.png`, screenshotOptions);
135128

136129
// Take a snapshot on bubble layout
@@ -139,7 +132,6 @@ test.describe("Audio player", { tag: ["@no-firefox", "@no-webkit"] }, () => {
139132
await bubbleTile.locator(".mx_MessageTimestamp").click();
140133
await checkPlayerVisibility(bubbleTile);
141134
screenshotOptions.clip = await page.locator(".mx_EventTile_last").boundingBox();
142-
await scrollToBottomOfTimeline(page);
143135
await expect(page).toMatchScreenshot(`${detail.replaceAll(" ", "-")}-bubble-layout.png`, screenshotOptions);
144136
};
145137

0 commit comments

Comments
 (0)