Promptaid-VIsion / e2e /test_basic_e2e.py
SCGR's picture
e2e
207c07d
raw
history blame contribute delete
513 Bytes
import pytest
from playwright.sync_api import Page
class TestBasicE2E:
"""Basic E2E tests to verify setup"""
@pytest.mark.e2e
def test_page_loads(self, page: Page):
"""Test that the page loads"""
page.goto("http://localhost:7860")
assert page.title() is not None
@pytest.mark.e2e
def test_health_endpoint(self, page: Page):
"""Test health endpoint"""
response = page.goto("http://localhost:7860/health")
assert response.status == 200