Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion catatan_rilis.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ Di rilis v2508.0.0 berisi perbaikan yang diminta Komunitas Open Desa.

#### Penyesuaian Teknis

1. [#521](https://github.com/OpenSID/pantau/issues/521) Tambahkan e2e testing.
1. [#521](https://github.com/OpenSID/pantau/issues/521) Tambahkan e2e testing.
2. [#526](https://github.com/OpenSID/pantau/issues/526) Upgrade packages berdasarkan temuan composer audit
56 changes: 32 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/Feature/Auth/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function test_users_can_authenticate_using_the_login_screen()
{
$user = User::factory()->create();

$response = $this->post('/login', [
$response = $this->withoutMiddleware(\App\Http\Middleware\VerifyCsrfToken::class)->post('/login', [
'email' => $user->email,
'password' => 'password',
]);
Expand Down
12 changes: 7 additions & 5 deletions tests/Feature/Auth/PasswordConfirmationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ public function test_password_can_be_confirmed()
{
$user = User::factory()->create();

$response = $this->actingAs($user)->post('/password/confirm', [
'password' => 'password',
]);

$response = $this->withoutMiddleware(\App\Http\Middleware\VerifyCsrfToken::class)
->actingAs($user)
->post('/password/confirm', [
'password' => 'password',
]);
$response->assertRedirect();
$response->assertSessionHasNoErrors();
}
Expand All @@ -35,7 +36,8 @@ public function test_password_is_not_confirmed_with_invalid_password()
{
$user = User::factory()->create();

$response = $this->actingAs($user)->post('/password/confirm', [
$response = $this->withoutMiddleware(\App\Http\Middleware\VerifyCsrfToken::class)
->actingAs($user)->post('/password/confirm', [
'password' => 'wrong-password',
]);

Expand Down
6 changes: 3 additions & 3 deletions tests/Feature/Auth/PasswordResetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function test_reset_password_link_can_be_requested()

$user = User::factory()->create();

$this->post('/password/email', ['email' => $user->email]);
$this->withoutMiddleware(\App\Http\Middleware\VerifyCsrfToken::class)->post('/password/email', ['email' => $user->email]);

Notification::assertSentTo($user, ResetPassword::class);
}
Expand All @@ -36,7 +36,7 @@ public function test_reset_password_screen_can_be_rendered()

$user = User::factory()->create();

$this->post('/password/email', ['email' => $user->email]);
$this->withoutMiddleware(\App\Http\Middleware\VerifyCsrfToken::class)->post('/password/email', ['email' => $user->email]);

Notification::assertSentTo($user, ResetPassword::class, function ($notification) {
$response = $this->get('/password/reset/'.$notification->token);
Expand All @@ -53,7 +53,7 @@ public function test_password_can_be_reset_with_valid_token()

$user = User::factory()->create();

$this->post('/password/email', ['email' => $user->email]);
$this->withoutMiddleware(\App\Http\Middleware\VerifyCsrfToken::class)->post('/password/email', ['email' => $user->email]);

Notification::assertSentTo($user, ResetPassword::class, function ($notification) use ($user) {
$response = $this->post('/password/reset', [
Expand Down