* Default to new room list and enforce in config for app and develop * Update jest tests * Update LandmarkNavigation and e2e test * Update viewRoomByName helper * lint * Update Add -> New Room flow Keep legacy viewRoomByName until we delete the olds tests. * Update e2e test to use Add -> Start Chat * Update screenshots * Fix viewRoomByName, can't use option as it contains more that just the room name. Using title which should be exact. * Fix knocking tests * fix layout.spec.ts and pstn.spec * timeline snapshots * Fix spotlight.spec * TAC spaces and media preview settings * Fix more screenshots and mark as unread tests * Fix leftpanel test * Bugfix for knocking use case. We should check EffectiveMembership when remove rooms from the new room list, so that knocking is handled * Fix openCreateRoomDialog to new room list specifics to fix create-knock-room.spec.ts * lint * Fix Landmark navigation from left panel search to the next landmark * lint * Update window-12px-linux.png * Update apps-drawer-linux.png * Update sliding sync e2e tests * Update some screenshots * Revert change to the space create screenshot * Use actual screenshot as focused elements are different when generated locally * Fix test selectors * Morfe test screenshot selector / update * Add test for landmark navigation * Replace screenshots * Fix another test that just got added an hour ago * Not sure why this was changed, doesn't seem necessary * Disambiguate selector * Another screenshot that's now changed in width by 1px * Revert changes to config files It's being turned on by default so these are unnecessary * Convert read.unread assertions to new room list removing support for checking for activity in assertUnread which was unused. * Update room list order tests that feel a bit like they ought to be in room-list rather than read-receipts but whatever * Fix room titles in read receipts test --------- Co-authored-by: David Baker <dbkr@users.noreply.github.com>
56 lines
1.8 KiB
TypeScript
56 lines
1.8 KiB
TypeScript
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2023 The Matrix.org Foundation C.I.C.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
/* See readme.md for tips on writing these tests. */
|
|
|
|
import { test } from ".";
|
|
|
|
test.describe("Read receipts", { tag: "@mergequeue" }, () => {
|
|
test.describe("Room list order", () => {
|
|
test("Rooms with unread messages appear at the top of room list with default 'activity' ordering", async ({
|
|
roomAlpha: room1,
|
|
roomBeta: room2,
|
|
util,
|
|
msg,
|
|
page,
|
|
}) => {
|
|
await util.goTo(room2);
|
|
|
|
// Display the unread first room
|
|
await util.receiveMessages(room1, ["Msg1"]);
|
|
await page.reload();
|
|
|
|
// switch rooms so they can re-order in the list
|
|
await util.goTo(room1);
|
|
|
|
// Room 1 has an unread message and should be displayed first
|
|
// (as the default is to sort by activity)
|
|
await util.assertRoomListOrder([room1, room2]);
|
|
});
|
|
|
|
test("Rooms with unread threads appear at the top of room list with default 'activity' order", async ({
|
|
roomAlpha: room1,
|
|
roomBeta: room2,
|
|
util,
|
|
msg,
|
|
}) => {
|
|
await util.goTo(room2);
|
|
await util.receiveMessages(room1, ["Msg1"]);
|
|
await util.markAsRead(room1);
|
|
await util.assertRead(room1);
|
|
|
|
// Display the unread first room
|
|
await util.receiveMessages(room1, [msg.threadedOff("Msg1", "Resp1")]);
|
|
await util.saveAndReload();
|
|
|
|
// Room 1 has an unread message and should be displayed first
|
|
await util.assertRoomListOrder([room1, room2]);
|
|
});
|
|
});
|
|
});
|