Fix Helcase Battles Job scrollIntoView
All checks were successful
Test, build and push image to registry / phpunit-tests (push) Successful in 2m45s
Test, build and push image to registry / build-image (push) Successful in 8m50s

This commit is contained in:
2026-05-11 12:24:33 +02:00
parent 89641fe300
commit 3e9bb994ef

View File

@@ -97,7 +97,7 @@ class HellcaseBattlesJob extends HellcaseJob implements ShouldBeUniqueUntilProce
$battles = $browser->driver->findElements(WebDriverBy::xpath("//*[contains(@class, '_base_vzctn_1')]"));
$battle = $battles[$battleIndex];
$battleIndex++;
$browser->scrollIntoView(".casebattle-table__item:nth-child(" . max($battleIndex -1, 1) . ")");
$browser->scrollIntoView("._item_1i3qm_5:nth-child(" . max($battleIndex -1, 1) . ")");
sleep(2);
$battleValue = floatval(
explode(