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 system_test_example teardown #2141

Closed
wants to merge 1 commit into from
Closed

Conversation

palkan
Copy link
Contributor

@palkan palkan commented Jun 17, 2019

The problem

Failure screenshots stopped working in Rails 6.0 RC1: at the time of taking a screenshot the browser is reset to about: page (in case of Chrome), resulting in a blank page screenshots.

The solution

Original after_teardown must be called after the original before_teardown (which is added to after hooks by RSpec::Rails::MinitestLifecycleAdapter).

The behavior in Rails changed with this commit: rails/rails@ef12ccf.

Not sure, how to add a test for this change (except from "checked on my project—works like a charm"; it's passing, btw).

Original `after_teardown` must be called after the original `before_teardown` (which is added to `after` hooks by RSpec::Rails::MinitestLifecycleAdapter).

Fixes taking failures screenshot functionality (changed in rails/rails@ef12ccf).

(cherry picked from commit fa17edb)
Copy link
Member

@benoittgt benoittgt left a comment

Choose a reason for hiding this comment

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

I am ok your change. Thanks @palkan

@JonRowe JonRowe changed the base branch from 4-0-dev to master October 18, 2019 14:39
@JonRowe
Copy link
Member

JonRowe commented Oct 18, 2019

Is this still needed? We fixed screenshots in #2164 didn't we? @palkan have you tried 4.0.0.beta2 or 4.0.0.beta3?

@palkan
Copy link
Contributor Author

palkan commented Oct 18, 2019

@JonRowe Just checked 4.0.0.beta2: the problem still exists and the provided patch fixes it.

@JonRowe
Copy link
Member

JonRowe commented Oct 18, 2019

Can you check 4.0.0.beta3

@palkan
Copy link
Contributor Author

palkan commented Oct 18, 2019

4.0.0.beta3 fixed this! Thanks!

@palkan palkan closed this Oct 18, 2019
@palkan palkan deleted the 4-0-dev branch October 18, 2019 20:36
@JonRowe
Copy link
Member

JonRowe commented Oct 18, 2019

Great!

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.

None yet

3 participants