session token fix for captcha
This commit is contained in:
@@ -44,7 +44,13 @@ def create_session(driver, step, config):
|
||||
|
||||
@pytest.mark.session
|
||||
@pytest.mark.parametrize("config", get_setup_configs("session"), ids=lambda c: c["product_name"])
|
||||
def test_session(driver, test_context, config):
|
||||
def test_session(driver, test_context, config, request):
|
||||
|
||||
# The full setup command runs session-only products (such as RA) through
|
||||
# test_combined_setup.py so they share the same browser/login context.
|
||||
invocation = " ".join(str(arg).replace("\\", "/") for arg in request.config.invocation_params.args)
|
||||
if "tests/setup" in invocation and "tests/setup/sessions" not in invocation and "test_session.py" not in invocation:
|
||||
pytest.skip("Handled by the shared full setup flow")
|
||||
|
||||
wait = WebDriverWait(driver, 20)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user