Add tests with playwright for: - add peer modal on first access - add peer modal on empty peer list - test install buttons and instructions for Linux, Docker, macOS, Windows and Android - check default ACL The tests are using a modified version of the getting started scripts to run a local environment of management services and run the dashboard from the current version Todo: - run tests before create docker container - add more tests
15 lines
439 B
TypeScript
15 lines
439 B
TypeScript
import { Page, test} from "@playwright/test";
|
|
|
|
export class TopMenu {
|
|
private readonly accessControlButton = this.page.getByTestId('access-control-page')
|
|
|
|
constructor(private readonly page: Page) {}
|
|
|
|
async clickOnAccessControlOnTopMenu() {
|
|
await test.step('Click on Access Control page on a top menu', async () => {
|
|
await this.accessControlButton.click();
|
|
})
|
|
}
|
|
}
|
|
|
|
export default TopMenu; |