Skip to content

Adds a callback to enforce guest users can only join knock rooms #425

Adds a callback to enforce guest users can only join knock rooms

Adds a callback to enforce guest users can only join knock rooms #425

Triggered via pull request October 3, 2024 09:16
Status Failure
Total duration 13m 7s
Artifacts 1

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 1 warning, and 1 notice
Build Python
Process completed with exit code 1.
[chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest: e2e/src/guestLogin.spec.ts#L1
1) [chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest ──────── Test timeout of 30000ms exceeded.
[chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest: e2e/src/pages/elementWebPage.ts#L108
1) [chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest ──────── Error: locator.click: Target page, context or browser has been closed Call log: - waiting for getByRole('tree', { name: 'Rooms' }).getByRole('treeitem', { name: /^My New Room( Unread messages\.)?/ }) at pages/elementWebPage.ts:108 106 | name: new RegExp(`^${name}( Unread messages\\.)?`), 107 | }) > 108 | .click(); | ^ 109 | 110 | await this.roomNameText.getByText(name).waitFor(); 111 | } at ElementWebPage.waitForRoom (/home/runner/work/element-web-modules/element-web-modules/e2e/src/pages/elementWebPage.ts:108:8) at /home/runner/work/element-web-modules/element-web-modules/e2e/src/guestLogin.spec.ts:59:31
[chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest: e2e/src/guestLogin.spec.ts#L1
1) [chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded.
[chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest: e2e/src/pages/elementWebPage.ts#L108
1) [chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Target page, context or browser has been closed Call log: - waiting for getByRole('tree', { name: 'Rooms' }).getByRole('treeitem', { name: /^My New Room( Unread messages\.)?/ }) at pages/elementWebPage.ts:108 106 | name: new RegExp(`^${name}( Unread messages\\.)?`), 107 | }) > 108 | .click(); | ^ 109 | 110 | await this.roomNameText.getByText(name).waitFor(); 111 | } at ElementWebPage.waitForRoom (/home/runner/work/element-web-modules/element-web-modules/e2e/src/pages/elementWebPage.ts:108:8) at /home/runner/work/element-web-modules/element-web-modules/e2e/src/guestLogin.spec.ts:59:31
[chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest: e2e/src/guestLogin.spec.ts#L1
1) [chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded.
[chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest: e2e/src/pages/loginFormPage.ts#L39
1) [chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.waitFor: Target page, context or browser has been closed Call log: - waiting for getByRole('progressbar') to be visible at pages/loginFormPage.ts:39 37 | await this.nameInput.fill(name); 38 | await Promise.all([ > 39 | this.loadingSpinner.waitFor(), | ^ 40 | this.continueButton.click(), 41 | ]); 42 | await expect(this.loadingSpinner).toBeHidden(); at LoginFormPage.continueAsGuest (/home/runner/work/element-web-modules/element-web-modules/e2e/src/pages/loginFormPage.ts:39:27) at /home/runner/work/element-web-modules/element-web-modules/e2e/src/guestLogin.spec.ts:57:5
[chromium] › guestLogin.spec.ts:101:7 › Guest Module › should always keep the guest suffix: e2e/src/guestLogin.spec.ts#L1
2) [chromium] › guestLogin.spec.ts:101:7 › Guest Module › should always keep the guest suffix ──── Test timeout of 30000ms exceeded.
[chromium] › guestLogin.spec.ts:101:7 › Guest Module › should always keep the guest suffix: e2e/src/pages/loginFormPage.ts#L39
2) [chromium] › guestLogin.spec.ts:101:7 › Guest Module › should always keep the guest suffix ──── Error: locator.waitFor: Target page, context or browser has been closed Call log: - waiting for getByRole('progressbar') to be visible at pages/loginFormPage.ts:39 37 | await this.nameInput.fill(name); 38 | await Promise.all([ > 39 | this.loadingSpinner.waitFor(), | ^ 40 | this.continueButton.click(), 41 | ]); 42 | await expect(this.loadingSpinner).toBeHidden(); at LoginFormPage.continueAsGuest (/home/runner/work/element-web-modules/element-web-modules/e2e/src/pages/loginFormPage.ts:39:27) at /home/runner/work/element-web-modules/element-web-modules/e2e/src/guestLogin.spec.ts:113:5
[chromium] › guestLogin.spec.ts:101:7 › Guest Module › should always keep the guest suffix: e2e/src/guestLogin.spec.ts#L1
2) [chromium] › guestLogin.spec.ts:101:7 › Guest Module › should always keep the guest suffix ──── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded.
[chromium] › guestLogin.spec.ts:101:7 › Guest Module › should always keep the guest suffix: e2e/src/pages/userSettingsPage.ts#L34
2) [chromium] › guestLogin.spec.ts:101:7 › Guest Module › should always keep the guest suffix ──── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Target page, context or browser has been closed Call log: - waiting for getByRole('navigation').getByRole('button', { name: 'User menu' }) at pages/userSettingsPage.ts:34 32 | 33 | async open() { > 34 | await this.userMenuButton.click(); | ^ 35 | 36 | const userMenu = this.page.getByRole('menu'); 37 | await userMenu.getByRole('menuitem', { name: 'All settings' }).click(); at UserSettingsPage.open (/home/runner/work/element-web-modules/element-web-modules/e2e/src/pages/userSettingsPage.ts:34:31) at ElementWebPage.openUserSettings (/home/runner/work/element-web-modules/element-web-modules/e2e/src/pages/elementWebPage.ts:283:28) at /home/runner/work/element-web-modules/element-web-modules/e2e/src/guestLogin.spec.ts:115:56
Slow Test: e2e/[chromium] › guestLogin.spec.ts#L1
e2e/[chromium] › guestLogin.spec.ts took 6.2m
🎭 Playwright Run Summary
4 failed [chromium] › guestLogin.spec.ts:45:7 › Guest Module › should join a meeting as a guest ───────── [chromium] › guestLogin.spec.ts:101:7 › Guest Module › should always keep the guest suffix ───── [chromium] › guestLogin.spec.ts:131:7 › Guest Module › should limit UI actions for the guest users [chromium] › guestLogin.spec.ts:158:7 › Guest Module › should deny home server actions for the guest user 6 passed (11.8m)

Artifacts

Produced during runtime
Name Size
playwright-report-chromium Expired
12.9 MB