remove old function with browser fixture

This commit is contained in:
Daniel 2023-11-24 17:50:06 +01:00
parent 1088235518
commit d483bf3a0f

View file

@ -75,20 +75,7 @@ def create_user(context: BrowserContext, invitelink, STATES: Path):
expect(page.locator("ak-library")).to_be_visible() expect(page.locator("ak-library")).to_be_visible()
# def test_create_user_session(browser: Browser, dotenv_config: dict[str, str], STATES: Path): def test_create_user_session(context: BrowserContext, dotenv_config: dict[str, str], STATES: Path):
# # create invite_link
# admin_context = browser.new_context(storage_state=f"{STATES}/admin_state.json")
# admin_context.set_default_timeout(TIMEOUT)
# invite_link = create_invite_link(admin_context, dotenv_config)
# # create user
# user_context = browser.new_context()
# user_context.set_default_timeout(TIMEOUT)
# create_user(user_context, invite_link, STATES)
# user_context.storage_state(path=f"{STATES}/user_state.json")
def test_create_user_session_one_context(context: BrowserContext, dotenv_config: dict[str, str], STATES: Path):
context.set_default_timeout(TIMEOUT) context.set_default_timeout(TIMEOUT)
# load admin cookies # load admin cookies