actingAs(operator('Owner'), 'operator') ->get(route('admin.overview')) ->assertOk() ->getContent(); expect($html)->toContain('connectionBanner(') ->and($html)->toContain('data-login-url="'.route('admin.login').'"') ->and(substr_count($html, 'connectionBanner('))->toBe(1); }); it('gives the portal its own sign-in route as the 419 fallback', function () { $user = User::factory()->create(); $html = $this->actingAs($user) ->get('/dashboard') ->assertOk() ->getContent(); expect($html)->toContain('connectionBanner(') ->and($html)->toContain('data-login-url="'.route('login').'"') ->and(substr_count($html, 'connectionBanner('))->toBe(1); });