1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00

TAC: Close Release Announcement when TAC button is clicked (#12475)

* Close RA when TAC button is clicked

* Update snapshots
This commit is contained in:
Florian Duros
2024-05-02 10:14:50 +02:00
committed by GitHub
parent ad7f626e22
commit 6a3741b779
3 changed files with 136 additions and 29 deletions

View File

@@ -129,6 +129,16 @@ describe("ThreadsActivityCentre", () => {
expect(screen.queryByRole("tooltip")).toBeNull();
});
it("should close the release announcement when the TAC button is clicked", async () => {
// Enable release announcement
await SettingsStore.setValue("feature_release_announcement", null, SettingLevel.DEVICE, true);
renderTAC();
await userEvent.click(getTACButton());
expect(getTACMenu()).toBeInTheDocument();
expect(document.body).toMatchSnapshot();
});
it("should render the threads activity centre button and the display label", async () => {
renderTAC({ displayButtonLabel: true });
expect(getTACButton()).toBeInTheDocument();