diff --git a/js/apps/account-ui/test/my-resources.spec.ts b/js/apps/account-ui/test/my-resources.spec.ts index 89ea19f9d2b9..3d9f206cd992 100644 --- a/js/apps/account-ui/test/my-resources.spec.ts +++ b/js/apps/account-ui/test/my-resources.spec.ts @@ -57,7 +57,7 @@ test.describe("My resources page", () => { await page.getByTestId("resources").click(); await page.getByTestId("sharedWithMe").click(); - const rowData = await page.getByTestId("row[0].name").allTextContents(); - expect(rowData).toEqual(["one"]); + const rowData = page.getByTestId("row[0].name"); + await expect(rowData).toHaveText("one"); }); });