From c56d2fc96cd6daf0269c3edf3473b47603fad205 Mon Sep 17 00:00:00 2001 From: "Viktoria.Shirunova" Date: Wed, 3 Oct 2018 20:09:46 +0300 Subject: [PATCH] [gui-test] tests for gradle based projects - added waiting to background tasks finishing before project closing --- .../CreateGradleKotlinDslProjectWithKotlinGuiTest.kt | 1 + .../createProject/CreateGradleProjectWithKotlinGuiTest.kt | 2 ++ .../kotlin/createProject/CreateKotlinMPProjectGuiTest.kt | 1 + .../ide/projectWizard/kotlin/model/ProjectsWithKotlin.kt | 1 + 4 files changed, 5 insertions(+) diff --git a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateGradleKotlinDslProjectWithKotlinGuiTest.kt b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateGradleKotlinDslProjectWithKotlinGuiTest.kt index fca74d4d3733..787ae0c34c93 100644 --- a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateGradleKotlinDslProjectWithKotlinGuiTest.kt +++ b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateGradleKotlinDslProjectWithKotlinGuiTest.kt @@ -60,5 +60,6 @@ class CreateGradleKotlinDslProjectWithKotlinGuiTest : KotlinGuiTestCase() { projectStructureDialogScenarios.checkGradleExplicitModuleGroups( project, kotlinVersion, projectName, expectedFacet ) + waitAMoment() } } \ No newline at end of file diff --git a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateGradleProjectWithKotlinGuiTest.kt b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateGradleProjectWithKotlinGuiTest.kt index d07c41bcc4b0..015a9cdcddc2 100644 --- a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateGradleProjectWithKotlinGuiTest.kt +++ b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateGradleProjectWithKotlinGuiTest.kt @@ -3,6 +3,7 @@ package com.intellij.ide.projectWizard.kotlin.createProject import com.intellij.ide.projectWizard.kotlin.model.* import com.intellij.testGuiFramework.framework.param.GuiTestSuiteParam +import com.intellij.testGuiFramework.impl.asyncProcessIcon import com.intellij.testGuiFramework.impl.gradleReimport import com.intellij.testGuiFramework.impl.waitAMoment import com.intellij.testGuiFramework.impl.waitForGradleReimport @@ -79,5 +80,6 @@ class CreateGradleProjectWithKotlinGuiTest(private val testParameters: TestParam projectStructureDialogScenarios.checkGradleExplicitModuleGroups( project, kotlinVersion, gradleOptions.artifact, expectedFacet ) + waitAMoment() } } \ No newline at end of file diff --git a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateKotlinMPProjectGuiTest.kt b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateKotlinMPProjectGuiTest.kt index 5ec1fe307d3f..a5d686572ffb 100644 --- a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateKotlinMPProjectGuiTest.kt +++ b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/createProject/CreateKotlinMPProjectGuiTest.kt @@ -73,6 +73,7 @@ class CreateKotlinMPProjectGuiTest(private val testParameters: TestParameters) : } } } + waitAMoment() } companion object { diff --git a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ProjectsWithKotlin.kt b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ProjectsWithKotlin.kt index da2670af7fb3..66d2c925b0b7 100644 --- a/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ProjectsWithKotlin.kt +++ b/community-guitests/testSrc/com/intellij/ide/projectWizard/kotlin/model/ProjectsWithKotlin.kt @@ -664,6 +664,7 @@ fun KotlinGuiTestCase.testCreateGradleAndConfigureKotlin( projectName = gradleOptions.artifact, expectedFacet = expectedFacet ) + waitAMoment() } fun ProjectStructureDialogScenarios.checkGradleExplicitModuleGroups(