small changes
This commit is contained in:
parent
d67f56bce7
commit
9494f8fd44
1 changed files with 3 additions and 3 deletions
|
|
@ -75,9 +75,9 @@ def create_invite_link(admin_context: BrowserContext, dotenv_config: dict[str, s
|
|||
return invitelink
|
||||
|
||||
|
||||
def create_user(context: BrowserContext, invitelink, STATES: Path):
|
||||
def create_user(user_context: BrowserContext, invitelink):
|
||||
# warning: only works on german site
|
||||
page = context.new_page()
|
||||
page = user_context.new_page()
|
||||
page.goto(invitelink)
|
||||
page.get_by_placeholder("Benutzername").click()
|
||||
page.get_by_placeholder("Benutzername").fill(TESTUSER["username"])
|
||||
|
|
@ -106,5 +106,5 @@ def test_create_user_session(context: BrowserContext, dotenv_config: dict[str, s
|
|||
|
||||
# create user
|
||||
context.clear_cookies()
|
||||
create_user(context, invite_link, STATES)
|
||||
create_user(context, invite_link)
|
||||
context.storage_state(path=f"{STATES}/user_state.json")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue