Maxime Gasselin
Committed by Romain Bignon
Builds for 1 pipeline failed in 2 minutes 26 seconds

[bnporc-entreprise] Fix Market page when no account is present

The account table is present when no account is present, we need to add
condition to avoid research account in this case.

Closes: 27858@sibi
......@@ -342,6 +342,9 @@ class MarketPage(LoggedPage, HTMLPage):
class iter_market_accounts(TableElement):
def condition(self):
return not self.el.xpath('//table[@id="table-portefeuille"]//tr/td[contains(text(), "Aucun portefeuille à afficher")]')
item_xpath = '//table[@id="table-portefeuille"]/tbody[@class="main-content"]/tr'
head_xpath = '//table[@id="table-portefeuille"]/thead/tr/th/label'