Distinguish room state and timeline events when dealing with widgets #3307
Annotations
10 errors, 5 warnings, and 1 notice
Run Playwright tests:
playwright/e2e/widgets/stickers.spec.ts#L93
1) [Chrome] › widgets/stickers.spec.ts:147:9 › Stickers › should send a sticker to multiple rooms
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.mx_EventTile_sticker > a')
Expected pattern: /\/!TnMESTcwWkoAaelsgJ:localhost\//
Received: <element(s) not found>
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.mx_EventTile_sticker > a')
91 | const contentId = contentUri.split("/").slice(-1)[0];
92 | // Make sure it's in the right room
> 93 | await expect(page.locator(".mx_EventTile_sticker > a")).toHaveAttribute("href", new RegExp(`/${roomId}/`));
| ^
94 |
95 | // Make sure the image points at the sticker image. We will briefly show it
96 | // using the thumbnail URL, but as soon as that fails, we will switch to the
at expectTimelineSticker (/home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:93:61)
at /home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:158:15
|
Run Playwright tests:
playwright/e2e/widgets/stickers.spec.ts#L93
1) [Chrome] › widgets/stickers.spec.ts:147:9 › Stickers › should send a sticker to multiple rooms
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.mx_EventTile_sticker > a')
Expected pattern: /\/!ounXGUUjmYluMgeAHx:localhost\//
Received: <element(s) not found>
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.mx_EventTile_sticker > a')
91 | const contentId = contentUri.split("/").slice(-1)[0];
92 | // Make sure it's in the right room
> 93 | await expect(page.locator(".mx_EventTile_sticker > a")).toHaveAttribute("href", new RegExp(`/${roomId}/`));
| ^
94 |
95 | // Make sure the image points at the sticker image. We will briefly show it
96 | // using the thumbnail URL, but as soon as that fails, we will switch to the
at expectTimelineSticker (/home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:93:61)
at /home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:158:15
|
Run Playwright tests:
playwright/e2e/widgets/stickers.spec.ts#L93
1) [Chrome] › widgets/stickers.spec.ts:147:9 › Stickers › should send a sticker to multiple rooms
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.mx_EventTile_sticker > a')
Expected pattern: /\/!tVlrnnWwkMLVjeyJMv:localhost\//
Received: <element(s) not found>
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.mx_EventTile_sticker > a')
91 | const contentId = contentUri.split("/").slice(-1)[0];
92 | // Make sure it's in the right room
> 93 | await expect(page.locator(".mx_EventTile_sticker > a")).toHaveAttribute("href", new RegExp(`/${roomId}/`));
| ^
94 |
95 | // Make sure the image points at the sticker image. We will briefly show it
96 | // using the thumbnail URL, but as soon as that fails, we will switch to the
at expectTimelineSticker (/home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:93:61)
at /home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:158:15
|
Run Playwright tests:
playwright/e2e/widgets/stickers.spec.ts#L93
2) [Chrome] › widgets/stickers.spec.ts:169:9 › Stickers › should handle a sticker picker widget missing creatorUserId
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.mx_EventTile_sticker > a')
Expected pattern: /\/!pZvkREqgzcJwdmxxjc:localhost\//
Received: <element(s) not found>
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.mx_EventTile_sticker > a')
91 | const contentId = contentUri.split("/").slice(-1)[0];
92 | // Make sure it's in the right room
> 93 | await expect(page.locator(".mx_EventTile_sticker > a")).toHaveAttribute("href", new RegExp(`/${roomId}/`));
| ^
94 |
95 | // Make sure the image points at the sticker image. We will briefly show it
96 | // using the thumbnail URL, but as soon as that fails, we will switch to the
at expectTimelineSticker (/home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:93:61)
at /home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:185:15
|
Run Playwright tests:
playwright/e2e/widgets/stickers.spec.ts#L93
2) [Chrome] › widgets/stickers.spec.ts:169:9 › Stickers › should handle a sticker picker widget missing creatorUserId
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.mx_EventTile_sticker > a')
Expected pattern: /\/!RDEMzsvQlaDykdOxip:localhost\//
Received: <element(s) not found>
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.mx_EventTile_sticker > a')
91 | const contentId = contentUri.split("/").slice(-1)[0];
92 | // Make sure it's in the right room
> 93 | await expect(page.locator(".mx_EventTile_sticker > a")).toHaveAttribute("href", new RegExp(`/${roomId}/`));
| ^
94 |
95 | // Make sure the image points at the sticker image. We will briefly show it
96 | // using the thumbnail URL, but as soon as that fails, we will switch to the
at expectTimelineSticker (/home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:93:61)
at /home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:185:15
|
Run Playwright tests:
playwright/e2e/widgets/stickers.spec.ts#L93
2) [Chrome] › widgets/stickers.spec.ts:169:9 › Stickers › should handle a sticker picker widget missing creatorUserId
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.mx_EventTile_sticker > a')
Expected pattern: /\/!hJDJXHEsVrDvWCgiWq:localhost\//
Received: <element(s) not found>
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.mx_EventTile_sticker > a')
91 | const contentId = contentUri.split("/").slice(-1)[0];
92 | // Make sure it's in the right room
> 93 | await expect(page.locator(".mx_EventTile_sticker > a")).toHaveAttribute("href", new RegExp(`/${roomId}/`));
| ^
94 |
95 | // Make sure the image points at the sticker image. We will briefly show it
96 | // using the thumbnail URL, but as soon as that fails, we will switch to the
at expectTimelineSticker (/home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:93:61)
at /home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:185:15
|
Run Playwright tests:
playwright/e2e/widgets/stickers.spec.ts#L105
3) [Chrome] › widgets/stickers.spec.ts:188:9 › Stickers › should render invalid mimetype as a file
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('.mx_MFileBody_info_filename')
Expected string: "Test Sticker"
Received: <element(s) not found>
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('.mx_MFileBody_info_filename')
103 |
104 | async function expectFileTile(page: Page, roomId: string, contentUri: string) {
> 105 | await expect(page.locator(".mx_MFileBody_info_filename")).toContainText(STICKER_NAME);
| ^
106 | }
107 |
108 | async function setWidgetAccountData(
at expectFileTile (/home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:105:63)
at /home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:200:15
|
Run Playwright tests:
playwright/e2e/widgets/stickers.spec.ts#L105
3) [Chrome] › widgets/stickers.spec.ts:188:9 › Stickers › should render invalid mimetype as a file
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('.mx_MFileBody_info_filename')
Expected string: "Test Sticker"
Received: <element(s) not found>
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('.mx_MFileBody_info_filename')
103 |
104 | async function expectFileTile(page: Page, roomId: string, contentUri: string) {
> 105 | await expect(page.locator(".mx_MFileBody_info_filename")).toContainText(STICKER_NAME);
| ^
106 | }
107 |
108 | async function setWidgetAccountData(
at expectFileTile (/home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:105:63)
at /home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:200:15
|
Run Playwright tests:
playwright/e2e/widgets/stickers.spec.ts#L105
3) [Chrome] › widgets/stickers.spec.ts:188:9 › Stickers › should render invalid mimetype as a file
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('.mx_MFileBody_info_filename')
Expected string: "Test Sticker"
Received: <element(s) not found>
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('.mx_MFileBody_info_filename')
103 |
104 | async function expectFileTile(page: Page, roomId: string, contentUri: string) {
> 105 | await expect(page.locator(".mx_MFileBody_info_filename")).toContainText(STICKER_NAME);
| ^
106 | }
107 |
108 | async function setWidgetAccountData(
at expectFileTile (/home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:105:63)
at /home/runner/work/element-web/element-web/playwright/e2e/widgets/stickers.spec.ts:200:15
|
Run Playwright tests
Process completed with exit code 1.
|
Run Playwright tests:
[Chrome] › timeline/timeline.spec.ts#L1
[Chrome] › timeline/timeline.spec.ts took 2.7m
|
Run Playwright tests:
[Chrome] › threads/threads.spec.ts#L1
[Chrome] › threads/threads.spec.ts took 41.1s
|
Run Playwright tests:
[Chrome] › user-onboarding/user-onboarding-new.spec.ts#L1
[Chrome] › user-onboarding/user-onboarding-new.spec.ts took 34.7s
|
Run Playwright tests:
[Chrome] › widgets/widget-pip-close.spec.ts#L1
[Chrome] › widgets/widget-pip-close.spec.ts took 21.5s
|
Run Playwright tests:
[Chrome] › widgets/layout.spec.ts#L1
[Chrome] › widgets/layout.spec.ts took 19.0s
|
Run Playwright tests
3 failed
[Chrome] › widgets/stickers.spec.ts:147:9 › Stickers › should send a sticker to multiple rooms ─
[Chrome] › widgets/stickers.spec.ts:169:9 › Stickers › should handle a sticker picker widget missing creatorUserId
[Chrome] › widgets/stickers.spec.ts:188:9 › Stickers › should render invalid mimetype as a file
2 skipped
42 passed (7.5m)
|
Loading