Fix giveaway prize name
Some checks failed
Test, build and push image to registry / build-image (push) Has been cancelled
Test, build and push image to registry / phpunit-tests (push) Has been cancelled

This commit is contained in:
2025-11-07 10:02:30 +01:00
parent 12280c6d54
commit c61750285a

View File

@@ -209,7 +209,7 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
// JobRun // JobRun
// Get the elements text containing class starting with giveaway-entity-prize__ // Get the elements text containing class starting with giveaway-entity-prize__
$prizeElement = $browser->driver->findElements(WebDriverBy::xpath('//div[starts-with(@class, "giveaway-entity-prize__")]')); $prizeElement = $browser->driver->findElements(WebDriverBy::xpath('//div[starts-with(@class, "_giveaway_")]'));
// Join their text // Join their text
$prize = ""; $prize = "";
foreach ($prizeElement as $element) { foreach ($prizeElement as $element) {