feat: Enhance end-to-end testing framework with improved server setup and UI validation
This commit is contained in:
@@ -9,7 +9,7 @@ def test_scenario_form_loads(page: Page):
|
||||
expect(page).to_have_url(
|
||||
"http://localhost:8001/ui/scenarios"
|
||||
) # Updated port
|
||||
expect(page.locator("h2:has-text('Create New Scenario')")).to_be_visible()
|
||||
expect(page.locator("h2:has-text('Create a New Scenario')")).to_be_visible()
|
||||
|
||||
|
||||
def test_create_new_scenario(page: Page):
|
||||
@@ -20,7 +20,7 @@ def test_create_new_scenario(page: Page):
|
||||
scenario_desc = "A scenario created during an end-to-end test."
|
||||
|
||||
page.fill("input[name='name']", scenario_name)
|
||||
page.fill("textarea[name='description']", scenario_desc)
|
||||
page.fill("input[name='description']", scenario_desc)
|
||||
|
||||
# Expect a network response from the POST request after clicking the submit button.
|
||||
with page.expect_response("**/api/scenarios/") as response_info:
|
||||
|
||||
Reference in New Issue
Block a user