-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Creating feature test for dashboard, education, monitoring, and ach…
…ievement page
- Loading branch information
Showing
4 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
use App\Models\User; | ||
use function Pest\Laravel\actingAs; | ||
|
||
beforeEach(function () { | ||
$this->user = User::factory()->forBranch()->create(); | ||
}); | ||
|
||
it('has achievement index page', function () { | ||
actingAs($this->user)->get(route('achievement.index'))->assertOk(); | ||
}); | ||
|
||
it('has achievement dashboard-pencapaian page', function () { | ||
actingAs($this->user)->get(route('achievement.dashboard-pencapaian'))->assertOk(); | ||
}); | ||
|
||
it('has achievement dashboard-growth-new-cin page', function () { | ||
actingAs($this->user)->get(route('achievement.dashboard-growth-new-cin'))->assertOk(); | ||
}); | ||
|
||
it('has achievement dashboard-penutupan-cin page', function () { | ||
actingAs($this->user)->get(route('achievement.dashboard-penutupan-cin'))->assertOk(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
use App\Models\User; | ||
use function Pest\Laravel\actingAs; | ||
|
||
beforeEach(function () { | ||
$this->user = User::factory()->forBranch()->create(); | ||
}); | ||
|
||
it('has dashboard page', function () { | ||
actingAs($this->user)->get(route('dashboard'))->assertOk(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
use App\Models\User; | ||
use function Pest\Laravel\actingAs; | ||
|
||
beforeEach(function () { | ||
$this->user = User::factory()->forBranch()->create(); | ||
}); | ||
|
||
it('has education index page', function () { | ||
actingAs($this->user)->get(route('education.index'))->assertOk(); | ||
}); | ||
|
||
#region webinar-literasi-keuangan | ||
it('has education webinar-literasi-keuangan index page', function () { | ||
actingAs($this->user)->get(route('education.webinar-literasi-keuangan.index'))->assertOk(); | ||
}); | ||
|
||
it('has education webinar-literasi-keuangan template-surat-penawaran-webinar page', function () { | ||
actingAs($this->user)->get(route('education.webinar-literasi-keuangan.template-surat-penawaran-webinar'))->assertOk(); | ||
}); | ||
|
||
it('has education webinar-literasi-keuangan template-presentasi-webinar-literasi-keuangan page', function () { | ||
actingAs($this->user)->get(route('education.webinar-literasi-keuangan.template-presentasi-webinar-literasi-keuangan'))->assertOk(); | ||
}); | ||
|
||
it('has education webinar-literasi-keuangan template-rundown-webinar-literasi-keuangan page', function () { | ||
actingAs($this->user)->get(route('education.webinar-literasi-keuangan.template-rundown-webinar-literasi-keuangan'))->assertOk(); | ||
}); | ||
|
||
it('has education webinar-literasi-keuangan pemetaan-sekolah-kampus-potensi-webinar page', function () { | ||
actingAs($this->user)->get(route('education.webinar-literasi-keuangan.pemetaan-sekolah-kampus-potensi-webinar'))->assertOk(); | ||
}); | ||
|
||
it('has education webinar-literasi-keuangan input-rencana-penyelenggaraan-webinar page', function () { | ||
actingAs($this->user)->get(route('education.webinar-literasi-keuangan.input-rencana-penyelenggaraan-webinar'))->assertOk(); | ||
}); | ||
#endregion webinar-literasi-keuangan | ||
|
||
it('has education pembukaan-rekening-online page', function () { | ||
actingAs($this->user)->get(route('education.pembukaan-rekening-online'))->assertOk(); | ||
}); | ||
|
||
it('has education employee-get-cin page', function () { | ||
actingAs($this->user)->get(route('education.employee-get-cin'))->assertOk(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
use App\Models\User; | ||
use function Pest\Laravel\actingAs; | ||
|
||
beforeEach(function () { | ||
$this->user = User::factory()->forBranch()->create(); | ||
}); | ||
|
||
it('has monitoring index page', function () { | ||
actingAs($this->user)->get(route('monitoring.index'))->assertOk(); | ||
}); | ||
|
||
it('has monitoring create page', function () { | ||
actingAs($this->user)->get(route('monitoring.create'))->assertOk(); | ||
}); |