22
33namespace Tests \Browser ;
44
5- use Illuminate \Support \Facades \Auth ;
6- use Illuminate \Support \Facades \Hash ;
75use Tests \DuskTestCase ;
86use Laravel \Dusk \Browser ;
7+ use Illuminate \Support \Facades \Auth ;
8+ use Illuminate \Support \Facades \Hash ;
99use Illuminate \Foundation \Testing \DatabaseMigrations ;
1010
1111/**
@@ -24,7 +24,6 @@ class AcachaAdmintLTELaravelTest extends DuskTestCase
2424 */
2525 public function testLandingPage ()
2626 {
27- dump ('testLandingPage ' );
2827 $ this ->browse (function (Browser $ browser ) {
2928 $ browser ->visit ('/ ' )
3029 ->assertSee ('Acacha ' )
@@ -53,7 +52,6 @@ private function logout()
5352 */
5453 public function testLandingPageWithUserLogged ()
5554 {
56- dump ('testLandingPageWithUserLogged ' );
5755 $ this ->browse (function (Browser $ browser ) {
5856 $ user = factory (\App \User::class)->create ();
5957 $ browser ->loginAs ($ user )
@@ -75,8 +73,6 @@ public function testLandingPageWithUserLogged()
7573 */
7674 public function testLoginPage ()
7775 {
78- dump ('testLoginPage ' );
79-
8076 $ this ->browse (function (Browser $ browser ) {
8177 $ browser ->visit ('/login ' )
8278 ->assertSee ('Sign in to start your session ' );
@@ -90,8 +86,6 @@ public function testLoginPage()
9086 */
9187 public function testLogin ()
9288 {
93- dump ('testLogin ' );
94-
9589 $ this ->browse (function (Browser $ browser ) {
9690 $ user = factory (\App \User::class)->create (['password ' => Hash::make ('passw0RD ' )]);
9791 $ browser ->visit ('/login ' )
@@ -115,7 +109,6 @@ public function testLogin()
115109 */
116110 public function testLoginRequiredFields ()
117111 {
118- dump ('testLoginRequiredFields ' );
119112 $ this ->browse (function (Browser $ browser ) {
120113 $ browser ->visit ('/login ' )
121114 ->type ('email ' , '' )
@@ -134,7 +127,6 @@ public function testLoginRequiredFields()
134127 */
135128 public function testLoginRequiredFieldsDisappearsOnKeyDown ()
136129 {
137- dump ('testLoginRequiredFieldsDissappearsOnKeyDown ' );
138130 $ this ->browse (function (Browser $ browser ) {
139131 $ browser ->visit ('/login ' )
140132 ->type ('email ' , '' )
@@ -157,7 +149,6 @@ public function testLoginRequiredFieldsDisappearsOnKeyDown()
157149 */
158150 public function testLoginCredentialsNotMatch ()
159151 {
160- dump ('testLoginCredentialsNotMatch ' );
161152 $ this ->browse (function (Browser $ browser ) {
162153 $ browser ->visit ('/login ' )
163154 ->type ('email ' , 'emailquesegurquenoexisteix@sadsadsa.com ' )
@@ -175,7 +166,6 @@ public function testLoginCredentialsNotMatch()
175166 */
176167 public function testLoginCredentialsNotMatchDissappearsOnKeyDown ()
177168 {
178- dump ('testLoginCredentialsNotMatchDissappearsOnKeyDown ' );
179169 $ this ->browse (function (Browser $ browser ) {
180170 $ browser ->visit ('/login ' )
181171 ->type ('email ' , 'emailquesegurquenoexisteix@sadsadsa.com ' )
@@ -195,8 +185,6 @@ public function testLoginCredentialsNotMatchDissappearsOnKeyDown()
195185 */
196186 public function testLoginWithRememberMe ()
197187 {
198- dump ('testLoginWithRememberMe ' );
199-
200188 $ this ->browse (function (Browser $ browser ) {
201189 $ user = factory (\App \User::class)->create (['password ' => Hash::make ('passw0RD ' )]);
202190 $ browser ->visit ('/login ' )
@@ -220,7 +208,6 @@ public function testLoginWithRememberMe()
220208 */
221209 public function testRegisterPage ()
222210 {
223- dump ('testRegisterPage ' );
224211 $ this ->browse (function (Browser $ browser ) {
225212 $ browser ->visit ('/register ' )
226213 ->assertSee ('Register a new membership ' );
@@ -234,7 +221,6 @@ public function testRegisterPage()
234221 */
235222 public function testPasswordResetPage ()
236223 {
237- dump ('testPasswordResetPage ' );
238224 $ this ->browse (function (Browser $ browser ) {
239225 $ browser ->visit ('/password/reset ' )
240226 ->assertSee ('Reset Password ' );
@@ -248,7 +234,6 @@ public function testPasswordResetPage()
248234 */
249235 public function testHomePageForUnauthenticatedUsers ()
250236 {
251- dump ('testHomePageForUnauthenticatedUsers ' );
252237 $ this ->browse (function (Browser $ browser ) {
253238 $ user = factory (\App \User::class)->create ();
254239 view ()->share ('user ' , $ user );
@@ -265,8 +250,6 @@ public function testHomePageForUnauthenticatedUsers()
265250 */
266251 public function testHomePageForAuthenticatedUsers ()
267252 {
268- dump ('testHomePageForAuthenticatedUsers ' );
269-
270253 $ this ->browse (function (Browser $ browser ) {
271254 $ user = factory (\App \User::class)->create ();
272255 view ()->share ('user ' , $ user );
@@ -285,7 +268,6 @@ public function testHomePageForAuthenticatedUsers()
285268 */
286269 public function testLogout ()
287270 {
288- dump ('testLogout ' );
289271 $ this ->browse (function (Browser $ browser ) {
290272 $ user = factory (\App \User::class)->create ();
291273 view ()->share ('user ' , $ user );
@@ -306,7 +288,6 @@ public function testLogout()
306288 */
307289 public function test404Page ()
308290 {
309- dump ('test404Page ' );
310291 $ this ->browse (function (Browser $ browser ) {
311292 $ browser ->visit ('/asdasdjlapmnnkadsdsa ' )
312293 ->assertSee ('404 ' );
@@ -320,7 +301,6 @@ public function test404Page()
320301 */
321302 public function testNewUserRegistration ()
322303 {
323- dump ('testNewUserRegistration ' );
324304 $ this ->browse (function (Browser $ browser ) {
325305 $ browser ->visit ('/register ' )
326306 ->type ('name ' , 'Sergi Tur Badenas ' )
@@ -345,8 +325,6 @@ public function testNewUserRegistration()
345325 */
346326 public function testNewUserRegistrationRequiredFields ()
347327 {
348- dump ('testNewUserRegistrationRequiredFields ' );
349-
350328 $ this ->browse (function (Browser $ browser ) {
351329 $ browser ->visit ('/register ' )
352330 ->type ('name ' , '' )
@@ -368,8 +346,6 @@ public function testNewUserRegistrationRequiredFields()
368346 */
369347 public function testNewUserRegistrationRequiredFieldsDissappearsOnKeyDown ()
370348 {
371- dump ('testNewUserRegistrationRequiredFieldsDissappearsOnKeyDown ' );
372-
373349 $ this ->browse (function (Browser $ browser ) {
374350 $ browser ->visit ('/register ' )
375351 ->type ('name ' , '' )
@@ -399,8 +375,6 @@ public function testNewUserRegistrationRequiredFieldsDissappearsOnKeyDown()
399375 */
400376 public function testSendPasswordReset ()
401377 {
402- dump ('testSendPasswordReset ' );
403-
404378 $ this ->browse (function (Browser $ browser ) {
405379 $ user = factory (\App \User::class)->create ();
406380 $ browser ->visit ('password/reset ' )
@@ -418,8 +392,6 @@ public function testSendPasswordReset()
418392 */
419393 public function testSendPasswordResetUserNotExists ()
420394 {
421- dump ('testSendPasswordResetUserNotExists ' );
422-
423395 $ this ->browse (function (Browser $ browser ) {
424396 $ browser ->visit ('password/reset ' )
425397 ->type ('email ' , 'notexistingemail@gmail.com ' )
@@ -436,8 +408,6 @@ public function testSendPasswordResetUserNotExists()
436408 */
437409 public function testSendPasswordResetRequiredFields ()
438410 {
439- dump ('testSendPasswordResetRequiredFields ' );
440-
441411 $ this ->browse (function (Browser $ browser ) {
442412 $ browser ->visit ('password/reset ' )
443413 ->press ('Send Password Reset Link ' )
@@ -453,8 +423,6 @@ public function testSendPasswordResetRequiredFields()
453423 */
454424 public function testSendPasswordResetRequiredFieldsDisappearsOnKeyDown ()
455425 {
456- dump ('testSendPasswordResetRequiredFieldsDisappearsOnKeyDown ' );
457-
458426 $ this ->browse (function (Browser $ browser ) {
459427 $ browser ->visit ('password/reset ' )
460428 ->type ('email ' , '' )
0 commit comments