Repository navigation
v0.3.0
Network fixtures
Captures no longer depend on the network for remote images. Serve any remote URL from a file in your repository:
ScreenshotSuite::make()
->fixture('https://www.gravatar.com/avatar/**', 'workbench/fixtures/avatar.png')The pattern is matched against the whole URL, query string included. Pass a closure instead of a path to choose a file per request. A fixture whose file is missing fails the capture with Fixture failed instead of writing an image with a broken asset.
Filament's default avatar works with no setup. Requests to ui-avatars.com are answered locally with the same initials and colours, so top-bar captures keep a realistic avatar. You no longer need hide('.fi-user-avatar').
Remote request warnings. After each capture, Focus warns about every remote URL that loaded over the network without a fixture, one warning per origin. Accept the ones that should load with allowRemote():
->allowRemote('https://fonts.bunny.net/**')The themes and stability docs cover fixtures in full. They also explain why pages styled with the system font can differ between runs on macOS, and how to fix that.
Full changelog: v0.2.1...v0.3.0