protected function getScreenshots($test, $log)
    {
        $screenshots = $test->suite->tester->name !== 'dusk'
            ? $this->getOutput($test, $test->suite->tester->output_folder, $test->suite->tester->output_png_fail_extension)
            : $this->parseDuskScreenshots($log, $test->suite->tester->output_folder);

        if (is_null($screenshots)) {
            return;
        }

        $screenshots = collect($screenshots)->map(function ($path) use ($test) {
            return replace_suite_paths($test->suite, $path);
        });

        return json_encode($screenshots->toArray());
    }