mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-03 23:15:31 +00:00
Bug 1822274 - Fix for flaky verifySaveCreditCardFromFormTest UI test
This commit is contained in:
parent
33d50a131d
commit
2904b7fb0d
@ -437,9 +437,14 @@ class BrowserRobot {
|
||||
|
||||
fun fillAndSaveCreditCard(cardNumber: String, cardName: String, expiryMonthAndYear: String) {
|
||||
itemWithResId("cardNumber").setText(cardNumber)
|
||||
mDevice.waitForIdle(waitingTime)
|
||||
itemWithResId("nameOnCard").setText(cardName)
|
||||
mDevice.waitForIdle(waitingTime)
|
||||
itemWithResId("expiryMonthAndYear").setText(expiryMonthAndYear)
|
||||
mDevice.waitForIdle(waitingTime)
|
||||
itemWithResId("submit").clickAndWaitForNewWindow(waitingTime)
|
||||
waitForPageToLoad()
|
||||
mDevice.waitForWindowUpdate(packageName, waitingTime)
|
||||
}
|
||||
|
||||
fun verifyUpdateOrSaveCreditCardPromptExists(exists: Boolean) =
|
||||
|
Loading…
Reference in New Issue
Block a user