mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
tests: ensure password field is cleared before typing password
This commit is contained in:
parent
a8dbf27faf
commit
68403fa681
|
@ -78,6 +78,10 @@ function CustomWorld() {
|
||||||
return that.driver.findElement(seleniumWebdriver.By.id("username"))
|
return that.driver.findElement(seleniumWebdriver.By.id("username"))
|
||||||
.sendKeys(username);
|
.sendKeys(username);
|
||||||
})
|
})
|
||||||
|
.then(function () {
|
||||||
|
return that.driver.findElement(seleniumWebdriver.By.id("password"))
|
||||||
|
.clear();
|
||||||
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return that.driver.findElement(seleniumWebdriver.By.id("password"))
|
return that.driver.findElement(seleniumWebdriver.By.id("password"))
|
||||||
.sendKeys(password);
|
.sendKeys(password);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user