From c301e052b38d652f742c0041e79b20b4ed31466a Mon Sep 17 00:00:00 2001 From: LD-Reborn Date: Sun, 16 Nov 2025 10:54:06 +0100 Subject: [PATCH] Cleaned up test.yml, added ScrollIntoView to AssetsHelper --- .github/workflows/test.yml | 1 - tests/Berufsschule_HAM.E2ETests/Helper/AssetsHelper.cs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4fcaa9a..865f4e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,6 @@ jobs: run: | sudo apt-get update sudo apt-get install -y chromium-browser chromium-chromedriver - ls /usr/bin -alh # Verify the installation - name: Verify Chromium and ChromeDriver diff --git a/tests/Berufsschule_HAM.E2ETests/Helper/AssetsHelper.cs b/tests/Berufsschule_HAM.E2ETests/Helper/AssetsHelper.cs index 9062b26..90e5a5c 100644 --- a/tests/Berufsschule_HAM.E2ETests/Helper/AssetsHelper.cs +++ b/tests/Berufsschule_HAM.E2ETests/Helper/AssetsHelper.cs @@ -19,6 +19,7 @@ public static class AssetsHelper AppHelper.AwaitVisible(driver, By.Id("createLocationSelect-ts-control")); driver.FindElement(By.Id("createLocationSelect-ts-control")).Click(); AppHelper.Timeout(driver, 30).Until(ExpectedConditions.ElementExists(By.Id("createLocationSelect-opt-1"))); + AppHelper.ScrollIntoViewAndClick(driver, driver.FindElement(By.Id("createLocationSelect-opt-1"))); driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-ts-control\").value=\"somewhere\""); driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-opt-1\").click()"); driver.FindElement(By.Id("createUsersSelect-ts-control")).Click();