Commit 3b2c044
test(acceptance): form filling e2e scenarios
test/acceptance/forms_test.js -- 5 realistic e2e form flows against the PHP
app, valuable for every acting-actor helper, not just Obscura: fill a field
by label + submit + assert the posted value (the generic /form/* POST
handler's print_r($_POST) pattern config_test.js and within_test.js already
rely on for assertions), check a checkbox by its label + state assertion,
select an option + read the selected value back before submitting, a
multi-field form (name + textarea + select) submitted together, and
clear/append behavior on a pre-filled field.
A sixth, negative (required-field/empty-submit) scenario was considered and
dropped: the only fixture with real required="1" attributes
(form/example4.php) depends on a separate local asset server
(127.0.0.1:8100 for its CSS/JS) not available in this environment, and no
other fixture enforces required in a way that's checkable without relying
on native HTML5 validation UI, which headless/synthetic engines don't
reliably surface the same way. Five scenarios matches the mandate's own
"~5-6" range.
Every scenario verified empirically, twice each for consistency, through
the real CLI against all three helpers this environment can actually run:
Obscura (this mandate's own config), Playwright (--grep to bypass tag
filtering, chromium already available), Puppeteer (its config, which has no
grep filtering at all -- runs unconditionally). All 5 passed on all 3, so
all 5 carry @obscura @playwright @puppeteer. WebDriverIO was not touched --
no Selenium server in this environment to verify against, so no @webdriver
tag was added; left for the maintainer to enable and tag once a Selenium
environment is available, per the mandate's own instruction not to tag
what wasn't proven.
No lib/ changes.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 0e6ee9f commit 3b2c044
1 file changed
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments