Room list: add release announcement for sections (#33800)

* feat: add release announcement for sections

* test: update screenshot

* test: update tests

* test: add release annoucement utils to close it

* test: close release announcement in custom section tests

* test: update release announcement e2e test

* test: add more tests

* feat: update Ra labels

* test: update screenshot

* chore: remove stale screenshot
This commit is contained in:
Florian Duros
2026-06-19 12:06:58 +00:00
committed by GitHub
parent 43b9bc9458
commit 338c18df16
17 changed files with 185 additions and 47 deletions
+1
View File
@@ -13,6 +13,7 @@ import { routeConfigJson } from "./utils/config_json.js";
export * from "./utils/config_json.js";
export * from "./utils/context.js";
export * from "./utils/release_accouncement.js";
export * from "./utils/toasts.js";
export { populateLocalStorageWithCredentials } from "./fixtures/user.js";
@@ -0,0 +1,17 @@
/*
* Copyright 2026 Element Creations Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
* Please see LICENSE files in the repository root for full details.
*/
import { Page } from "playwright-core";
/**
* Close the release announcement with the given name.
* @param page The Playwright page instance.
* @param name The name of the release announcement dialog.
*/
export async function closeReleaseAnnouncement(page: Page, name: string): Promise<void> {
await page.getByRole("dialog", { name }).getByRole("button", { name: "OK" }).click();
}