try and fix tests (again)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-04-29 13:39:54 -04:00
1 parent 3e3a28f499
commit 4fafcc19b6
1 file changed
+3 -5
@@ -165,13 +165,11 @@ describe("kube-object-menu", () => {
describe("when removing kube object", () => {
beforeEach(async () => {
const menuItem = await screen.findByTestId("menu-action-delete");
userEvent.click(menuItem);
await screen.findByTestId("confirmation-dialog");
userEvent.click(await screen.findByTestId("menu-action-delete"));
});
it("renders", () => {
it("renders", async () => {
await screen.findByTestId("confirmation-dialog");
expect(baseElement).toMatchSnapshot();
});