mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
better fix
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
fc57049b8f
commit
c93b8ef7fc
@ -117,7 +117,7 @@ class NonInjectedConfirmDialog extends React.Component<ConfirmDialogProps & Depe
|
||||
isOpen={isOpen}
|
||||
onClose={this.onClose}
|
||||
close={this.close}
|
||||
data-testid="confirmation-dialog"
|
||||
{...(isOpen ? { "data-testid": "confirmation-dialog" } : {})}
|
||||
>
|
||||
<div className="confirm-content">
|
||||
{icon} {message}
|
||||
|
||||
@ -170,7 +170,7 @@ describe("kube-object-menu", () => {
|
||||
|
||||
it("renders", async () => {
|
||||
await screen.findByTestId("confirmation-dialog");
|
||||
await waitFor(() => expect(baseElement).toMatchSnapshot());
|
||||
expect(baseElement).toMatchSnapshot();
|
||||
});
|
||||
|
||||
describe("when remove is confirmed", () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user