Add more tags

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-12-03 17:20:34 +00:00
parent cb59b2dbd2
commit 2cbf931330
No known key found for this signature in database
GPG key ID: A2B008A5F49F5D0D

View file

@ -832,7 +832,7 @@ test.describe("Timeline", () => {
}, },
); );
test("should render a fully opaque textual event", async ({ page, app, room }) => { test("should render a fully opaque textual event", { tag: "@screenshot" }, async ({ page, app, room }) => {
const stringToSearch = "Message"; // Same with string sent with sendEvent() const stringToSearch = "Message"; // Same with string sent with sendEvent()
await sendEvent(app.client, room.roomId); await sendEvent(app.client, room.roomId);
@ -1213,7 +1213,7 @@ test.describe("Timeline", () => {
); );
} }
test("should render images in the timeline", async ({ page, app, room, context }) => { test("should render images in the timeline", { tag: "@screenshot" }, async ({ page, app, room, context }) => {
await testImageRendering(page, app, room); await testImageRendering(page, app, room);
}); });
@ -1225,7 +1225,10 @@ test.describe("Timeline", () => {
// In practice, this means this test will *always* succeed because it ends up relying on fallback behaviour tested // In practice, this means this test will *always* succeed because it ends up relying on fallback behaviour tested
// above (unless of course the above tests are also broken). // above (unless of course the above tests are also broken).
test.describe("MSC3916 - Authenticated Media", () => { test.describe("MSC3916 - Authenticated Media", () => {
test("should render authenticated images in the timeline", async ({ page, app, room, context }) => { test(
"should render authenticated images in the timeline",
{ tag: "@screenshot" },
async ({ page, app, room, context }) => {
// Note: we have to use `context` instead of `page` for routing, otherwise we'll miss Service Worker events. // Note: we have to use `context` instead of `page` for routing, otherwise we'll miss Service Worker events.
// See https://playwright.dev/docs/service-workers-experimental#network-events-and-routing // See https://playwright.dev/docs/service-workers-experimental#network-events-and-routing
@ -1268,7 +1271,8 @@ test.describe("Timeline", () => {
// We check the same screenshot because there should be no user-visible impact to using authentication. // We check the same screenshot because there should be no user-visible impact to using authentication.
await testImageRendering(page, app, room); await testImageRendering(page, app, room);
}); },
);
}); });
}); });
}); });