zenstruck / browser

A fluent interface for your Symfony functional tests.
MIT License
186 stars 17 forks source link

`KernelBrowser::clickAndX()` methods #80

Closed kbond closed 2 years ago

kbond commented 2 years ago
$browser
    ->clickAndIntercept('button')
    // make assertions on the redirect with profiler enabled

    // same as:
    ->interceptRedirects()
    ->withProfiling()
    ->click('button')
;
$browser
    ->clickAndValidate('button') // intercept redirect with profiler, fail if (form) validation errors
;