Page objects to be used when testing AgnosUI-based applications with Playwright.
npm install -D @agnos-ui/page-objects
Here is a sample test using the RatingPO
:
import {expect, test} from '@playwright/test';
import {RatingPO} from '@agnos-ui/page-objects';
test(`Click on rating star`, async ({page}) => {
const ratingPO = new RatingPO(page);
await ratingPO.locatorRoot.waitFor();
await ratingPO.locatorStar(4).click();
});