Skip to content

Commit 699c0fe

Browse files
committed
fix: race conditions in editor tests
1 parent 2986d6c commit 699c0fe

9 files changed

Lines changed: 337 additions & 340 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ kotlin_gen
1010
**/.ideaconfig
1111
**/.mpsconfig
1212
node_modules
13+
/.intellijPlatform
14+
/.kotlin
15+
/version.txt

kernelf-editor/src/commonTest/kotlin/org/modelix/editor/kernelf/CodeCompletionTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class CodeCompletionTest {
120120
fun actionsOnNameProperty() =
121121
runCompletionTest {
122122
val namePropertyCell = editor.getRootCell().descendants().find { it.getVisibleText() == "stringTests" }!!
123-
editor.changeSelection(CaretSelection(editor, namePropertyCell.layoutable()!!, 0))
123+
editor.changeSelectionLater(CaretSelection(editor, namePropertyCell.layoutable()!!, 0))
124124

125125
val firstLeaf = namePropertyCell.firstLeaf()
126126
assertEquals("stringTests", firstLeaf.getVisibleText())

projectional-editor-ssr-mps-languages/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dependencies {
2424
testImplementation(project(":projectional-editor"), excludeMPSLibraries)
2525
testImplementation(libs.modelix.mps.model.adapters, excludeMPSLibraries)
2626
testImplementation(libs.playwright, excludeMPSLibraries)
27+
testImplementation(coreLibs.kotlin.coroutines.test, excludeMPSLibraries)
2728
modelAdaptersPlugin(libs.modelix.mps.model.adapters.plugin)
2829
}
2930

0 commit comments

Comments
 (0)