Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Extract chromedriver regardless of position in archive #1115

Merged
merged 4 commits into from
Aug 13, 2024

Conversation

aleahy
Copy link
Contributor

@aleahy aleahy commented Aug 11, 2024

The aim of this PR is to do a small refactor to prevent dusk breaking if Chrome annoyingly change the order of, or add files in their driver zip archive.

It looks through the archive and only extracts files beginning with chromedriver. This should handle all windows, linux and mac chromedriver files.

@@ -217,26 +216,34 @@ protected function download($version, $os)
* @param string $archive

This comment was marked as resolved.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Updated the extract docblock.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other thing I noticed is elsewhere in Dusk they state @throws \Exception.

@taylorotwell taylorotwell merged commit 24561fd into laravel:8.x Aug 13, 2024
17 checks passed
@u01jmg3 u01jmg3 mentioned this pull request Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants