mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-18 21:11:25 +02:00
Fix pinned message e2e flakes (#28268)
This commit is contained in:
parent
305d60f732
commit
83777a6c57
@ -197,8 +197,8 @@ export class Helpers {
|
|||||||
async assertEmptyPinnedMessagesList() {
|
async assertEmptyPinnedMessagesList() {
|
||||||
const rightPanel = this.getRightPanel();
|
const rightPanel = this.getRightPanel();
|
||||||
await expect(rightPanel).toMatchScreenshot(`pinned-messages-list-empty.png`, {
|
await expect(rightPanel).toMatchScreenshot(`pinned-messages-list-empty.png`, {
|
||||||
css: `
|
|
||||||
// hide the tooltip "Room information" to avoid flakiness
|
// hide the tooltip "Room information" to avoid flakiness
|
||||||
|
css: `
|
||||||
[data-floating-ui-portal] {
|
[data-floating-ui-portal] {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,8 @@ test.describe("Pinned messages", () => {
|
|||||||
const tile = util.getEventTile("Msg1");
|
const tile = util.getEventTile("Msg1");
|
||||||
await expect(tile).toMatchScreenshot("pinned-message-Msg1.png", {
|
await expect(tile).toMatchScreenshot("pinned-message-Msg1.png", {
|
||||||
mask: [tile.locator(".mx_MessageTimestamp")],
|
mask: [tile.locator(".mx_MessageTimestamp")],
|
||||||
css: `
|
|
||||||
// Hide the jump to bottom button in the timeline to avoid flakiness
|
// Hide the jump to bottom button in the timeline to avoid flakiness
|
||||||
|
css: `
|
||||||
.mx_JumpToBottomButton {
|
.mx_JumpToBottomButton {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user