import pytest from playwright.async_api import async_playwright @pytest.mark.asyncio async def test_gui_NoPayment(): async with async_playwright() as playwright: browser = await playwright.chromium.launch(headless=True) context = await browser.new_context() page= await context.new_page() await page.goto("http://localhost:5014/") await page.get_by_role("link", name="Agorism In The 21st Century -- II ").first.click() await page.get_by_role("button", name="add to cart").click() await page.wait_for_timeout(1000) await page.get_by_role("link", name="The DarkFi eye logo.").click() await page.get_by_role("link", name="Tshirt 01").click() await page.get_by_role("group").locator("div").filter(has_text="s").nth(1).click() await page.get_by_label("s", exact=True).check() await page.get_by_role("button", name="add to cart").click() await page.wait_for_timeout(1000) await page.get_by_role("button", name="add to cart").click() await page.wait_for_timeout(1000) await page.get_by_label("Go to Checkout").click() await page.locator("#price_1PTPnFKMYdpilqPdArvtszSN #button-plus").click() await page.locator("#prod_RZBk650b1Tx95N").get_by_role("button").nth(1).click() await page.get_by_placeholder("Email address").click() await page.get_by_placeholder("Email address").fill("work@andrefincato.info") await page.get_by_placeholder("Email address").press("Tab") await page.get_by_placeholder("First name (optional)").fill("