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() {
companion object {
private val COMMAND_CROSS_PLATFORM =
if (System.getProperty("os.name").contains("Windows")) Keys.CONTROL else Keys.META
private val COMMAND_CROSS_PLATFORM = System.getProperty("os.name").lowercase().let { osName ->
when {
osName.contains("mac os") -> Keys.COMMAND
else -> Keys.CONTROL
}
}
}
@ResolveDrivers

Loading…
Cancel
Save