Skip to content

Commit 3f9314f

Browse files
committed
UI tests work locally on Firefox (still dummy test)
1 parent eeb0a3b commit 3f9314f

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

composeApp/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ kotlin {
2323
}
2424
}
2525
}
26+
27+
testTask {
28+
useKarma {
29+
useFirefox()
30+
}
31+
}
2632
}
2733
binaries.executable()
2834
}

composeApp/src/commonTest/kotlin/ExampleTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ExampleTest {
2828
}
2929

3030
// Tests the declared UI with assertions and actions of the Compose Multiplatform testing API
31-
onNodeWithTag("text").assertTextEquals("Hello")
31+
onNodeWithTag("text").assertTextEquals("Helloooo")
3232
onNodeWithTag("button").performClick()
3333
onNodeWithTag("text").assertTextEquals("Compose")
3434
}

kotlin-js-store/yarn.lock

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,14 @@ [email protected]:
15371537
dependencies:
15381538
which "^1.2.1"
15391539

1540+
1541+
version "2.1.3"
1542+
resolved "https://registry.yarnpkg.com/karma-firefox-launcher/-/karma-firefox-launcher-2.1.3.tgz#b278a4cbffa92ab81394b1a398813847b0624a85"
1543+
integrity sha512-LMM2bseebLbYjODBOVt7TCPP9OI2vZIXCavIXhkO9m+10Uj5l7u/SKoeRmYx8FYHTVGZSpk6peX+3BMHC1WwNw==
1544+
dependencies:
1545+
is-wsl "^2.2.0"
1546+
which "^3.0.0"
1547+
15401548
15411549
version "2.0.1"
15421550
resolved "https://registry.yarnpkg.com/karma-mocha/-/karma-mocha-2.0.1.tgz#4b0254a18dfee71bdbe6188d9a6861bf86b0cd7d"
@@ -2727,6 +2735,13 @@ which@^2.0.1:
27272735
dependencies:
27282736
isexe "^2.0.0"
27292737

2738+
which@^3.0.0:
2739+
version "3.0.1"
2740+
resolved "https://registry.yarnpkg.com/which/-/which-3.0.1.tgz#89f1cd0c23f629a8105ffe69b8172791c87b4be1"
2741+
integrity sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==
2742+
dependencies:
2743+
isexe "^2.0.0"
2744+
27302745
wildcard@^2.0.0:
27312746
version "2.0.1"
27322747
resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.1.tgz#5ab10d02487198954836b6349f74fff961e10f67"

0 commit comments

Comments
 (0)