Playwright · Function
test.afterEach
test.afterEach() runs a hook after every test. The hook can use test fixtures and TestInfo to perform cleanup or inspect the test result.
Last updated
- Since
- v1.10
Syntax
test.afterEach(hookFunction)
test.afterEach(title, hookFunction)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
test.beforeEachtest.beforeAlltest.afterAlltest.describetest.info