diff --git a/e2e/core/pages/metadata-view.page.ts b/e2e/core/pages/metadata-view.page.ts index d10be8b0c99..9f8dda5b260 100644 --- a/e2e/core/pages/metadata-view.page.ts +++ b/e2e/core/pages/metadata-view.page.ts @@ -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 => $(`[data-automation-id="adf-metadata-group-${groupName}"]`); @@ -268,4 +269,12 @@ export class MetadataViewPage { async clickSaveGeneralMetadata(): Promise { await BrowserActions.click(this.saveGeneralMetadataButton); } + + async informationButtonIsDisplayed(): Promise { + await BrowserVisibility.waitUntilElementIsClickable(this.informationButton); + } + + async informationButtonIsNotDisplayed(): Promise { + await BrowserVisibility.waitUntilElementIsNotVisible(this.informationButton); + } }