tests/e2e: switch chrome for chromium (#17407)

* tests/e2e: switch chrome for chromium

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* sigh

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix diff?

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix git diff

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* cleanup shadow dom getter

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2025-10-13 16:36:41 +02:00
committed by GitHub
parent cfeaf0126e
commit 97e04a902d
4 changed files with 7 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ runs:
run: |
export PSQL_TAG=${{ inputs.postgresql_version }}
docker compose -f .github/actions/setup/docker-compose.yml up -d
cd web && npm ci
cd web && npm i
- name: Generate config
if: ${{ contains(inputs.dependencies, 'python') }}
shell: uv run python {0}

View File

@@ -35,7 +35,7 @@ jobs:
- name: Check changes have been applied
run: |
uv run make aws-cfn
git diff --exit-code
git diff --exit-code lifecycle/aws/template.yaml
ci-aws-cfn-mark:
if: always()
needs:

View File

@@ -1,9 +1,7 @@
services:
chrome:
platform: linux/x86_64
image: docker.io/selenium/standalone-chrome:141.0
volumes:
- /dev/shm:/dev/shm
chromium:
image: docker.io/selenium/standalone-chromium:141.0
shm_size: 2g
network_mode: host
restart: always
mailpit:

View File

@@ -233,9 +233,8 @@ class SeleniumTestCase(DockerTestCase, StaticLiveServerTestCase):
"""Get shadow root element's inner shadowRoot"""
if not container:
container = self.driver
shadow_root = container.find_element(By.CSS_SELECTOR, selector)
element = self.driver.execute_script("return arguments[0].shadowRoot", shadow_root)
return element
el = container.find_element(By.CSS_SELECTOR, selector)
return el.shadow_root
def shady_dom(self) -> WebElement:
class wrapper: