2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

Bug 1822274 - Fix for flaky verifySaveCreditCardFromFormTest UI test

This commit is contained in:
AndiAJ 2023-04-28 15:27:31 +03:00 committed by mergify[bot]
parent 33d50a131d
commit 2904b7fb0d

View File

@ -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) =