1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

try and fix tests (again)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-04-29 13:39:54 -04:00
parent 3e3a28f499
commit 4fafcc19b6

View File

@ -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();
});