Closed as not planned
Description
This is related to ticket #513
with by getByText, the test passed, and attached is the screenshot.
const header = await this.screen.findByTestId('erow-GroupCode-0');
console.log(" header" + header)
const base = this.within(header).getByText("LINEHOLDER")
console.log("base value" + base);
const check = this.within(header).getByText("check")
console.log(" value " + check)
await expect(base).toContainText(text);
when I tried to test this findByText with await as suggested by #513, and i see the following error
const header = await this.screen.findByTestId('erow-GroupCode-0');
console.log(" header" + header)
const base = await this.within(header).findByText("LINEHOLDER")
console.log("base value" + base);
const check = await this.within(header).findByText("check")
console.log(" value " + check)
await expect(base).toContainText(text);
html structure:
Metadata
Metadata
Assignees
Labels
No labels