Skip to content

Commit

Permalink
Fixes after PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
katarzynakita committed Jul 23, 2024
1 parent f64efd7 commit 43b6816
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@ export class MatMenuComponent extends BaseComponent {

async clickMenuItem(menuItem: string): Promise<void> {
const menuElement = this.getButtonByText(menuItem);
await menuElement.waitFor({ state: 'attached' });
await menuElement.click();
await menuElement.waitFor({ state: 'detached' });
}

async clickMenuItemFromHeaderMenu(menuItem: string): Promise<void> {
const menuElement = this.getMenuItemFromHeaderMenu(menuItem);
await menuElement.waitFor({ state: 'attached' });
await menuElement.click();
await menuElement.waitFor({ state: 'detached' });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { BaseComponent } from '../base.component';
export class EditDialog extends BaseComponent {
private static rootElement = 'mat-dialog-container';

public editDialog = this.page.locator('mat-dialog-container');
public editDialog = this.getChild('');
public titleInput = this.getChild('[data-automation-id="adf-folder-dialog-title"]');
public cancelButton = this.getChild('#adf-folder-cancel-button');
public updateButton = this.getChild('#adf-folder-create-button');
Expand Down

0 comments on commit 43b6816

Please sign in to comment.