Restore "[ACS-8113] UX bug - Checkbox selections checked state should be Hyland blue not green- edit summary (#3908)" (#3919)

* [ACS-8113] UX bug - Checkbox selections checked state should be Hyland blue not green- edit summary (#3908)

* [ACS-8113] dataTable checkbox e2e fix 1

---------

Co-authored-by: jacekpluta <73617938+jacekpluta@users.noreply.github.com>
Co-authored-by: datguychen <adam.swiderski@hyland.com>
This commit is contained in:
Pablo Martinez
2024-08-02 12:03:00 +02:00
committed by GitHub
parent 2fd2e483d6
commit 4029213abe
21 changed files with 209 additions and 20 deletions

View File

@@ -242,6 +242,7 @@ export class DataTableComponent extends BaseComponent {
const isSelected = await this.isRowSelected(name);
if (!isSelected) {
let row = this.getRowByName(name);
await row.hover();
await row.locator('.mat-mdc-checkbox').click();
await row.locator('.mat-mdc-checkbox-checked').waitFor({ state: 'attached' });
}
@@ -250,6 +251,7 @@ export class DataTableComponent extends BaseComponent {
async selectMultiItem(...names: string[]): Promise<void> {
for (const name of names) {
let row = this.getRowByName(name);
await row.hover();
await row.locator('.mat-mdc-checkbox').click();
await row.locator('.mat-mdc-checkbox-checked').waitFor({ state: 'attached' });
await this.page.waitForTimeout(1000);