mirror of
https://github.com/goauthentik/authentik
synced 2026-04-25 17:15:26 +02:00
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:
2
.github/actions/setup/action.yml
vendored
2
.github/actions/setup/action.yml
vendored
@@ -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}
|
||||
|
||||
2
.github/workflows/ci-aws-cfn.yml
vendored
2
.github/workflows/ci-aws-cfn.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user