mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
[CORL 131] User Menu Dropdown (#2225)
* chore: simplify popover * feat: add dropdown component * feat: user menu * chore: add comment * chore: refactor i18n name * fix: linting * fix: test * fix: address review comments * fix: update snapshot
This commit is contained in:
@@ -46,6 +46,14 @@ it("logs out", async () => {
|
||||
.once()
|
||||
.returns({});
|
||||
|
||||
const userMenu = await waitForElement(() =>
|
||||
within(testRenderer.root).getByText(users[0].username, {
|
||||
selector: "button",
|
||||
})
|
||||
);
|
||||
|
||||
userMenu.props.onClick();
|
||||
|
||||
const signOutButton = await waitForElement(() =>
|
||||
within(testRenderer.root).getByText("Sign Out")
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user