mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-7160] Setup Playwright in ADF - Storybook testing (#7537)
* [AAE-7160] Setup Playwright in ADF - Storybook testing * New test cases for groups component. Reorganize the files * Add to package.json scripts - npm run playwright * Change amount of workers * Change workesr to 2
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright © 2005 - 2021 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 ListboxComponent extends BaseComponent {
|
||||
private static rootElement = 'div[role=listbox]';
|
||||
public allOptions = this.getChild('');
|
||||
public oneOption = this.getChild('span >> span');
|
||||
|
||||
constructor(page: Page) {
|
||||
super(page, ListboxComponent.rootElement);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user