Add product-specific session and token setup
This commit is contained in:
@@ -5,7 +5,7 @@ import pytest
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium.webdriver.support.ui import WebDriverWait
|
||||
|
||||
from .config_reader import load_config
|
||||
from .config_reader import get_product_config
|
||||
from .helpers import (
|
||||
clear_pending_console_input,
|
||||
click_page_body,
|
||||
@@ -23,7 +23,7 @@ from .step_actions import StepActions
|
||||
|
||||
def _bounce_token_generation(driver, step, config):
|
||||
|
||||
token = config["trading_token_idas"]
|
||||
token = config["token"]
|
||||
interactions = random.randint(2, 4)
|
||||
|
||||
open_trading_maintenance_page(driver, Locator.tokengeneration)
|
||||
@@ -67,7 +67,7 @@ def _bounce_trading_session(driver, step, config):
|
||||
@pytest.mark.fake_activity
|
||||
def test_random_fake_activity_no_save(driver, test_context):
|
||||
|
||||
config = load_config()
|
||||
config = get_product_config("IDAS")
|
||||
wait = WebDriverWait(driver, 20)
|
||||
step = StepActions(driver, wait, test_context)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user