Browse Source

Selecting text in EventTests (hopefully) the correct way

FX_FIXES
Shagen Ogandzhanian 3 years ago
parent
commit
8bbf20f491
  1. 8
      web/integration-core/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/EventTests.kt

8
web/integration-core/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/EventTests.kt

@ -17,8 +17,12 @@ import org.openqa.selenium.WebDriver
class EventTests : BaseIntegrationTests() { class EventTests : BaseIntegrationTests() {
companion object { companion object {
private val COMMAND_CROSS_PLATFORM = private val COMMAND_CROSS_PLATFORM = System.getProperty("os.name").lowercase().let { osName ->
if (System.getProperty("os.name").contains("Windows")) Keys.CONTROL else Keys.META when {
osName.contains("mac os") -> Keys.COMMAND
else -> Keys.CONTROL
}
}
} }
@ResolveDrivers @ResolveDrivers

Loading…
Cancel
Save