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

Fixed Capybara screenshot feature in broken tests #5657

Merged
merged 1 commit into from
Feb 14, 2024
Merged

Fixed Capybara screenshot feature in broken tests #5657

merged 1 commit into from
Feb 14, 2024

Conversation

atulyadav745
Copy link
Contributor

What this PR does

This PR addresses the issue #5653 where, in the event of a failing feature test, the code in rails_helper.rb attempts to capture a screenshot using Capybara. However, due to changes in the Capybara screenshot interface, the method call for creating a screenshot results in a NoMethodError. This PR resolves the issue by updating the method call to match the changed Capybara screenshot interface, ensuring that screenshots are successfully generated when a feature spec fails.

Open questions and concerns

@ragesoss please review this pull request and let me know if there are any issues that need to be addressed before it can be merged, or if it is ready to proceed.
Thank You

@ragesoss
Copy link
Member

@atulyadav745 did you test this locally? Please post a screenshot from test. (You could do this by adding an explicit error to the middle of a feature spec and then running it.)

@ragesoss ragesoss merged commit 6aa0802 into WikiEducationFoundation:master Feb 14, 2024
1 check passed
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