Skip to content

Commit

Permalink
Typescript pluign script fix (#21281)
Browse files Browse the repository at this point in the history
  • Loading branch information
makambalaji authored Mar 18, 2022
1 parent ac76942 commit a2ec6cd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/e2e/pageobjects/dashboard/Dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { TestConstants } from '../../TestConstants';
import { TimeoutConstants } from '../../TimeoutConstants';
import { Workspaces } from './Workspaces';
import { Logger } from '../../utils/Logger';
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';

@injectable()
export class Dashboard {
Expand All @@ -26,8 +25,7 @@ export class Dashboard {
private static readonly WORKSPACE_STARTING_PAGE_CSS: string = '.ide-loader-page';

constructor(@inject(CLASSES.DriverHelper) private readonly driverHelper: DriverHelper,
@inject(CLASSES.Workspaces) private readonly workspaces: Workspaces,
@inject(CLASSES.BrowserTabsUtil) private readonly browserTabUtil: BrowserTabsUtil) { }
@inject(CLASSES.Workspaces) private readonly workspaces: Workspaces) { }

async stopWorkspaceByUI(workspaceName: string) {
Logger.debug(`Dashboard.stopWorkspaceByUI "${workspaceName}"`);
Expand Down Expand Up @@ -62,11 +60,6 @@ export class Dashboard {

async openDashboard() {
Logger.debug('Dashboard.openDashboard');
const windowHandles = await this.browserTabUtil.getAllWindowHandles();
if (windowHandles.length > 1) {
const windowHandle = await this.browserTabUtil.getCurrentWindowHandle();
await this.browserTabUtil.waitAndSwitchToAnotherWindow(windowHandle, 1000);
}
await this.driverHelper.getDriver().navigate().to(TestConstants.TS_SELENIUM_BASE_URL);
await this.waitPage();

Expand Down

0 comments on commit a2ec6cd

Please sign in to comment.