Got it working with the dev-master version of the laracasts/integrated package and used it the same old way.
composer require laracasts/integrated dev-master --dev
Anyone know how to get Laravel 5.1 and its integration testing to work with Selenium, like the original package could: https://github.com/laracasts/Integrated/wiki/Installation-and-Setup ? https://laracasts.com/series/intuitive-integration-testing/episodes/5
Got it working with the dev-master version of the laracasts/integrated package and used it the same old way.
composer require laracasts/integrated dev-master --dev
I didn't figure out yet how to execute tests in Laravel 5.1 with javascript interaction...
What class are you extending in your tests?
Is there any chance you could expand on this answer?
I've never used laracasts/integrated before and when I set it up, I found that a lot of it seems to already be in the core in 5.1 which has caused me a lot of confusion.
Hi SERVANT14, am going through roughly the same thing, like i switched to the 5.1 in-built Integrated package because it allows multi-dimensional inputs testing, but it seems it completely ignores all javascript interaction wheres the stand alone version could. Now such actions as ->click('link') when link has an OnClick() event are never triggered, which is a bit frustrating. Losing such important features to obtain functionality that was essentially meant to correct a bug. Any idea around this?
I am on the same boat @emungai . Its really strange that such a common task ( like testing javascript elements and forms ) has no answer for the native testing suite in Laravel > 5.1. I think I am gonna try selenium and phpunit as I would if not using laravel at all. But this way I will miss the fluent syntax click() , visit() e.t.c.
Again, really strange that I can't find anything about this and I don't think that @Jeffrey mention something about this in the Testing series. Any clue would be great.
BUMPing this.
It took me all morning to work out that the Laracasts/integration package was mostly in the 5.1 core now - Jeffrey really needs to mark the https://laracasts.com/series/intuitive-integration-testing/ series as archived.
But I am still trying to find an easy solution to testing JS based views with, for example, selenium - as per the video series.
In my quest, via many google searches, I read somewhere that Codeception includes selenium. Is using that going to give us what we want?
I'm finding Codeception has trouble properly spinning up the Laravel framework - running simple tests is fine, but anything that dives deeper into the class structure is a bit hit-and-miss. I'm going to revert back to trusty old PHPUnit
You might like this relatively recent video: https://laracasts.com/series/whatcha-working-on/episodes/1
Please or to participate in this conversation.