Skip to content

Commit

Permalink
Readded method removed
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed Dec 22, 2023
1 parent e951e93 commit c642446
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions e2e/core/pages/metadata-view.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class MetadataViewPage {
saveMetadataButton = $(`[data-automation-id='save-metadata']`);
saveGeneralMetadataButton = $(`[data-automation-id='save-general-info-metadata']`);
resetMetadataButton = $(`[data-automation-id='reset-metadata']`);
informationButton = $(`button[data-automation-id='meta-data-card-toggle-expand']`);

private getMetadataGroupLocator = async (groupName: string): Promise<ElementFinder> =>
$(`[data-automation-id="adf-metadata-group-${groupName}"]`);
Expand Down Expand Up @@ -268,4 +269,12 @@ export class MetadataViewPage {
async clickSaveGeneralMetadata(): Promise<void> {
await BrowserActions.click(this.saveGeneralMetadataButton);
}

async informationButtonIsDisplayed(): Promise<void> {
await BrowserVisibility.waitUntilElementIsClickable(this.informationButton);
}

async informationButtonIsNotDisplayed(): Promise<void> {
await BrowserVisibility.waitUntilElementIsNotVisible(this.informationButton);
}
}

0 comments on commit c642446

Please sign in to comment.