You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
frontend: upgrade compound & simplify the confirmation modal implementation
This commit is contained in:
@@ -84,6 +84,16 @@ describe("<ConfirmationModal />", () => {
|
||||
|
||||
// no cancel button without onDeny
|
||||
expect(screen.queryByText("Cancel")).toBeFalsy();
|
||||
|
||||
// The dialog does not close on escape
|
||||
fireEvent.keyDown(screen.getByRole("alertdialog"), {
|
||||
key: "Escape",
|
||||
code: "Escape",
|
||||
keyCode: 27,
|
||||
});
|
||||
|
||||
// dialog still open
|
||||
expect(screen.queryByRole("alertdialog")).toBeTruthy();
|
||||
});
|
||||
|
||||
it("calls onConfirm on confirmation", () => {
|
||||
|
||||
Reference in New Issue
Block a user