Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toHaveText always getting passed even the value is incorrect #1716

Open
aramya1702 opened this issue Nov 29, 2024 · 1 comment
Open

toHaveText always getting passed even the value is incorrect #1716

aramya1702 opened this issue Nov 29, 2024 · 1 comment
Labels

Comments

@aramya1702
Copy link

WebdirverIO version: 8.32
node js - 16.20.2
jawsmine framework

const invoiceStatus ='Yes';

await (await $(ag-grid-angular div.ag-center-cols-container div.ag-row-level-1[row-index="2"] div.ag-cell[aria-colindex="44"])).getText()
.then(status =>{
sustainablestatus = status;
});
console.log(sustainablestatus) //return "No" from application
expect(sustainablestatus).toHaveText(invoiceStatus);

@christian-bromann
Copy link
Member

Mind providing a reproducible example please? Also see antfu.me/posts/why-reproductions-are-required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants