From c051919c0ed750773668054f523fea5c3d9c5e75 Mon Sep 17 00:00:00 2001 From: Skoryk Serhii Date: Mon, 11 Sep 2023 13:51:04 +0300 Subject: [PATCH] rename CREATE_NEW_WORKSPACE_BUTTON --- tests/e2e/pageobjects/dashboard/Dashboard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/pageobjects/dashboard/Dashboard.ts b/tests/e2e/pageobjects/dashboard/Dashboard.ts index 78168ae0930..ada62e72971 100644 --- a/tests/e2e/pageobjects/dashboard/Dashboard.ts +++ b/tests/e2e/pageobjects/dashboard/Dashboard.ts @@ -27,7 +27,7 @@ export class Dashboard { private static readonly LOGOUT_BUTTON: By = By.xpath('//button[text()="Logout"]'); private static readonly USER_SETTINGS_DROPDOWN: By = By.xpath('//header//button/span[text()!=""]//parent::button'); private static readonly EXISTING_WORKSPACE_FOUND_ALERT: By = By.xpath('//h4[text()="Existing workspace found"]'); - private static readonly CREATE_NEW_WORKSPACE_BUTTON: By = By.xpath('//button[text()="Create a new workspace"]'); + private static readonly CREATE_NEW_WORKSPACE_LINK: By = By.xpath('//button[text()="Create a new workspace"]'); constructor( @inject(CLASSES.DriverHelper) @@ -118,7 +118,7 @@ export class Dashboard { async clickOnCreateNewWorkspaceButton(timeout: number = TIMEOUT_CONSTANTS.TS_CLICK_DASHBOARD_ITEM_TIMEOUT): Promise { Logger.debug(); - await this.driverHelper.waitAndClick(Dashboard.CREATE_NEW_WORKSPACE_BUTTON, timeout); + await this.driverHelper.waitAndClick(Dashboard.CREATE_NEW_WORKSPACE_LINK, timeout); } async logout(timeout: number = TIMEOUT_CONSTANTS.TS_COMMON_DASHBOARD_WAIT_TIMEOUT): Promise {