Separate dashboard functions from grouped administration operations
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -25,6 +25,9 @@ final class EditorialDashboardBuildTest extends TestCase
|
||||
$actor = User::factory()->create();
|
||||
config(['portal.managers' => [$actor->email]]);
|
||||
$this->actingAsWithMfa($actor);
|
||||
$nativeKey = 'resources/js/pages/dashboard.tsx';
|
||||
$this->assertArrayHasKey($nativeKey, $manifest);
|
||||
$this->get('/dashboard', ['Accept' => 'text/html'])->assertOk()->assertSee($manifest[$nativeKey]['file'], false);
|
||||
foreach (['/management/editorial', '/management/editorial?kind=legislation'] as $url) {
|
||||
$this->get($url, ['Accept' => 'text/html'])->assertOk()->assertSee('data-page=', false)->assertSee($manifest[$key]['file'], false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user