I get Fatal error: Uncaught Error: Class "P\Tests\Browser\ExampleTest" #108
Replies: 7 comments 1 reply
-
I don't see anything here that would specifically indicate the issue. We does tests with Pest via https://github.com/orchestral/pest-plugin-testbench/blob/3.x/tests/Browser/BrowserTest.php Also, it's odd that you changed the view path at runtime and tests without vite. The whole point of Dusk tests it to test your application on the actual Browser with CSS and JS. |
Beta Was this translation helpful? Give feedback.
-
Also, in-memory database doesn't work with Dusk since web server and test are 2 separate php instance. You need persistent database here. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response. To clarify, I modified the view path and disabled Vite as part of troubleshooting to isolate the issue, but even after reverting those changes and using a minimal configuration in my DuskTestCase, I am still encountering the same error. I am following the installation steps outlined in the documentation here: Testbench Dusk Installation. However, I suspect I may have missed something during the setup. As my next step, I’ll try reinstalling the package from scratch to ensure everything is correctly configured |
Beta Was this translation helpful? Give feedback.
-
There's nothing in your description that could indicate an issue. |
Beta Was this translation helpful? Give feedback.
-
I'm still facing issues running my tests, and I’m having trouble understanding what’s causing the error as shown in the screenshot . I’ve followed the installation guide closely and simplified my setup, but the problem persists. I would appreciate any help in understanding the error more clearly |
Beta Was this translation helpful? Give feedback.
-
The documentation was created for PHPUnit, maybe start with that. |
Beta Was this translation helpful? Give feedback.
-
How do i persist model relationships ? , relationships return null when the browser opens |
Beta Was this translation helpful? Give feedback.
-
Description:
i get the following error (from error screenshot)when i try to run the test ,Please assist. Note: i am using pest
Fatal error: Uncaught Error: Class "P\Tests\Browser\ExampleOneTest" not found in /Users/yodah/Desktop/Workspace/packages/wirechat/wirechat/vendor/orchestra/testbench-dusk/src/server.php:37 Stack trace: #0 {main} thrown in /Users/yodah/Desktop/Workspace/packages/wirechat/wirechat/vendor/orchestra/testbench-dusk/src/server.php on line 37
Steps To Reproduce:
My DuskTestCase
My testbench.yaml
Beta Was this translation helpful? Give feedback.
All reactions