[WIP] Add new automated test framework (#1)
Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
parent
859bd57006
commit
97ed87c79f
31 changed files with 769 additions and 6 deletions
|
|
@ -1,23 +0,0 @@
|
|||
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