From d5dcacd553ee8305896ae3175f02ca023b500ee2 Mon Sep 17 00:00:00 2001 From: welke Date: Tue, 25 Aug 2026 12:29:32 -0300 Subject: [PATCH 1/3] LoginTest com o callback preenchido --- tests/Browser/LoginTest.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index 3252ab8..6b1de4d 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -15,14 +15,13 @@ public function test_login(): void { $this->browse(function (Browser $browser) { $browser->visit('/') - ->clickLink('Entrar') - ->waitForText('Usuário') - ->type('#loginUsuario', '111111') - ->press('Login') - ->pause(1000) - ->visit('/') - ->assertSee('Sair'); - + ->clickLink('Entrar') + ->waitForText('Usuário') + ->type('#callback', 'http://defesas/callback') + ->type('#loginUsuario', '111111') + ->press('Login') + ->waitForText('Defesas') + ->assertSee('Sair'); }); } } From ced2d08b284f4fc8aaa3775db764a244ce6ac0fa Mon Sep 17 00:00:00 2001 From: welke Date: Tue, 25 Aug 2026 14:51:11 -0300 Subject: [PATCH 2/3] Mudando user do LoginTest --- tests/Browser/LoginTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index 6b1de4d..073f03c 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -18,9 +18,8 @@ public function test_login(): void ->clickLink('Entrar') ->waitForText('Usuário') ->type('#callback', 'http://defesas/callback') - ->type('#loginUsuario', '111111') + ->type('#loginUsuario', '122222') ->press('Login') - ->waitForText('Defesas') ->assertSee('Sair'); }); } From d79d2de9463e9fc114134ebc0c44225e562423f0 Mon Sep 17 00:00:00 2001 From: welke Date: Tue, 25 Aug 2026 14:56:33 -0300 Subject: [PATCH 3/3] =?UTF-8?q?LoginTest=20mudan=C3=A7a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Browser/LoginTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index 073f03c..16a9415 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -17,8 +17,7 @@ public function test_login(): void $browser->visit('/') ->clickLink('Entrar') ->waitForText('Usuário') - ->type('#callback', 'http://defesas/callback') - ->type('#loginUsuario', '122222') + ->type('#loginUsuario', '1111') ->press('Login') ->assertSee('Sair'); });