From 850e3ced7ab79379d3321e4751b9941b40c8f6fe Mon Sep 17 00:00:00 2001 From: kildre Date: Tue, 19 Mar 2024 15:55:04 -0400 Subject: [PATCH] ui-card-260 # fixed issues with test and anchorEl --- ui/src/pages/home/app-card/app-card.test.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/src/pages/home/app-card/app-card.test.tsx b/ui/src/pages/home/app-card/app-card.test.tsx index 79c3581f..5d88a766 100644 --- a/ui/src/pages/home/app-card/app-card.test.tsx +++ b/ui/src/pages/home/app-card/app-card.test.tsx @@ -110,7 +110,7 @@ describe('AppCard', () => { const btn = baseElement.querySelectorAll( '.MuiList-root li.MuiButtonBase-root', - )[0] as HTMLAnchorElement; + )[0] as HTMLLIElement; await act(async () => { btn.click(); }); @@ -170,7 +170,7 @@ describe('AppCard', () => { const btn = baseElement.querySelectorAll( '.MuiList-root li.MuiButtonBase-root', - )[0] as HTMLAnchorElement; + )[0] as HTMLLIElement; await act(async () => { btn.click(); }); @@ -241,7 +241,7 @@ describe('AppCard', () => { const btn = baseElement.querySelectorAll( '.MuiList-root li.MuiButtonBase-root', - )[0] as HTMLAnchorElement; + )[0] as HTMLLIElement; await act(async () => { btn.click(); }); @@ -281,7 +281,7 @@ describe('AppCard', () => { const btn = baseElement.querySelectorAll( '.MuiList-root li.MuiButtonBase-root', - )[0] as HTMLAnchorElement; + )[0] as HTMLLIElement; await act(async () => { btn.click(); }); @@ -318,7 +318,7 @@ describe('AppCard', () => { const btn = baseElement.querySelectorAll( '.MuiList-root li.MuiButtonBase-root', - )[0] as HTMLAnchorElement; + )[0] as HTMLLIElement; await act(async () => { btn.click(); }); @@ -377,7 +377,7 @@ describe('AppCard', () => { const btn = baseElement.querySelectorAll( '.MuiList-root li.MuiButtonBase-root', - )[0] as HTMLAnchorElement; + )[0] as HTMLLIElement; await act(async () => { btn.click(); });