Skip to content

Commit

Permalink
ui-card-260 # fixed issues with test and anchorEl
Browse files Browse the repository at this point in the history
  • Loading branch information
kildre committed Mar 19, 2024
1 parent 8806227 commit 850e3ce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/src/pages/home/app-card/app-card.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down

0 comments on commit 850e3ce

Please sign in to comment.