implement env manager (#6)
* add EnvManager class * holds all functions that are env file related * integrates runner dependency resolution * add integration and unit tests for EnvManager Reviewed-on: local-it-infrastructure/e2e_tests#6 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
parent
d3dc0f942a
commit
3fa10aaa69
18 changed files with 264 additions and 198 deletions
|
|
@ -1,19 +1,17 @@
|
|||
import pytest
|
||||
from playwright.sync_api import BrowserContext, Page, expect
|
||||
|
||||
from src.dirmanager import DirManager
|
||||
from src.dir_manager import DirManager
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="wordpress sso login has not been generated")
|
||||
def test_visit_from_domain(authentik_admin_context: BrowserContext, dotenv_config: dict[str, str]):
|
||||
"""visit wordpress directly with admin_session, expect not to be logged in"""
|
||||
page = authentik_admin_context.new_page()
|
||||
url = "https://" + dotenv_config["DOMAIN"]
|
||||
page.goto(url)
|
||||
# look for content wrapper
|
||||
expect(page.locator("#wpcontent")).to_be_visible(timeout=3_000)
|
||||
# look for admin bar
|
||||
expect(page.locator("#wpadminbar")).to_be_visible(timeout=3_000)
|
||||
with pytest.raises(AssertionError):
|
||||
# look for admin bar
|
||||
expect(page.locator("#wpadminbar")).to_be_visible(timeout=3_000)
|
||||
|
||||
|
||||
def setup_wordpress_admin_session(authentik_admin_page: Page, DIR: DirManager):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue