Commit 909c877
feat: add lifecycle hooks to page objects (_before, _after, _afterSuite) (#5512)
Page objects now support lifecycle hooks that mirror the helper hook system.
_before() runs lazily on first method call per test, _after() runs after
each test for used page objects, and _beforeSuite()/_afterSuite() run for
all page objects that define them. Also documents Data Objects pattern for
REST-based test data management with automatic cleanup.
Co-authored-by: DavertMik <davert@testomat.io>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8e495d9 commit 909c877
File tree
10 files changed
+398
-59
lines changed- docs
- lib
- listener
- test
- data/sandbox/configs/pageObjects
- pages
- runner
10 files changed
+398
-59
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
0 commit comments