Do not render tooltip when RA is displayed on TAC (#12472)

This commit is contained in:
Florian Duros 2024-05-01 22:39:08 +02:00 committed by GitHub
parent 5dc3ad546c
commit ad7f626e22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 2 deletions

View file

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