Clicking multiple links on the same page with Dusk

First off, Dusk is incredible. But I have the need to cycle through a series of links on my page, regardless of what the link text or url is. I wan...
00

Laravel CI Testing with GitLab

Hi all, While i was reading this topic:...
00

Multiple databases and testing

I'm trying to work out a practical way of writing tests when multiple databases are needed. We can't use Database Migrations in tests, as th...
03

How to test job arguments?

How to test job arguments if Exception is thrown after job is dispatched. This test below returns green, but i found no way to test job arguments....
00

Test order of elemets on page

Hi! I want to test whether my sorting works properly with Laravel TestCase. I have simple test page: <div id="values&quo...
01

DatabaseTransactions.php trait does not work in Laravel 5.4

I used to use DatabaseTransactions trait in my tests to refresh the migrations every time i run my tests and it was working fine in laravel 5.3 but...
08

Defining and using named route in laravel unit test (phpunit)

I have created a helper method the uses laravel route to reformat the result returned from laravel URL::route($routeName) as below...
00

Listeners still being executed

hey guys, i have read the doc for mocking events and especially $this->withoutEvents method but it doesn't seem to work, My listeners are still...
00

Pass cookie during tests

In my Laravel unit testing, I need to give a cookie to access the page, but it doesn't seem to work. I'm using Laravel's example:...
00

Getting "PHP Fatal Error : Trait" when running phpunit?

Hi all, I am getting this error whenever I run phpunit PHP Fatal error: Trait 'MakeCustomerTrait' not found in C:\Users\aln\...
00

Laravel + Vue SPA + Dusk failed to assert url e.g. (expecting /app/#/someurl, actual /app)

My Tests are failing because I can't get the Dusk to get the exact URL is there any way how to work around it?...
00

Prevent event listeners when using model factories.

Hey all, I'm trying to rerun previously successfully PHPUnit tests after adding a bunch of Listeners and I'm running into a wall. I have lis...
04

Dusk and Browserstack

Im having trouble setting up dusk with browserstack and SauceLabs. We currently are using travis for our php unit tests but dusk fails since it nee...
01

Dusk : click a font awesome icon

Hi, I'm struggling with Dusk. I try to $browser->click(...) on a font awesome icon but I cant find a good selector to get it...
02

Custom contants/functions make PHPUnit fail (already defined/declared)

Hi, I need a few constants throughout my application. So I wrote a config/constants.php where I put them all: d...
00

How to test json structure with phpunit?

I return JSON in a structure like below. It returns users or contacts. The data returned for users is different to contacts. { &qu...
01

Running laravel dusk tests on Homestead for Windows

I'm using homestead on windows 10 and installed laravel 5.4 when I'm trying to run dusk tests I get the following error: 1) Tests\Fe...
01

Laravel CI Testing with GitLab

I'd love to set Laravel up on GitLab with CI, however I can not find any tutorials on how to configure the .gitlab-ci.yml file for a b...
25

Non-existent columns in sqlite

I was re-factoring some code and all my tests against sqlite were passing - 'oh good!'... I thought. Then ran the code against mysql and it blew u...
00

TTY mode requires /dev/tty to be writable

I've set up my first tests with Dusk and they work when I'm on the machine that's executing them (ssh). I'm trying to setup rocketeer on my local (...
07