Playwright: Enable more tests in editing-messages.spec.ts
(#12001)
* Enable skipped test in `editing-messages.spec.ts` * Enable 2 more tests in `editing-messages.spec.ts` * Fix `A room where all threaded edits are read is still read after restart` integ test * Fix `A room where all threaded edits are read is still read after restart` integ test * WIP fix `A room where all threaded edits are read is still read after restart ` * WIP fix `A room where all threaded edits are read is still read after restart `
This commit is contained in:
parent
df11b90fd6
commit
d6d3585c30
1 changed files with 9 additions and 10 deletions
|
@ -287,20 +287,20 @@ test.describe("Read receipts", () => {
|
||||||
// Then is it still read
|
// Then is it still read
|
||||||
await util.assertRead(room2);
|
await util.assertRead(room2);
|
||||||
});
|
});
|
||||||
// XXX: Failing since migration to Playwright
|
test("A room where all threaded edits are read is still read after restart", async ({
|
||||||
test.skip("A room where all threaded edits are read is still read after restart", async ({
|
|
||||||
roomAlpha: room1,
|
roomAlpha: room1,
|
||||||
roomBeta: room2,
|
roomBeta: room2,
|
||||||
util,
|
util,
|
||||||
msg,
|
msg,
|
||||||
}) => {
|
}) => {
|
||||||
|
await util.goTo(room1);
|
||||||
|
await util.receiveMessages(room2, ["Msg1", msg.threadedOff("Msg1", "Resp1")]);
|
||||||
|
await util.assertUnread(room2, 2);
|
||||||
|
await util.receiveMessages(room2, [msg.editOf("Resp1", "Edit1")]);
|
||||||
|
await util.assertUnread(room2, 2);
|
||||||
|
|
||||||
await util.goTo(room2);
|
await util.goTo(room2);
|
||||||
await util.receiveMessages(room2, [
|
|
||||||
"Msg1",
|
|
||||||
msg.threadedOff("Msg1", "Resp1"),
|
|
||||||
msg.editOf("Resp1", "Edit1"),
|
|
||||||
]);
|
|
||||||
await util.assertUnread(room2, 1);
|
|
||||||
await util.openThread("Msg1");
|
await util.openThread("Msg1");
|
||||||
await util.assertRead(room2);
|
await util.assertRead(room2);
|
||||||
await util.goTo(room1); // Make sure we are looking at room1 after reload
|
await util.goTo(room1); // Make sure we are looking at room1 after reload
|
||||||
|
@ -309,8 +309,7 @@ test.describe("Read receipts", () => {
|
||||||
await util.saveAndReload();
|
await util.saveAndReload();
|
||||||
await util.assertRead(room2);
|
await util.assertRead(room2);
|
||||||
});
|
});
|
||||||
// XXX: fails because the room becomes unread after restart
|
test("A room where all threaded edits are marked as read is still read after restart", async ({
|
||||||
test.skip("A room where all threaded edits are marked as read is still read after restart", async ({
|
|
||||||
roomAlpha: room1,
|
roomAlpha: room1,
|
||||||
roomBeta: room2,
|
roomBeta: room2,
|
||||||
util,
|
util,
|
||||||
|
|
Loading…
Reference in a new issue