Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mikebronner's avatar

Laravel Testing - Javascript?

Is it possible to test results of JavaScript updates to the DOM using the Laravel Testing features? I have some methods that are triggered by onKeyUp, and these don't seem to execute in the tests.

Any ideas welcome :)

Thanks!

0 likes
1 reply
bobbybouwmann's avatar

If you want to test javascript as well you will need to use something like Selenium. The Integrated packages of Laracasts uses that technology. However Laravel 5 now uses a lot of the build in tests stuff from Integrated, however not everything including the support for the selenium drivers. So you might want to switch to the integrated package instead.

Please or to participate in this conversation.