-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test] Add 'Restricted Mode' button handler to switch on 'Trust Mode'…
… in IDE in E2E tests (#23361) * Add new pageobject to editor * Update 'ProjectAndFileTests' object * Update files according to modify 'performTrustAuthorDialog' method * Fix up 'RecommendedExtensions' * Fix up 'CheCodeLocatorLoader' pageobjeect
- Loading branch information
Showing
12 changed files
with
118 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** ******************************************************************* | ||
* copyright (c) 2025 Red Hat, Inc. | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
**********************************************************************/ | ||
import { inject, injectable } from 'inversify'; | ||
import 'reflect-metadata'; | ||
import { CLASSES } from '../../configs/inversify.types'; | ||
import { By } from 'selenium-webdriver'; | ||
import { DriverHelper } from '../../utils/DriverHelper'; | ||
import { Logger } from '../../utils/Logger'; | ||
|
||
@injectable() | ||
export class RestrictedModeButton { | ||
private static readonly RESTRICTED_MODE_BUTTON: By = By.id('status.workspaceTrust'); | ||
|
||
constructor( | ||
@inject(CLASSES.DriverHelper) | ||
readonly driverHelper: DriverHelper | ||
) {} | ||
|
||
async clickOnRestrictedModeButton(): Promise<void> { | ||
Logger.debug(); | ||
|
||
await this.driverHelper.waitAndClick(RestrictedModeButton.RESTRICTED_MODE_BUTTON); | ||
} | ||
|
||
async isRestrictedModeButtonDisappearance(): Promise<void> { | ||
Logger.debug(); | ||
|
||
await this.driverHelper.waitDisappearance(RestrictedModeButton.RESTRICTED_MODE_BUTTON); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.