Browse Source

Make `file input updates the text` cross-browser

NEW_FX
Shagen Ogandzhanian 3 years ago
parent
commit
a11f080730
  1. 5
      web/integration-core/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/InputsTests.kt

5
web/integration-core/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/InputsTests.kt

@ -8,6 +8,7 @@ import org.openqa.selenium.By
import org.openqa.selenium.Keys
import org.openqa.selenium.WebDriver
import org.openqa.selenium.interactions.Actions
import java.io.File
class InputsTests : BaseIntegrationTests() {
@ -130,7 +131,9 @@ class InputsTests : BaseIntegrationTests() {
val fileInput = driver.findElement(By.id("file"))
val homePath = System.getProperty("COMPOSE_WEB_INTEGRATION_TESTS_DISTRIBUTION")
fileInput.sendKeys("$homePath/index.html")
fileInput.sendKeys(
File(homePath).resolve("index.html").absolutePath
)
driver.waitTextToBe(value = "C:\\fakepath\\index.html")
}

Loading…
Cancel
Save