From 050cc6d12a450014bb693be800a930fca499dd56 Mon Sep 17 00:00:00 2001 From: Eray Felek Date: Wed, 4 Dec 2024 15:08:16 +0100 Subject: [PATCH] Use right port --- .cirrus.yml | 9 +++++++-- .../org/sonarlint/intellij/its/utils/OpeningUtils.kt | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 34ebe67ba..af5f86e27 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -236,16 +236,21 @@ qa_task: source cirrus-env QA source .cirrus/use-gradle-wrapper.sh echo "Prepare env and start IDE ${IDEA_VERSION}" + echo "Prepare env and start IDE ${IDEA_VERSION}" source set_gradle_build_version + #echo "Prepare env and start IDE ${IDEA_VERSION}" + #echo gradle --version mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.1:unpack -B -Dartifact=org.sonarsource.sonarlint.intellij:sonarlint-intellij:${PROJECT_VERSION}:zip "-DoutputDirectory=${CIRRUS_WORKING_DIR}/staged-plugin" + # echo ${CIRRUS_WORKING_DIR} + # echo ls ${CIRRUS_WORKING_DIR}/staged-plugin mkdir -p its/build/idea-sandbox/config-uiTest/ gradle :its:runIdeForUiTests --stacktrace -i -PijVersion=${IDEA_VERSION} -PslPluginDirectory=${CIRRUS_WORKING_DIR}/staged-plugin > ${CIRRUS_WORKING_DIR}/runIdeGradle.log & wait_ide_script: | echo "Wait for IDE to start" - sleep 600s + sleep 400s curl --connect-timeout 1 --insecure -s -o /dev/null http://127.0.0.1:8082 # TODO write windows version of wait-for-endpoint.sh - # .cirrus/wait-for-endpoint.sh http://127.0.0.1:8083 -t 500 + # .cirrus/wait-for-endpoint.sh http://127.0.0.1:8082 -t 10 run_its_script: | echo "Run ITs on ${IDEA_VERSION}" source .cirrus/use-gradle-wrapper.sh diff --git a/its/src/test/kotlin/org/sonarlint/intellij/its/utils/OpeningUtils.kt b/its/src/test/kotlin/org/sonarlint/intellij/its/utils/OpeningUtils.kt index 830ba709a..66e792a42 100644 --- a/its/src/test/kotlin/org/sonarlint/intellij/its/utils/OpeningUtils.kt +++ b/its/src/test/kotlin/org/sonarlint/intellij/its/utils/OpeningUtils.kt @@ -84,6 +84,7 @@ class OpeningUtils { welcomeFrame { // Force the click on the left: https://github.com/JetBrains/intellij-ui-test-robot/issues/19 openProjectButton().click(Point(10, 10)) + openPreferences() } if (remoteRobot.isRider()) { openSolutionBrowserDialog {