Commit 9f2f7bb5 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[ing] update transfer account balance xpath

Transfer origin account balance can be negative

Closes: 16355@sibi
parent 462a57a4
......@@ -182,8 +182,9 @@ class TransferPage(LoggedPage, HTMLPage):
assert origin.label == CleanText('//div[@id="transferSummary"]/div[has-class("debit")]//span[@class="title"]')(self.doc)
# check origin account balance
origin_balance = CleanDecimal('//div[@id="transferSummary"]/div[has-class("debit")]\
//label[@class="digits positive"]', replace_dots=True)(self.doc)
//label[has-class("digits")]', replace_dots=True)(self.doc)
assert (origin_balance == origin.balance) or (origin_balance == origin._estimated_balance)
t.account_balance = origin.balance
t.account_label = origin.label
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment