Add tests for screenshots

This commit is contained in:
Jonny Barnes 2023-02-04 10:22:00 +00:00
parent c410e344a0
commit f38235561f
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
3 changed files with 49 additions and 10 deletions

View file

@ -41,7 +41,7 @@ class SaveScreenshot implements ShouldQueue
// A normal Guzzle client
$client = resolve(Client::class);
// A Guzzle client with a custom Middleware to retry the CloudConvert API requests
$retryClient = resolve('RetryClient');
$retryClient = resolve('RetryGuzzle');
// First request that CloudConvert takes a screenshot of the URL
$takeScreenshotJobResponse = $client->request('POST', 'https://api.cloudconvert.com/v2/capture-website', [