remove old function with browser fixture
This commit is contained in:
parent
1088235518
commit
d483bf3a0f
1 changed files with 1 additions and 14 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue