Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
doombeaker committed Aug 8, 2024
1 parent 300c51e commit 0805f34
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@


def test_comfyui():
# Wait for the page to load
print(f"wainting for comfyui to start")
time.sleep(10)
print(f"End wainting for comfyui to start")

chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.add_argument("--no-sandbox")
Expand All @@ -23,9 +28,6 @@ def test_comfyui():
driver = webdriver.Chrome(options=chrome_options)
driver.get(f"http://{COMFY_HOST}:{COMFY_PORT}")

# Wait for the page to load
time.sleep(5)

# Add a cookie
driver.add_cookie({"name": "api_key", "value": BIZYAIR_KEY, "path": "/"})

Expand Down

0 comments on commit 0805f34

Please sign in to comment.