[ACS-4586] Implemented Playwright Framework and add it to CI/CD (#2985)

This commit is contained in:
Kristian Dimitrov
2023-02-16 17:23:08 +00:00
committed by GitHub
parent 197ef8f0e3
commit d68deab2bd
47 changed files with 1413 additions and 117 deletions

View File

@@ -0,0 +1,21 @@
/*
* Copyright © 2005 - 2023 Alfresco Software, Ltd. All rights reserved.
*
* License rights for this program may be obtained from Alfresco Software, Ltd.
* pursuant to a written agreement and any use of this program without such an
* agreement is prohibited.
*/
import { Page } from '@playwright/test';
import { BaseComponent } from './base.component';
export class SnackBarComponent extends BaseComponent {
private static rootElement = 'simple-snack-bar';
public message = this.getChild(' > span');
public getByMessageLocator = (message: string) => this.getChild('span', { hasText: message });
constructor(page: Page, rootElement = SnackBarComponent.rootElement) {
super(page, rootElement);
}
}