Skip to content

toHaveText always getting passed even the value is incorrect #1716

@aramya1702

Description

@aramya1702

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);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions