create(); $this->actingAs($user)->get('/')->assertOk()->assertViewIs('templates.base.core'); $this->actingAs($user)->get('/account')->assertOk()->assertViewIs('templates.base.core'); $this->actingAs($user)->get('/server/some-uuid')->assertOk()->assertViewIs('templates.base.core'); }); test('guests also receive the react shell', function () { $this->get('/')->assertOk()->assertViewIs('templates.base.core'); }); test('locales are returned as json', function () { $user = User::factory()->create(); $response = $this->actingAs($user)->getJson('/locales/locale.json?locale=en&namespace=auth'); $response->assertOk(); expect($response->json())->toBeArray(); expect($response->json())->not->toBeEmpty(); });