cleanup #18
6 changed files with 8 additions and 7 deletions
|
|
@ -27,7 +27,7 @@ def remove_user(admin_context: BrowserContext, URL: BaseUrl):
|
|||
page.get_by_role("dialog").get_by_role("button", name=re.compile(r"Löschen|Delete")).click()
|
||||
|
||||
|
||||
def cleanup_delete_user(
|
||||
def test_cleanup_delete_user(
|
||||
context: BrowserContext, env_config: dict[str, str], DIR: DirManager, URL: BaseUrl, check_if_user_exists
|
||||
):
|
||||
# load admin cookies to context
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ TEST_USER = os.environ["TEST_USER"]
|
|||
TEST_PASS = os.environ["TEST_PASS"]
|
||||
|
||||
|
||||
def setup_admin_state(context: BrowserContext, env_config: dict[str, str], DIR: DirManager, URL: BaseUrl):
|
||||
def test_setup_admin_state(context: BrowserContext, env_config: dict[str, str], DIR: DirManager, URL: BaseUrl):
|
||||
# go to page
|
||||
page = context.new_page()
|
||||
page.goto(URL.get())
|
||||
|
|
@ -83,7 +83,7 @@ def create_user(user_context: BrowserContext, invitelink):
|
|||
expect(page.locator("ak-library")).to_be_visible()
|
||||
|
||||
|
||||
def setup_user_state(
|
||||
def test_setup_user_state(
|
||||
context: BrowserContext, env_config: dict[str, str], DIR: DirManager, URL: BaseUrl, check_if_user_exists
|
||||
):
|
||||
# load admin cookies to context
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from pytest_abra import BaseUrl, DirManager
|
|||
# https://files.test.dev.local-it.cloud/apps/files/
|
||||
|
||||
|
||||
def setup_nextcloud_admin_session(authentik_admin_page: Page, DIR: DirManager, URL: BaseUrl):
|
||||
def test_setup_nextcloud_admin_session(authentik_admin_page: Page, DIR: DirManager, URL: BaseUrl):
|
||||
"""visit nextcloud from authentik with admin_session to create wordpress_admin_session"""
|
||||
with authentik_admin_page.expect_popup() as event_context:
|
||||
authentik_admin_page.get_by_role("link", name="Nextcloud").click()
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ def test_visit_from_domain(authentik_admin_context: BrowserContext, URL: BaseUrl
|
|||
expect(page.locator("#wpadminbar")).to_be_visible(timeout=3_000)
|
||||
|
||||
|
||||
def setup_wordpress_admin_session(authentik_admin_page: Page, DIR: DirManager):
|
||||
def test_setup_wordpress_admin_session(authentik_admin_page: Page, DIR: DirManager):
|
||||
"""visit wordpress from authentik with admin_session to create wordpress_admin_session"""
|
||||
with authentik_admin_page.expect_popup() as event_context:
|
||||
authentik_admin_page.get_by_role("link", name="Wordpress").click()
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from playwright.sync_api import Page, expect
|
|||
from pytest_abra import BaseUrl
|
||||
|
||||
|
||||
def setup_trigger_email(wordpress_admin_page: Page, URL: BaseUrl):
|
||||
def test_setup_trigger_email(wordpress_admin_page: Page, URL: BaseUrl):
|
||||
"""change profile email to EMAIL to trigger email"""
|
||||
page = wordpress_admin_page
|
||||
page.goto(URL.get("wp-admin/profile.php"))
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ def test_abratest_cli_full_integration(tmp_output: Path, tmp_recipes: Path):
|
|||
# ----------------------------------- dirs ----------------------------------- #
|
||||
|
||||
RECIPES_DIR = tmp_recipes.resolve()
|
||||
# RECIPES_DIR = Path("recipes")
|
||||
OUTPUT_DIR = tmp_output.resolve()
|
||||
|
||||
# ------------------------------------ run ----------------------------------- #
|
||||
|
|
@ -65,7 +66,7 @@ def test_abratest_cli_full_integration(tmp_output: Path, tmp_recipes: Path):
|
|||
|
||||
|
||||
@pytest.mark.slow
|
||||
def test_results_abra(tmp_output: Path):
|
||||
def test_full_integration_results(tmp_output: Path):
|
||||
OUTPUT_DIR = tmp_output.resolve()
|
||||
|
||||
DIR = DirManager(output_dir=OUTPUT_DIR, session_id="abc")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue