Skip to content

Commit 5ad899b

Browse files
committed
fixup! [Behat] Added retry for switchToFieldGroup
1 parent 8d8eff7 commit 5ad899b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/Behat/Page/ContentUpdateItemPage.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ public function switchToFieldGroup(string $tabName): void
243243
for ($attempt = 0; $attempt < 3; ++$attempt) {
244244
try {
245245
$this->getHTMLPage()->setTimeout(5)
246+
->findAll($this->getLocator('navigationTabs'))
247+
->getByCriterion(new ElementTextCriterion($tabName))
248+
->mouseOver();
249+
$this->getHTMLPage()->setTimeout(3)
246250
->findAll($this->getLocator('navigationTabs'))
247251
->getByCriterion(new ElementTextCriterion($tabName))
248252
->click();

0 commit comments

Comments
 (0)