Replies: 1 comment
-
|
Pest e2e tests are stored in Browser folder so tests/Browser... and you can call it whatever you like, renaming it to tests/E2E, however, Pest naturally knows it as tests/Browser.. so it will create screenshots in Browser (cannot be changed to e.g. E2E). Store e2e tests in tests/Browser and that's it. In the tests folder you can have Unit, Feature and Browser tests.. Feature tests are Integration tests, and e2e are Browser tests. Interesting switch from Cypress. I think Pest Browser still needs to mature to have everything needed. But if you're testing against a Laravel project, then it makes sense. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using Cypress for my e2e tests for a while, but I would like to switch to Pest now.
The Pest documentation seems to suggest to have browser tests in
tests/Browser, but thepest:testartisan command does not have an option to create browser tests, Pest browser tests that is. It has the--duskoption which indeed creates a test intests/Browserbut it's a Dusk test, so not what I was expecting.On the other hand, having browser tests in
tests/Feature/Browser, which I can create withphp artisan pest:test Browser/SignInTest, is handy as I can run all my test with one command.What do people do? How do you organise your feature and browser tests?
Beta Was this translation helpful? Give feedback.
All reactions