add test_setup_authentik
This commit is contained in:
parent
7c4d853985
commit
a4bdb2e868
1 changed files with 12 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import json
|
|||
from pathlib import Path
|
||||
|
||||
from icecream import ic
|
||||
from playwright.sync_api import BrowserContext, Locator, Page, expect, sync_playwright
|
||||
from playwright.sync_api import Browser, BrowserContext, Locator, Page, expect, sync_playwright
|
||||
|
||||
cred_file = Path("../credentials.json")
|
||||
with open(cred_file, "r") as f:
|
||||
|
|
@ -20,6 +20,17 @@ def check_for(locator: Locator):
|
|||
expect(locator).to_be_visible(timeout=TIMEOUT)
|
||||
|
||||
|
||||
def test_setup_authentik(browser): # WIP
|
||||
"""run with pytest"""
|
||||
|
||||
admin_context = browser.new_context()
|
||||
admin_context.set_default_timeout(TIMEOUT)
|
||||
user_context = browser.new_context()
|
||||
user_context.set_default_timeout(TIMEOUT)
|
||||
create_admin_login(admin_context, dotenv_config, STATES)
|
||||
create_user_session(admin_context, user_context, dotenv_config, STATES)
|
||||
|
||||
|
||||
def setup_authentik(dotenv_config: dict[str, str], STATES: Path):
|
||||
"""run directly as function from RUNNER"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue