diff --git a/PageObjects/essui-esdownloadpageObjects.ts b/PageObjects/essui-esdownloadpageObjects.ts index 1b9e4b12..ec603150 100644 --- a/PageObjects/essui-esdownloadpageObjects.ts +++ b/PageObjects/essui-esdownloadpageObjects.ts @@ -32,6 +32,7 @@ export class EsDownloadPageObjects { this.invalidEncsSelector = this.page.locator("(//div[@class='warningMsg'])"); this.errorMessageSelector = this.page.locator("text = There has been an error"); this.selectedENCsSelector = this.page.locator("(//div/strong)[1]"); + } async downloadFile(page: Page, path: string): Promise { @@ -87,6 +88,7 @@ class EsDownloadPageAssertions { } + async ValidateInvalidENCsAsPerCount(InValidENCs: string[]): Promise { for (var i = 0; i < 3; i++) { diff --git a/Tests/FunctionalTests/ess-ui-esdownloadpage.spec.ts b/Tests/FunctionalTests/ess-ui-esdownloadpage.spec.ts index 70e48056..944f0ccc 100644 --- a/Tests/FunctionalTests/ess-ui-esdownloadpage.spec.ts +++ b/Tests/FunctionalTests/ess-ui-esdownloadpage.spec.ts @@ -113,4 +113,4 @@ test.describe('ESS UI ES Download Page Functional Test Scenarios', () => { encSelectionPageObjects.expect.verifyRequestPayload(requestPayload, selectedEncs) }); }); -}) \ No newline at end of file +})