Commit 1b543f0
test: E2E Playwright golden rule tests — js_on and js_off for interactive components
- Add tests/e2e/conftest.py: session-scoped FastAPI (uvicorn thread) and
Django (subprocess) server fixtures, plus js_on/js_off parameterized page fixtures
- Add tests/e2e/test_bulma_jinja.py: 6 tests covering modal open/close,
notification dismiss, panel expand, navbar burger, form-field render, and
no-JS accessibility (2x each via param = 12 total, 1 skipped on js_on mode)
- Add tests/e2e/test_bulma_cotton.py: 3 tests covering form-field, modal,
and card rendering (2x each via param = 6 total)
- Add tests/e2e/_django_e2e_server.py + _e2e_django_settings.py: isolated
subprocess server with django_cotton, COTTON_DIR=cotton/bulma, and
COTTON_SNAKE_CASED_NAMES=False so cotton renders fully without polluting the
main pytest process Django settings (prevents unit test regressions)
- Migrate all 14 cotton/bulma templates from <c-props> to <c-vars> to be
compatible with django-cotton 2.x (c-props compiled to component lookup in 2.x)
- Mount /static/cf_ui static files in the jinja integration app so Alpine.js
initializes for js_on E2E tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a258737 commit 1b543f0
20 files changed
Lines changed: 288 additions & 14 deletions
File tree
- src/cf_ui/templates/cotton/bulma/cf
- tests
- e2e
- integration/jinja_app
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments