|
|
@ -145,6 +145,41 @@ class ControlledInputsTests : BaseIntegrationTests() { |
|
|
|
check(checkbox.isSelected) |
|
|
|
check(checkbox.isSelected) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ResolveDrivers |
|
|
|
|
|
|
|
fun checkBoxMutableValueChangesThroughOnChange(driver: WebDriver) { |
|
|
|
|
|
|
|
driver.openTestPage("checkBoxMutableValueChangesThroughOnChange") |
|
|
|
|
|
|
|
driver.waitTextToBe(value = "false") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val checkbox = driver.findElement(By.id("checkbox")) |
|
|
|
|
|
|
|
check(!checkbox.isSelected) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkbox.click() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
driver.waitTextToBe(value = "true") |
|
|
|
|
|
|
|
check(checkbox.isSelected) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ResolveDrivers |
|
|
|
|
|
|
|
fun checkBoxMutableValueChangesForEveryOnChange(driver: WebDriver) { |
|
|
|
|
|
|
|
driver.openTestPage("checkBoxMutableValueChangesForEveryOnChange") |
|
|
|
|
|
|
|
driver.waitTextToBe(value = "true") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val checkbox = driver.findElement(By.id("checkbox")) |
|
|
|
|
|
|
|
check(checkbox.isSelected) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkbox.click() |
|
|
|
|
|
|
|
driver.waitTextToBe(value = "false") |
|
|
|
|
|
|
|
check(!checkbox.isSelected) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkbox.click() |
|
|
|
|
|
|
|
driver.waitTextToBe(value = "true") |
|
|
|
|
|
|
|
check(checkbox.isSelected) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkbox.click() |
|
|
|
|
|
|
|
driver.waitTextToBe(value = "false") |
|
|
|
|
|
|
|
check(!checkbox.isSelected) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ResolveDrivers |
|
|
|
@ResolveDrivers |
|
|
|
fun checkBoxDefaultCheckedChangesDoesntAffectState(driver: WebDriver) { |
|
|
|
fun checkBoxDefaultCheckedChangesDoesntAffectState(driver: WebDriver) { |
|
|
|
driver.openTestPage("checkBoxDefaultCheckedChangesDoesntAffectState") |
|
|
|
driver.openTestPage("checkBoxDefaultCheckedChangesDoesntAffectState") |
|
|
@ -216,6 +251,30 @@ class ControlledInputsTests : BaseIntegrationTests() { |
|
|
|
check(!radio2.isSelected) |
|
|
|
check(!radio2.isSelected) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ResolveDrivers |
|
|
|
|
|
|
|
fun radioMutableCheckedChangesThroughOnChange(driver: WebDriver) { |
|
|
|
|
|
|
|
driver.openTestPage("radioMutableCheckedChanges") |
|
|
|
|
|
|
|
driver.waitTextToBe(value = "Checked - 0") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val radio1 = driver.findElement(By.id("radio1")) |
|
|
|
|
|
|
|
val radio2 = driver.findElement(By.id("radio2")) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check(!radio1.isSelected) |
|
|
|
|
|
|
|
check(!radio2.isSelected) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
radio2.click() |
|
|
|
|
|
|
|
driver.waitTextToBe(value = "Checked - 2") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check(!radio1.isSelected) |
|
|
|
|
|
|
|
check(radio2.isSelected) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
radio1.click() |
|
|
|
|
|
|
|
driver.waitTextToBe(value = "Checked - 1") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check(radio1.isSelected) |
|
|
|
|
|
|
|
check(!radio2.isSelected) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ResolveDrivers |
|
|
|
@ResolveDrivers |
|
|
|
fun numberHardcodedNeverChanges(driver: WebDriver) { |
|
|
|
fun numberHardcodedNeverChanges(driver: WebDriver) { |
|
|
|
driver.openTestPage("numberHardcodedNeverChanges") |
|
|
|
driver.openTestPage("numberHardcodedNeverChanges") |
|
|
|