Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Tests for AdvancedRoomSettingsTab #9994

Conversation

andybalaam
Copy link
Contributor

@andybalaam andybalaam commented Jan 26, 2023

This is prep for MSC3946.

Part of element-hq/element-web#24322


This change is marked as an internal change (Task), so will not be included in the changelog.

@andybalaam andybalaam requested a review from a team as a code owner January 26, 2023 13:21
@andybalaam andybalaam enabled auto-merge (squash) January 26, 2023 13:21
@andybalaam andybalaam added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Jan 26, 2023
@andybalaam andybalaam merged commit 32bd350 into matrix-org:develop Jan 27, 2023

it("should display room ID", () => {
const tab = renderTab();
tab.getByText(roomId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An expect is missing here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test fails if getByText fails, so I think this is OK? Is there something I'm missing?

mocked(room.getVersion).mockReturnValue("custom_room_version_1");

const tab = renderTab();
tab.getByText("custom_room_version_1");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An expect is missing here ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants