-
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.
create WebTerminalTest typescript test
- Loading branch information
1 parent
aace77a
commit 989e605
Showing
2 changed files
with
43 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** ******************************************************************* | ||
* copyright (c) 2023 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 { CLASSES } from '../../configs/inversify.types'; | ||
import { e2eContainer } from '../../configs/inversify.config'; | ||
import { LoginTests } from '../../tests-library/LoginTests'; | ||
import { OcpMainPage } from '../../pageobjects/openshift/OcpMainPage'; | ||
|
||
suite('Login to Openshift console and start WebTerminal', function (): void { | ||
const loginTests: LoginTests = e2eContainer.get(CLASSES.LoginTests); | ||
const ocpMainPage: OcpMainPage = e2eContainer.get(CLASSES.OcpMainPage); | ||
|
||
loginTests.loginIntoOcpConsole(); | ||
|
||
test('Open Web Terminal', async function (): Promise<void> { | ||
await ocpMainPage.waitOpenMainPage(); | ||
await ocpMainPage.openWebTerminal(); | ||
}); | ||
}); |