In laravel 5.4, I see that there are methods like:
$browser->pause(1000); $browser->waitFor('.selector'); $browser->waitForLink('Create');
But I do not see them in Laravel 5.3.
We have two chained selection blocks into which the values ββof the second selection window are loaded via ajax based on the selection from the first selection block. The problem is that when the laravel test starts, the second selectbox / ajax does not wait to load, which leads to a test failure, because it cannot select any value from the second selection block.
$this->visit('/department'); $this->select('1', 'country_id'); $this->select('1', 'region_id');
I also tried using sleep() , but that did not work.
Any idea on functional testing of such a scenario in 5.3, please? Thanks
dev02
source share