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

Fix storing page source to disk when source assertions fail. #976

Merged
merged 1 commit into from
May 2, 2022
Merged

Fix storing page source to disk when source assertions fail. #976

merged 1 commit into from
May 2, 2022

Conversation

calmdev
Copy link
Contributor

@calmdev calmdev commented Apr 30, 2022

Fixes automatically storing page source to disk when source assertions fail.

Storing page source to disk when source assertions (assertSourceHas, assertSourceMissing) fail was merged in #819, but then later in 3c59a5c a property was renamed from $makesSourceAssertion to $madeSourceAssertion. It seems this was missed in src/Concerns/ProvidesBrowser.php. After making this change I'm seeing the page source files written to disk automatically when source assertions fail. Without this change it only works when manually invoking $browser->storeSource('filename') within a test.

@taylorotwell taylorotwell merged commit 41f6deb into laravel:6.x May 2, 2022
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.

2 participants