Added Hellcase Battle job
All checks were successful
Push image to registry / build-image (push) Successful in 5m59s

Still need testing and making proper notifications
This commit is contained in:
2025-03-18 19:40:55 +01:00
parent cfbae6ddbf
commit e8b9517664
9 changed files with 266 additions and 6 deletions

View File

@ -25,12 +25,12 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
private const STEAM_LOGIN_THRESHOLD = 5 * 60; // 5 minutes
private const APPROXIMATIVE_RUNNING_MINUTES = 2;
private JobRun $jobRun;
protected JobRun $jobRun;
public function __construct()
public function __construct($jobId = 2)
{
Log::info("Constructing HellcaseJob");
parent::__construct(2);
parent::__construct($jobId);
}
public function run(Browser $browser): ?JobRun
@ -89,7 +89,7 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
}
}
private function signin(Browser $browser)
protected function signin(Browser $browser)
{
try {
$browser->clickAtXPath('//button[.//span[text() = "Sign in"]]');
@ -390,7 +390,7 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
$browser->clickAtXPath('//*[contains(text(), "Edit Profile")]');
}
private function removePopups(Browser $browser)
protected function removePopups(Browser $browser)
{
// $browser->script('document.querySelector("div.app-modal")[0].remove();');
// $browser->driver->executeScript('document.querySelector("div.app-modal")[0].remove();');