subnet(sort of)

This commit is contained in:
whilb 2025-09-01 17:40:27 -07:00
parent 97f9a95415
commit 4762e4d531
4 changed files with 1732 additions and 1 deletions

View file

@ -3,6 +3,8 @@ import pytest
import pathlib
import sys
import requests
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
@ -96,6 +98,22 @@ def dev_server():
print("Development server stopped")
@pytest.fixture(scope="function")
def driver():
"""Set up Chrome driver with options"""
options = Options()
options.add_argument("--headless")
options.add_argument("--no-sandbox")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--disable-gpu")
options.add_argument("--window-size=1920,1080")
driver = webdriver.Chrome(options=options)
driver.implicitly_wait(10)
yield driver
driver.quit()
@pytest.fixture(scope="function")
def calculator_page(driver, dev_server):
"""Navigate to the calculator page using the development server"""