From 244f4ce1d8715eee1d59a4d80deb02278495a67f Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Fri, 2 Jul 2021 00:53:32 +0200 Subject: [PATCH] Fix last integraton test failing in Firefox and enabling it as a default target --- web/gradle.properties | 1 + .../compose/web/tests/integration/InputsTests.kt | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/gradle.properties b/web/gradle.properties index 46ac784739..097627a8bf 100644 --- a/web/gradle.properties +++ b/web/gradle.properties @@ -1,3 +1,4 @@ COMPOSE_CORE_VERSION=0.5.0-build228 COMPOSE_WEB_VERSION=0.0.16-SNAPSHOT COMPOSE_WEB_BUILD_WITH_EXAMPLES=false +compose.web.tests.integration.withFirefox diff --git a/web/integration-core/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/InputsTests.kt b/web/integration-core/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/InputsTests.kt index 99856818c4..59f0155687 100644 --- a/web/integration-core/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/InputsTests.kt +++ b/web/integration-core/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/InputsTests.kt @@ -78,13 +78,12 @@ class InputsTests : BaseIntegrationTests() { val actions = Actions(driver) - actions.moveToElement(slider) - .moveByOffset(-(slider.size.width / 2), 0) - .click() - .sendKeys(Keys.RIGHT, Keys.RIGHT) + actions + .clickAndHold(slider) + .sendKeys(Keys.RIGHT) .perform() - driver.waitTextToBe(value = "10") + driver.waitTextToBe(value = "55") } @ResolveDrivers