Skip to content

Commit

Permalink
Make window size larger during capabara testing in order to avoid the…
Browse files Browse the repository at this point in the history
… navbar being collapsed during testing
  • Loading branch information
Robert Clark authored and Michael O'Keefe committed Feb 16, 2017
1 parent 2e9ea3c commit 13641bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions features/support/env.rb
Expand Up @@ -159,6 +159,9 @@ def wait_for_all_delayed_jobs_to_run
end

Before do
# Make the window larger in order to account for navbar larger collapse point
Capybara.page.current_window.resize_to(1200, 800)

Mongoid.default_client['users'].drop
Mongoid.default_client['vendors'].drop
Mongoid.default_client['products'].drop
Expand Down

0 comments on commit 13641bd

Please sign in to comment.