From 2a177f6491905a73192492b34dbcffa060a0c029 Mon Sep 17 00:00:00 2001 From: welke Date: Mon, 24 Aug 2026 15:21:00 -0300 Subject: [PATCH 1/8] Adicionando LoginTest --- tests/Browser/LoginTest.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/Browser/LoginTest.php diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php new file mode 100644 index 0000000..1611cb2 --- /dev/null +++ b/tests/Browser/LoginTest.php @@ -0,0 +1,26 @@ +browse(function (Browser $browser) { + $browser->visit('/') + ->clickLink('Entrar') + ->waitForText('Usuário') + ->type('#loginUsuario', '111111') + ->press('Login') + ->pause(1000) + ->assertSee('Sair'); + }); + } +} From f0caf0ba1f9827335bda0add8ba46694e6c77744 Mon Sep 17 00:00:00 2001 From: welke Date: Mon, 24 Aug 2026 15:31:15 -0300 Subject: [PATCH 2/8] loginTest --- tests/Browser/LoginTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index 1611cb2..4836b5a 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -20,7 +20,7 @@ public function test_login(): void ->type('#loginUsuario', '111111') ->press('Login') ->pause(1000) - ->assertSee('Sair'); + ->assertSee('Título'); }); } } From 0b4c73ff47e49bb3d59e2a0967daaedc82ee7c78 Mon Sep 17 00:00:00 2001 From: welke Date: Mon, 24 Aug 2026 15:47:06 -0300 Subject: [PATCH 3/8] =?UTF-8?q?Corre=C3=A7=C3=A3o=20LoginTest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Browser/LoginTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index 4836b5a..2de2de4 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -20,7 +20,7 @@ public function test_login(): void ->type('#loginUsuario', '111111') ->press('Login') ->pause(1000) - ->assertSee('Título'); + ->waitForLocation('/'); }); } } From abf3bed0985d05cc636e5bbd099ada954d8a9aa4 Mon Sep 17 00:00:00 2001 From: welke Date: Mon, 24 Aug 2026 15:54:14 -0300 Subject: [PATCH 4/8] =?UTF-8?q?Corre=C3=A7=C3=A3o=20Logintest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Browser/LoginTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index 2de2de4..f254344 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -19,7 +19,6 @@ public function test_login(): void ->waitForText('Usuário') ->type('#loginUsuario', '111111') ->press('Login') - ->pause(1000) ->waitForLocation('/'); }); } From b700af8491c8070954587a86f1f802fa12581cfe Mon Sep 17 00:00:00 2001 From: welke Date: Mon, 24 Aug 2026 16:03:14 -0300 Subject: [PATCH 5/8] =?UTF-8?q?LoginTest=20corre=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Browser/LoginTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index f254344..13dd92d 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -19,7 +19,8 @@ public function test_login(): void ->waitForText('Usuário') ->type('#loginUsuario', '111111') ->press('Login') - ->waitForLocation('/'); + ->assertSee('Sair'); + }); } } From aa65ebc35a9f22a0665bc3585850b79518319d3c Mon Sep 17 00:00:00 2001 From: welke Date: Mon, 24 Aug 2026 16:15:38 -0300 Subject: [PATCH 6/8] LoginTest Corrigindo --- tests/Browser/LoginTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index 13dd92d..2a4bfc7 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -19,7 +19,8 @@ public function test_login(): void ->waitForText('Usuário') ->type('#loginUsuario', '111111') ->press('Login') - ->assertSee('Sair'); + ->assertSee('Filtros') + ->pause(5000); }); } From ee52b92496dc7ca403212b77b785e06b546354eb Mon Sep 17 00:00:00 2001 From: welke Date: Mon, 24 Aug 2026 16:20:48 -0300 Subject: [PATCH 7/8] Corrigindo novamente o LoginTest --- tests/Browser/LoginTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index 2a4bfc7..5d56902 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -19,8 +19,8 @@ public function test_login(): void ->waitForText('Usuário') ->type('#loginUsuario', '111111') ->press('Login') - ->assertSee('Filtros') - ->pause(5000); + ->pause(100) + ->clickLink('Sair'); }); } From 2c98e97205c68e66bd2ab34d43d1d9d20bfcc1d4 Mon Sep 17 00:00:00 2001 From: welke Date: Mon, 24 Aug 2026 16:28:36 -0300 Subject: [PATCH 8/8] =?UTF-8?q?LoginTest=20nova=20Corre=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Browser/LoginTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index 5d56902..3252ab8 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -19,8 +19,9 @@ public function test_login(): void ->waitForText('Usuário') ->type('#loginUsuario', '111111') ->press('Login') - ->pause(100) - ->clickLink('Sair'); + ->pause(1000) + ->visit('/') + ->assertSee('Sair'); }); }