Skip to content

Commit

Permalink
more stable way to assert the text (keycloak#33811)
Browse files Browse the repository at this point in the history
fixes: keycloak#33810

Signed-off-by: Erik Jan de Wit <[email protected]>
(cherry picked from commit 98a6dde)
  • Loading branch information
edewit committed Nov 15, 2024
1 parent c15bc7c commit c1618f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/apps/account-ui/test/my-resources.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
});

0 comments on commit c1618f9

Please sign in to comment.