1
0
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:
Sebastian Malton 2022-05-02 11:09:13 -04:00
parent fc57049b8f
commit c93b8ef7fc
2 changed files with 2 additions and 2 deletions

View File

@ -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}

View File

@ -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", () => {