0.5.0 • Published 9 months ago
@agnos-ui/base-po v0.5.0
@agnos-ui/base-po
Base class to build page objects for end-to-end tests with Playwright.
Installation
npm install @agnos-ui/base-po
Usage
import {BasePO} from '@agnos-ui/base-po';
import {Locator} from '@playwright/test';
export const customComponentSelectors = {
rootComponent: '.custom',
otherContent: '.content-class',
};
export class CustomComponentPO extends BasePO {
selectors = {...customComponentSelectors};
override getComponentSelector(): string {
return this.selectors.rootComponent;
}
get locatorOtherContent(): Locator {
return this.locatorRoot.locator(this.selectors.otherContent);
}
}
Main features
Please refer to the documentation included in the source code.
0.5.0
9 months ago
0.5.0-next.0
9 months ago
0.4.4
10 months ago
0.4.3
10 months ago
0.4.2
10 months ago
0.4.1
12 months ago
0.4.0
12 months ago
0.4.0-next.0
1 year ago
0.4.0-next.1
1 year ago
0.3.0
1 year ago
0.3.1
1 year ago
0.2.0
1 year ago
0.0.1-alpha.11
1 year ago
0.1.0
1 year ago
0.1.1
1 year ago
0.0.1-alpha.10
1 year ago
0.0.1-alpha.9
1 year ago
0.0.1-alpha.8
1 year ago
0.0.1-alpha.7
1 year ago
0.0.1-alpha.6
1 year ago
0.0.1-alpha.5
2 years ago
0.0.1-alpha.4
2 years ago
0.0.1-alpha.3
2 years ago
0.0.1-alpha.2
2 years ago
0.0.1-alpha.1
2 years ago
0.0.1-alpha.0
2 years ago