mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00: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", () => {
|
||||||
|
|||||||
Reference in new issue
Block a user