File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,30 @@ In this helper you can replace the parent's methods with your own implementation
296296You can also replace the `_before` and `_after` hooks, which might be an option
297297when you need to customize starting and stopping of a testing session.
298298
299+ ### Interactive Pause
300+
301+ To enable the `pause()` function to start the [Interactive Pause](https://codeception.com/docs/02-GettingStarted#Interactive-Pause)
302+ in a helper, you need to import the `Pause` trait:
303+
304+ {% highlight php %}
305+
306+ <?php
307+ namespace Helper;
308+
309+ use Codeception\Lib\Actor\Shared\Pause;
310+
311+ class Acceptance extends \Codeception\Module
312+ {
313+ use Pause;
314+
315+ public function myFunction()
316+ {
317+ $this-> pause();
318+ }
319+ }
320+
321+ {% endhighlight %}
322+
299323### Hooks
300324
301325Each module can handle events from the running test. A module can be executed before the test starts,
You can’t perform that action at this time.
0 commit comments