better fix

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-05-02 11:09:13 -04:00
1 parent fc57049b8f
commit c93b8ef7fc
2 files changed
+2 -2

No files matched your search

@@ -117,7 +117,7 @@ class NonInjectedConfirmDialog extends React.Component<ConfirmDialogProps & Depe
isOpen={isOpen} isOpen={isOpen}
onClose={this.onClose} onClose={this.onClose}
close={this.close} close={this.close}
data-testid="confirmation-dialog" {...(isOpen ? { "data-testid": "confirmation-dialog" } : {})}
> >
<div className="confirm-content"> <div className="confirm-content">
{icon} {message} {icon} {message}
@@ -170,7 +170,7 @@ describe("kube-object-menu", () => {
it("renders", async () => { it("renders", async () => {
await screen.findByTestId("confirmation-dialog"); await screen.findByTestId("confirmation-dialog");
await waitFor(() => expect(baseElement).toMatchSnapshot()); expect(baseElement).toMatchSnapshot();
}); });
describe("when remove is confirmed", () => { describe("when remove is confirmed", () => {