davide-casiraghi / ci-global-calendar

Global Contact Improvisation Calendar (GCIC). Event calendar designed for the worldwide community of the Contact Improvisation Dance form.
MIT License
6 stars 4 forks source link

Fix Laravel dusk tests #48

Open davide-casiraghi opened 5 years ago

davide-casiraghi commented 5 years ago

The most of Laravel Dusk tests are broken. The problem is related to the loginUser() function.

davide-casiraghi commented 5 years ago

I've written now a proper test for the login process: test_user_can_login This shows me this error evidence: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge'

davide-casiraghi commented 5 years ago

Checking the dump of the test_user_can_login function I get:

testuser@dusk.com These credentials do not match our records.

davide-casiraghi commented 5 years ago

Dusk should be run with this string: php artisan dusk --env=dusk-local

Set the configuration parameters in a file called: .env.dusk.local

davide-casiraghi commented 5 years ago

done

fixed also the event test to select the start and the end dates, that now are compulsory

davide-casiraghi commented 5 years ago

Now Laravel Dusk tests works but they delete the local db... :)

davide-casiraghi commented 5 years ago

Now dusk tests run in TravisCI!! 👍 But still deleting my local DB.