fix(12-01): update test_port_autofill to navigate to /printers/new

- Plan 11-01 moved the add-printer form from /printers to /printers/new
- Update page.goto URL to match the current route
- Comment updated to explain the route change context
This commit is contained in:
2026-04-15 15:43:41 +02:00
parent 5a02f4c05b
commit 2ab53f6ed9
+3 -3
View File
@@ -10,9 +10,9 @@ def test_port_autofill(page, live_server: str) -> None:
Evidence for UX-02: tests/e2e/test_port_autofill.py
Closes: PRNT-03 Alpine.js port auto-derivation requirement.
"""
# /printers renders a full page (extends base.html) with Alpine.js loaded
# and the printer form embedded via {% include "partials/printer_form.html" %}
page.goto(f"{live_server}/printers", wait_until="domcontentloaded")
# /printers/new renders a full page (extends base.html) with Alpine.js loaded
# and the add-printer form (moved from /printers to /printers/new in Plan 11-01)
page.goto(f"{live_server}/printers/new", wait_until="domcontentloaded")
# Wait for Alpine to initialise (x-data hydration on the form wrapper)
page.wait_for_selector("input[name='ip_address']")