Take the Threads Activity Centre out of labs (#12439)
* Take the TAC out of labs! Requires https://github.com/matrix-org/matrix-react-sdk/pull/12438 and ideally https://github.com/matrix-org/matrix-react-sdk/pull/12418 * i18n * Add test method That's needed now we we don't include threads in the notif count in the tests * One less labs setting * Update snapshot * Disable release announcement * Unused import * Fix some screenshots * Fix all the unread test cases now room unreads don't include threads * Fix more tests * Even more test fixes * Still more test fixes * Oh goodness, it's more test fixes * Fix selectors now there are 2 buttons called Threads * Disable some tests that aren't passing for reasons that don't appear releated to any of the TAC work, as per the comment. * Remove debugging * Oops, removed too much
This commit is contained in:
parent
02e7fb340e
commit
281916fd96
20 changed files with 341 additions and 200 deletions
|
@ -224,15 +224,15 @@ test.describe("Read receipts", () => {
|
|||
...msg.manyThreadedOff("Root3", many("T", 20)),
|
||||
]);
|
||||
await util.goTo(room2);
|
||||
await util.assertUnread(room2, 60);
|
||||
await util.assertRead(room2);
|
||||
await util.assertUnreadThread("Root1");
|
||||
await util.assertUnreadThread("Root2");
|
||||
await util.assertUnreadThread("Root3");
|
||||
await util.openThread("Root1");
|
||||
await util.assertUnread(room2, 40);
|
||||
await util.assertReadThread("Root1");
|
||||
await util.openThread("Root2");
|
||||
await util.assertUnread(room2, 20);
|
||||
await util.assertReadThread("Root2");
|
||||
await util.openThread("Root3");
|
||||
await util.assertRead(room2);
|
||||
await util.assertReadThread("Root3");
|
||||
|
||||
// When I restart and page up to load old thread roots
|
||||
|
@ -247,6 +247,7 @@ test.describe("Read receipts", () => {
|
|||
await util.assertReadThread("Root2");
|
||||
await util.assertReadThread("Root3");
|
||||
});
|
||||
|
||||
test("Paging up to find old threads that were never read keeps the room unread", async ({
|
||||
cryptoBackend,
|
||||
roomAlpha: room1,
|
||||
|
@ -268,7 +269,7 @@ test.describe("Read receipts", () => {
|
|||
...many("Msg", 100),
|
||||
]);
|
||||
await util.goTo(room2);
|
||||
await util.assertUnread(room2, 6);
|
||||
await util.assertRead(room2);
|
||||
await util.assertUnreadThread("Root1");
|
||||
await util.assertUnreadThread("Root2");
|
||||
await util.assertUnreadThread("Root3");
|
||||
|
@ -278,20 +279,21 @@ test.describe("Read receipts", () => {
|
|||
await util.goTo(room1);
|
||||
await util.saveAndReload();
|
||||
|
||||
// Then the room remembers it's unread
|
||||
// Then the room remembers it's read
|
||||
// TODO: I (andyb) think this will fall in an encrypted room
|
||||
await util.assertUnread(room2, 6);
|
||||
await util.assertRead(room2);
|
||||
|
||||
// And when I page up to load old thread roots
|
||||
await util.goTo(room2);
|
||||
await util.pageUp();
|
||||
|
||||
// Then the room remains unread
|
||||
await util.assertUnread(room2, 6);
|
||||
// Then the room remains read
|
||||
await util.assertRead(room2);
|
||||
await util.assertUnreadThread("Root1");
|
||||
await util.assertUnreadThread("Root2");
|
||||
await util.assertUnreadThread("Root3");
|
||||
});
|
||||
|
||||
test("Looking in thread view to find old threads that were never read makes the room unread", async ({
|
||||
roomAlpha: room1,
|
||||
roomBeta: room2,
|
||||
|
@ -310,7 +312,7 @@ test.describe("Read receipts", () => {
|
|||
...many("Msg", 100),
|
||||
]);
|
||||
await util.goTo(room2);
|
||||
await util.assertUnread(room2, 6);
|
||||
await util.assertRead(room2);
|
||||
await util.assertUnreadThread("Root1");
|
||||
await util.assertUnreadThread("Root2");
|
||||
await util.assertUnreadThread("Root3");
|
||||
|
@ -320,20 +322,21 @@ test.describe("Read receipts", () => {
|
|||
await util.goTo(room1);
|
||||
await util.saveAndReload();
|
||||
|
||||
// Then the room remembers it's unread
|
||||
// Then the room remembers it's read
|
||||
// TODO: I (andyb) think this will fall in an encrypted room
|
||||
await util.assertUnread(room2, 6);
|
||||
await util.assertRead(room2);
|
||||
|
||||
// And when I open the threads view
|
||||
await util.goTo(room2);
|
||||
await util.openThreadList();
|
||||
|
||||
// Then the room remains unread
|
||||
await util.assertUnread(room2, 6);
|
||||
// Then the room remains read
|
||||
await util.assertRead(room2);
|
||||
await util.assertUnreadThread("Root1");
|
||||
await util.assertUnreadThread("Root2");
|
||||
await util.assertUnreadThread("Root3");
|
||||
});
|
||||
|
||||
test("After marking room as read, paging up to find old threads that were never read leaves the room read", async ({
|
||||
cryptoBackend,
|
||||
roomAlpha: room1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue