refreshApplication(); Artisan::call('db:seed', ['--class' => VisualContentSeeder::class, '--force' => true]); SiteSetting::instance(); }); afterEach(function (): void { putenv('APP_FROZEN_NOW'); unset($_ENV['APP_FROZEN_NOW'], $_SERVER['APP_FROZEN_NOW']); }); $screens = [ 'home' => '/', 'services' => '/servicos', 'portfolio' => '/portfolio', 'portfolio-detail' => '/portfolio/casamento-ana-lucas', 'about' => '/sobre', 'contact' => '/contato', 'privacy' => '/privacidade', 'not-found' => '/__missing-visual-page', ]; $viewports = [ 'desktop' => [1440, 1000], 'mobile' => [390, 844], ]; foreach ($screens as $screen => $path) { foreach ($viewports as $viewport => [$width, $height]) { it("matches {$screen} {$viewport} visual baseline", function () use ($path, $width, $height): void { $this->assertStableScreenshotMatches( $this->visit($path, [ 'reducedMotion' => 'reduce', ]) ->withLocale('pt-BR') ->withTimezone('America/Sao_Paulo') ->resize($width, $height), resetScroll: $path === '/', ); }); } }