From b9f4e832a7550f49ce45fe8bff87c91905d13da6 Mon Sep 17 00:00:00 2001 From: sagar-1310 Date: Wed, 13 Nov 2024 23:48:54 +0530 Subject: [PATCH] Corrected declaration for the Review Page Signed-off-by: sagar-1310 --- playwright_test/Pages/stcs.page.ts | 2 +- playwright_test/Pages/vsam.page.ts | 2 +- playwright_test/Tests/Review.spec.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/playwright_test/Pages/stcs.page.ts b/playwright_test/Pages/stcs.page.ts index c450e81..9c8f450 100644 --- a/playwright_test/Pages/stcs.page.ts +++ b/playwright_test/Pages/stcs.page.ts @@ -14,7 +14,7 @@ class StcsPage{ previous_step_button = Locator; skip_button = Locator; editor_title_element = Locator; - STCS_TITLE = Locator; + STCS_TITLE : Locator; continueToComponentInstallation = Locator; view_yaml = Locator; viewAndSubmitJob = Locator; diff --git a/playwright_test/Pages/vsam.page.ts b/playwright_test/Pages/vsam.page.ts index 66a5b8c..8037a8f 100644 --- a/playwright_test/Pages/vsam.page.ts +++ b/playwright_test/Pages/vsam.page.ts @@ -8,7 +8,7 @@ class VsamPage{ previous_step_button = Locator; skip_button = Locator; editor_title_element = Locator; - VSAM_TITLE = Locator; + VSAM_TITLE : Locator; continueToComponentInstallation = Locator; view_yaml = Locator; viewAndSubmitJob = Locator; diff --git a/playwright_test/Tests/Review.spec.ts b/playwright_test/Tests/Review.spec.ts index 7d197bb..2de649c 100644 --- a/playwright_test/Tests/Review.spec.ts +++ b/playwright_test/Tests/Review.spec.ts @@ -155,7 +155,7 @@ test.describe('ReviewTab', () => { test('Test Navigation to Stcs page', async ({ page }) => { reviewPage.clickStcsTab(); await page.waitForTimeout(1000); - const stcs_title = await stcsPage.getStcsPageTitle(); + const stcs_title = await stcsPage.returnTitleOfStcsPage(); expect(stcs_title).toBe(STCS_PAGE_TITLE); }) @@ -169,7 +169,7 @@ test.describe('ReviewTab', () => { test('Test Navigation to Caching Service page', async ({ page }) => { reviewPage.clickCachingServiceTab(); await page.waitForTimeout(1000); - const cachingService_title = await vsamPage.getVsamPageTitle(); + const cachingService_title = await vsamPage.returnTitleOfVsamPage(); expect(cachingService_title).toBe(CACHING_SERVICE_PAGE_TITLE); })