try fixing e2e tests

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt 2023-11-21 19:15:16 +01:00
parent 5cd6791739
commit 1ce7ca2b26
No known key found for this signature in database
GPG Key ID: 9C3FA22FABF1AA8D
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ from sys import stderr
from time import sleep from time import sleep
from typing import Any, Callable, Optional from typing import Any, Callable, Optional
from django.apps import apps
from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from django.db import connection from django.db import connection
from django.db.migrations.loader import MigrationLoader from django.db.migrations.loader import MigrationLoader
@ -71,6 +72,7 @@ class SeleniumTestCase(DockerTestCase, StaticLiveServerTestCase):
if IS_CI: if IS_CI:
print("::group::authentik Logs", file=stderr) print("::group::authentik Logs", file=stderr)
super().setUp() super().setUp()
apps.get_app_config("authentik_tenants").reconcile()
self.wait_timeout = 60 self.wait_timeout = 60
self.driver = self._get_driver() self.driver = self._get_driver()
self.driver.implicitly_wait(30) self.driver.implicitly_wait(30)