more stable way to assert the text (#33811)
fixes: #33810 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
268229dbe8
commit
98a6ddead0
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue