test framework
This commit is contained in:
parent
5961516536
commit
859bd57006
11 changed files with 313 additions and 246 deletions
23
authentik_test.py
Normal file
23
authentik_test.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
from conftest import check_for, testuser, RECORDS
|
||||
# playwright = sync_playwright().start()
|
||||
# browser = playwright.chromium.launch(headless=False)
|
||||
|
||||
""" Test Changing Username in Authentik """
|
||||
def test_authentik_change_username(user_session):
|
||||
context, page = user_session
|
||||
page.get_by_role("banner").get_by_role("link").nth(1).click()
|
||||
page.get_by_placeholder(testuser["username"]).click()
|
||||
page.get_by_placeholder(testuser["username"]).fill("renameduser")
|
||||
page.get_by_role("button", name="Speichern").click()
|
||||
check_for(page.get_by_role("heading", name="Not allowed to change username."))
|
||||
context.tracing.stop(path=f"{RECORDS}/change_username.zip")
|
||||
|
||||
|
||||
#""" Click all Apps """
|
||||
#def test_dashboard(user_session):
|
||||
# context, page = user_session
|
||||
# for link in page.locator("ak-library-app").get_by_role("link").all():
|
||||
# link.click()
|
||||
# context.tracing.stop(path=f"{RECORDS}/test_dashboard.zip")
|
||||
# context.close()
|
||||
#
|
||||
Loading…
Add table
Add a link
Reference in a new issue