- Updated architecture documentation to include details on UI rendering checks and Playwright end-to-end tests. - Revised testing documentation to specify Playwright for frontend E2E tests and added details on running tests. - Implemented feedback mechanism in scenario form for successful creation notifications. - Added feedback div in ScenarioForm.html for user notifications. - Created new fixtures for Playwright tests to manage server and browser instances. - Developed comprehensive E2E tests for consumption, costs, equipment, maintenance, production, and scenarios. - Added smoke tests to verify UI page loading and form submissions. - Enhanced unit tests for simulation and validation, including new tests for report generation and validation errors. - Created new test files for router validation to ensure consistent error handling. - Established a new test suite for UI routes to validate dashboard and reporting functionalities. - Implemented validation tests to ensure proper handling of JSON payloads.
9 lines
305 B
Python
9 lines
305 B
Python
from playwright.sync_api import Page, expect
|
|
|
|
|
|
def test_reporting_view_loads(page: Page):
|
|
"""Verify the reporting view page loads correctly."""
|
|
page.click("a[href='/ui/reporting']")
|
|
expect(page).to_have_url("/ui/reporting")
|
|
expect(page.locator("h2:has-text('Reporting')")).to_be_visible()
|