Fix room settings roles tab getting confused if power level change fails (#31768)

* Fix room settings roles tab getting confused if power level change fails

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2026-01-19 12:08:42 +00:00
committed by GitHub
parent 3f021472c2
commit b8ad0b93db
4 changed files with 14 additions and 12 deletions

View File

@@ -233,6 +233,7 @@ describe("RolesRoomSettingsTab", () => {
return null;
});
mocked(room.currentState.mayClientSendStateEvent).mockReturnValue(true);
mocked(room.getMember).mockReturnValue({ powerLevel: 100 } as any);
const { container } = await renderTab();
const selector = container.querySelector(`[placeholder="${cli.getUserId()}"]`)!;