How can I specify the order in mink / behat tests?

I use mink / behat to test my site. I need some functions to be performed before others. Is there a way to specify the execution order?

For example: There are 3 functions: administration, login, purchase. I need to execute them in the following order: Login, Administration, Buy

Thanks!

+4
source share
1 answer

Behat executes files in alphabetical order. You can prefix them by number to force order.

But...

The scripts should be independent and the order of execution should not matter.

+6
source

Source: https://habr.com/ru/post/1488095/


All Articles