-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Allocate dataset dialog regression test. Signed-off-by: Uladzislau <[email protected]> * GH-282 Regression tests fix Signed-off-by: Uladzislau <[email protected]> --------- Signed-off-by: Uladzislau <[email protected]> Co-authored-by: Shyshkou_I <[email protected]>
- Loading branch information
Showing
43 changed files
with
1,917 additions
and
417 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
./gradlew uiTests | ||
reportName: ui-test-fails-report-linux | ||
|
||
- os: macOS-latest | ||
- os: macos-latest | ||
prepareEnv: echo "No preparations needed for MacOS" | ||
runTests: ./gradlew uiTests | ||
reportName: ui-test-fails-report-mac | ||
|
@@ -52,11 +52,6 @@ jobs: | |
distribution: zulu | ||
java-version: 21 | ||
|
||
- name: Setup FFmpeg | ||
uses: FedericoCarboni/[email protected] | ||
with: | ||
github-token: ${{ github.server_url == 'https://github.com' && github.token || '' }} | ||
|
||
- name: Prepare test env | ||
run: ${{ matrix.prepareEnv }} | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,24 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Run UI regression tests" type="GradleRunConfiguration" factoryName="Gradle"> | ||
<ExternalSystemSettings> | ||
<option name="executionName" /> | ||
<option name="externalProjectPath" value="$PROJECT_DIR$" /> | ||
<option name="externalSystemIdString" value="GRADLE" /> | ||
<option name="scriptParameters" value="" /> | ||
<option name="taskDescriptions"> | ||
<list /> | ||
</option> | ||
<option name="taskNames"> | ||
<list> | ||
<option value=":uiTests" /> | ||
</list> | ||
</option> | ||
<option name="vmOptions" /> | ||
</ExternalSystemSettings> | ||
<ExternalSystemDebugServerProcess>false</ExternalSystemDebugServerProcess> | ||
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess> | ||
<DebugAllEnabled>false</DebugAllEnabled> | ||
<RunAsTest>true</RunAsTest> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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 |
---|---|---|
|
@@ -137,9 +137,7 @@ the [contribution guide](CONTRIBUTING.md). | |
If you have any questions, related to the project development, further plans or something else, you can reach as out by | ||
some of the communication chanels: | ||
|
||
* [For Mainframe Slack channel in IBA workspace](https://iba-mainframe-tools.slack.com/archives/C01V4MZL9DH) | ||
* [Zowe Explorer IntelliJ team Slack channel in Open Mainframe Project workspace](https://openmainframeproject.slack.com/archives/C020BGPSU0M) | ||
* [For Mainframe GitHub (create or review issues)](https://github.com/for-mainframe/For-Mainframe/issues) | ||
* [Zowe Explorer plug-in for IntelliJ IDEA GitHub (create or review issues)](https://github.com/zowe/zowe-explorer-intellij/issues) | ||
* Email to: <a href="mailto:[email protected]">Uladzislau Kalesnikau (Team Lead of the Zowe Explorer IntelliJ squad)</a> | ||
* Email to: <a href="mailto:[email protected]">Alex Burak (Product Owner)</a> | ||
|
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
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,118 @@ | ||
/* | ||
* Copyright (c) 2024 IBA Group. | ||
* | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License v2.0 which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* IBA Group | ||
* Zowe Community | ||
* Uladzislau Kalesnikau | ||
*/ | ||
|
||
package tests | ||
|
||
import io.kotest.core.annotation.Description | ||
import com.intellij.driver.client.Driver | ||
import org.junit.jupiter.api.* | ||
import tests.utils.* | ||
import tests.utils.uidefinitions.dialogs.AddConnectionDialog | ||
import tests.utils.uidefinitions.dialogs.UnsecureConnectionDialog | ||
import tests.utils.uidefinitions.FilesExplorerPanel | ||
import tests.utils.uidefinitions.dialogs.ErrorCreatingConnectionDialog | ||
|
||
@Disabled("This testsuite needs to be reworked") | ||
@Description("Tests for interaction and filling the connection creation dialog") | ||
class AddConnectionDialogTest { | ||
private lateinit var filesExplorerPanel: FilesExplorerPanel | ||
private lateinit var addConnectionDialog: AddConnectionDialog | ||
private lateinit var unsecureConnectionDialog: UnsecureConnectionDialog | ||
private lateinit var errorCreatingConnectionDialog: ErrorCreatingConnectionDialog | ||
|
||
companion object { | ||
private lateinit var ideDriver: Driver | ||
|
||
@JvmStatic | ||
@BeforeAll | ||
fun prepareBeforeAll() { | ||
IdeRunManager.prepareRunManager() | ||
.runningIde | ||
.resetTestEnv() | ||
val ideDriver = IdeRunManager.getIdeDriver() | ||
openZoweExplorerPanel(ideDriver) | ||
} | ||
|
||
@JvmStatic | ||
@AfterAll | ||
fun afterAll() { | ||
IdeRunManager.prepareRunManager() | ||
.runningIde | ||
.resetTestEnv() | ||
deleteConfigEntities(ideDriver, "Connections") | ||
MockWebServerManager.removeAllEndpoints() | ||
} | ||
} | ||
|
||
@BeforeEach | ||
fun prepareTestEnv() { | ||
IdeRunManager.prepareRunManager() | ||
.runningIde | ||
.resetTestEnv() | ||
ideDriver = IdeRunManager.getIdeDriver() | ||
filesExplorerPanel = FilesExplorerPanel(ideDriver) | ||
addConnectionDialog = AddConnectionDialog(ideDriver) | ||
unsecureConnectionDialog = UnsecureConnectionDialog(ideDriver) | ||
errorCreatingConnectionDialog = ErrorCreatingConnectionDialog(ideDriver) | ||
} | ||
|
||
@AfterEach | ||
fun finalizeTestEnv() { | ||
MockWebServerManager.removeAllEndpoints() | ||
} | ||
|
||
/** | ||
* @see | ||
* <a href="https://github.com/zowe/zowe-explorer-intellij/wiki/Manual-and-automated-test-cases-consistency#add-invalid-connection"> | ||
* Regression: Add invalid connection | ||
* </a> | ||
*/ | ||
@Disabled("This testcase needs to be reworked") | ||
@Test | ||
@Tag("New") | ||
fun createInvalidConnectionTest(testInfo: TestInfo) { | ||
// TODO: finalize the check (the error dialog should appear) | ||
// val mockServer = MockWebServerManager.prepareMockServer() | ||
// | ||
// MockWebServerManager.injectEndpoint( | ||
// "${testInfo.displayName}_info", | ||
// jsonMock = "infoResponse", | ||
// endpointResolver = { it?.requestLine?.contains("zosmf/info") ?: false } | ||
// ) | ||
// MockWebServerManager.injectEndpoint( | ||
// "${testInfo.displayName}_resttopology", | ||
// jsonMock = "infoResponse", | ||
// endpointResolver = { it?.requestLine?.contains("zosmf/resttopology/systems") ?: false } | ||
// ) | ||
// | ||
// filesExplorerPanel.createInvalidConnection(ideDriver, connectionName) | ||
// addConnectionDialog | ||
// .fillDialog( | ||
// connectionName = "nameInput", | ||
// connectionUrl = "https://${mockServer.hostName}:${mockServer.port}", | ||
// username = "userNameInput", | ||
// password = "passwordInput", | ||
// isAcceptSelfSigned = true | ||
// ) | ||
// | ||
// unsecureConnectionDialog.proceedButton.click() | ||
// addConnectionDialog.okButton.click() | ||
// unsecureConnectionDialog.proceedButton.click() | ||
|
||
// assert(errorCreatingConnectionDialog.dialogComponent.isVisible()) | ||
// | ||
// errorCreatingConnectionDialog.noButton.click() | ||
} | ||
} |
Oops, something went wrong.