stack = seedBrowserResourceStack(); $this->application = createBrowserApplication($this->stack, [ 'uuid' => 'app-traffic-analytics', 'name' => 'Traffic App', ]); }); it('shows the disabled empty state on the application analytics tab', function () { loginAndSkipBoarding(); $url = applicationConfigurationUrl( $this->stack['project'], $this->stack['environment'], $this->application ); $page = visit("{$url}/analytics"); $page->assertSee('Traffic App') ->assertSee('Traffic analytics is not enabled') ->assertSee('Enable Sentinel traffic analytics for this server to start collecting request analytics.') ->screenshot(filename: 'application-analytics-disabled-empty-state'); }); it('shows the disabled empty state on the global analytics page', function () { loginAndSkipBoarding(); $page = visit('/analytics'); $page->assertSee('Analytics') ->assertSee('Traffic analytics is not enabled') ->assertSee('Enable Sentinel traffic analytics on a server to see request analytics here.') ->screenshot(filename: 'global-analytics-disabled-empty-state'); }); it('shows the disabled empty state on the dashboard traffic widget', function () { $page = loginAndSkipBoarding(); $page->assertSee('Traffic analytics') ->assertSee('Traffic analytics is not enabled') ->assertSee('Enable Sentinel traffic analytics on a server to see a team-wide summary here.') ->screenshot(filename: 'dashboard-traffic-analytics-disabled-empty-state'); });