Hi all, I’m trying to implement LocatorAssertions | Playwright this feature in a new codeceptJS helper method:
async isInViewPort(locator){
let page = await this.helpers['Playwright'].page;
const locatorElement = page.locator(locator);
await expect(locatorElement).toBeInViewport();
}
But I’m getting this error: Invalid Chai property: toBeInViewport
The “toBeInViewport” feature was added in v1.31, and I’m using “playwright”: “1.42.1”. Does anyone know how to implement this feature?