pytest.ini[pytest]
addopts = --base-url https://staging.targetqa.com --headed=false --tracing retain-on-failure
testpaths = testsdef test_mobile_layout(playwright):
iphone = playwright.devices["iPhone 14"]
browser = playwright.chromium.launch()
context = browser.new_context(**iphone)
page = context.new_page()
page.goto("https://targetqa.com")