From 5134cfac70335bd550934cf08bfb5538dd04d94f Mon Sep 17 00:00:00 2001 From: "eugene.nizienko" Date: Tue, 7 Nov 2023 19:33:20 +0100 Subject: [PATCH] investigating problem with menu on linux --- .github/workflows/runTest.yml | 20 +++++++++---------- .../plugin/CreateCommandLineJavaTest.java | 2 +- .../plugin/CreateCommandLineKotlinTest.kt | 3 +++ .../plugin/GlobalAndLocalMapExamplesTest.kt | 6 +++--- .../simple/plugin/SayHelloKotlinTest.kt | 2 +- 5 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/runTest.yml b/.github/workflows/runTest.yml index 4abee4c7..a8f7cf46 100644 --- a/.github/workflows/runTest.yml +++ b/.github/workflows/runTest.yml @@ -20,16 +20,16 @@ jobs: ./gradlew :ui-test-example:test url: http://127.0.0.1:8082 reportName: ui-test-fails-report-linux - - os: macOS-latest - runIde: ./gradlew :ui-test-example:runIdeForUiTests & - runTests: ./gradlew :ui-test-example:test - url: http://127.0.0.1:8082 - reportName: ui-test-fails-report-mac - - os: windows-latest - runIde: start gradlew.bat :ui-test-example:runIdeForUiTests - runTests: ./gradlew :ui-test-example:test - url: http://localhost:8082 - reportName: ui-test-fails-report-windows +# - os: macOS-latest +# runIde: ./gradlew :ui-test-example:runIdeForUiTests & +# runTests: ./gradlew :ui-test-example:test +# url: http://127.0.0.1:8082 +# reportName: ui-test-fails-report-mac +# - os: windows-latest +# runIde: start gradlew.bat :ui-test-example:runIdeForUiTests +# runTests: ./gradlew :ui-test-example:test +# url: http://localhost:8082 +# reportName: ui-test-fails-report-windows runs-on: ${{ matrix.os }} steps: diff --git a/ui-test-example/src/test/java/org/intellij/examples/simple/plugin/CreateCommandLineJavaTest.java b/ui-test-example/src/test/java/org/intellij/examples/simple/plugin/CreateCommandLineJavaTest.java index ffff50f2..cdf32d21 100644 --- a/ui-test-example/src/test/java/org/intellij/examples/simple/plugin/CreateCommandLineJavaTest.java +++ b/ui-test-example/src/test/java/org/intellij/examples/simple/plugin/CreateCommandLineJavaTest.java @@ -62,7 +62,7 @@ public void closeProject(final RemoteRobot remoteRobot) { }); } - @Test +// @Test @Video void createCommandLineProject(final RemoteRobot remoteRobot) { sharedSteps.createNewCommandLineProject(); diff --git a/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/CreateCommandLineKotlinTest.kt b/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/CreateCommandLineKotlinTest.kt index 1a370168..e587a8f4 100644 --- a/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/CreateCommandLineKotlinTest.kt +++ b/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/CreateCommandLineKotlinTest.kt @@ -64,6 +64,9 @@ class CreateCommandLineKotlinTest { } } idea { + runJs(""" + component.getRootPane().getJMenuBar().setVisible(true) + """) waitFor(ofMinutes(5)) { isDumbMode().not() } step("Create App file") { with(projectViewTree) { diff --git a/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/GlobalAndLocalMapExamplesTest.kt b/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/GlobalAndLocalMapExamplesTest.kt index 42495aa3..cc2da9b1 100644 --- a/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/GlobalAndLocalMapExamplesTest.kt +++ b/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/GlobalAndLocalMapExamplesTest.kt @@ -12,7 +12,7 @@ import java.time.Duration @ExtendWith(RemoteRobotExtension::class) class GlobalAndLocalMapExamplesTest { - @Test +// @Test fun globalMap(remoteRobot: RemoteRobot) = with(remoteRobot) { // Save message runJs("global.put('greeting', 'Hello from Idea')") @@ -21,7 +21,7 @@ class GlobalAndLocalMapExamplesTest { assert(callJs("global.get('greeting')") == "Hello from Idea") } - @Test +// @Test fun storeFunctions(remoteRobot: RemoteRobot) = with(remoteRobot) { // Save JS object with functions runJs( @@ -44,7 +44,7 @@ class GlobalAndLocalMapExamplesTest { println(version) } - @Test +// @Test fun local(remoteRobot: RemoteRobot) { // local map is unique for each fixture even if two fixtures refers to the same component val frame1 = remoteRobot.find(byXpath("//div[@class='FlatWelcomeFrame']"), Duration.ofSeconds(10)) diff --git a/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/SayHelloKotlinTest.kt b/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/SayHelloKotlinTest.kt index 7d59370c..217a6b4d 100644 --- a/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/SayHelloKotlinTest.kt +++ b/ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/SayHelloKotlinTest.kt @@ -23,7 +23,7 @@ class SayHelloKotlinTest { StepsLogger.init() } - @Test +// @Test @Disabled @Video fun checkHelloMessage(remoteRobot: RemoteRobot) = with(remoteRobot) {