We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To setup non-rails app I need at least to provide such code:
module Rails def self.root File.expand_path("../../", __FILE__) end def self.application Capybara.app end end class ApplicationSystemTestCase < Minitest::Test include Capybara::DSL include Capybara::Minitest::Assertions include CapybaraScreenshotDiff::DSL def screenshot(*, **) super rescue CapybaraScreenshotDiff::ExpectationNotMet => e raise ::Minitest::Assertion, e.message end alias_method :assert_matches_screenshot, :screenshot def setup super if ::Capybara::Screenshot.window_size ::Capybara::Screenshot::BrowserHelpers.resize_to(::Capybara::Screenshot.window_size) end end def teardown super Capybara.reset_sessions! errors = verify_screenshots!(@test_screenshots) failures << ::Minitest::Assertion.new(errors.join("\n\n")) if errors && !errors.empty? end end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To setup non-rails app I need at least to provide such code:
The text was updated successfully, but these errors were encountered: