text stringlengths 0 133 |
|---|
[test.sh] starting backend (Flask :5101)... |
[test.sh] starting frontend (Vite :5273)... |
[test.sh] backend up after 2s |
[test.sh] frontend up after 1s |
[test.sh] seeding... |
[seed] alice=1 bob=2 urgent=1 backend=2 apollo=1 mercury=2 |
[test.sh] running pytest... |
============================= test session starts ============================== |
platform linux -- Python 3.11.2, pytest-8.4.1, pluggy-1.6.0 |
rootdir: /tests |
plugins: json-ctrf-0.3.5 |
collected 12 items |
../tests/test_dashboard.py ...........F [100%] |
=================================== FAILURES =================================== |
____________________ test_add_user_posts_and_count_updates _____________________ |
page = <Page url='http://127.0.0.1:5273/'> |
def test_add_user_posts_and_count_updates(page): |
"""Fill Add User name+email, submit → POST /api/users AND 'Users (3)' appears.""" |
captured = [] |
def on_request(req): |
if req.method == "POST" and req.url.endswith("/api/users"): |
captured.append(req.post_data or "") |
page.on("request", on_request) |
# Fill the first text input (Name) and the email input (Email). |
name_in = page.locator('input[type="text"]').first |
email_in = page.locator('input[type="email"]').first |
name_in.click(timeout=5_000) |
name_in.press_sequentially("Carol", delay=20, timeout=5_000) |
email_in.click(timeout=5_000) |
email_in.press_sequentially("carol@example.com", delay=20, timeout=5_000) |
page.wait_for_timeout(200) |
# Submit by clicking the Add User button (label match) — fall back to |
# pressing Enter in the email input. |
add_btn = [ |
b for b in page.get_by_role("button").all() |
if (b.inner_text() or "").strip().lower() == "add user" |
] |
if add_btn: |
add_btn[0].click(timeout=5_000) |
else: |
email_in.press("Enter", timeout=5_000) |
page.wait_for_timeout(2000) |
> assert captured, "no POST to /api/users observed after Add User submit" |
E AssertionError: no POST to /api/users observed after Add User submit |
E assert [] |
/tests/test_dashboard.py:185: AssertionError |
==================================== PASSES ==================================== |
=========================== short test summary info ============================ |
PASSED ../tests/test_dashboard.py::test_no_page_errors |
PASSED ../tests/test_dashboard.py::test_h1_dashboard |
PASSED ../tests/test_dashboard.py::test_new_project_link |
PASSED ../tests/test_dashboard.py::test_projects_render |
PASSED ../tests/test_dashboard.py::test_users_render |
PASSED ../tests/test_dashboard.py::test_tags_render |
PASSED ../tests/test_dashboard.py::test_users_count_badge |
PASSED ../tests/test_dashboard.py::test_tags_count_badge |
PASSED ../tests/test_dashboard.py::test_add_user_form_fields |
PASSED ../tests/test_dashboard.py::test_add_tag_form_color_picker |
PASSED ../tests/test_dashboard.py::test_delete_tag_sends_delete_and_removes |
FAILED ../tests/test_dashboard.py::test_add_user_posts_and_count_updates - As... |
========================= 1 failed, 11 passed in 7.19s ========================= |
[test.sh] starting backend (Flask :5101)... |
[test.sh] starting frontend (Vite :5273)... |
[test.sh] backend up after 2s |
[test.sh] frontend up after 1s |
[test.sh] seeding... |
[seed] alice=1 bob=2 urgent=1 backend=2 apollo=1 mercury=2 |
[test.sh] running pytest... |
============================= test session starts ============================== |
platform linux -- Python 3.11.2, pytest-8.4.1, pluggy-1.6.0 |
rootdir: /tests |
plugins: json-ctrf-0.3.5 |
collected 12 items |
../tests/test_dashboard.py ............ [100%] |
==================================== PASSES ==================================== |
=========================== short test summary info ============================ |
PASSED ../tests/test_dashboard.py::test_no_page_errors |
PASSED ../tests/test_dashboard.py::test_h1_dashboard |
PASSED ../tests/test_dashboard.py::test_new_project_link |
PASSED ../tests/test_dashboard.py::test_projects_render |
PASSED ../tests/test_dashboard.py::test_users_render |
PASSED ../tests/test_dashboard.py::test_tags_render |
PASSED ../tests/test_dashboard.py::test_users_count_badge |
PASSED ../tests/test_dashboard.py::test_tags_count_badge |
PASSED ../tests/test_dashboard.py::test_add_user_form_fields |
PASSED ../tests/test_dashboard.py::test_add_tag_form_color_picker |
PASSED ../tests/test_dashboard.py::test_delete_tag_sends_delete_and_removes |
PASSED ../tests/test_dashboard.py::test_add_user_posts_and_count_updates |
============================== 12 passed in 7.15s ============================== |
[test.sh] starting backend (Flask :5001)... |
[test.sh] starting frontend (Vite :5173)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.