mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-23 03:51:46 +00:00
Fix that the sidebar is hidden in UI tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@14967 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
389527296e
commit
44011308ea
@ -60,6 +60,11 @@ module Redmine
|
||||
assert_equal '/my/page', current_path
|
||||
end
|
||||
|
||||
setup do
|
||||
# Set the page width higher than 900 to get the full layout with sidebar
|
||||
page.driver.browser.manage.window.resize_to(1024, 900)
|
||||
end
|
||||
|
||||
teardown do
|
||||
Capybara.reset_sessions! # Forget the (simulated) browser state
|
||||
Capybara.use_default_driver # Revert Capybara.current_driver to Capybara.default_driver
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user