diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-12 11:59:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-12 11:59:15 +0000 |
commit | 44011308ea5890264f18803d586859c51b159483 (patch) | |
tree | 06ff34dc6e21571fd06b87c4ed5224755e39898d | |
parent | 389527296e02ab5ae205e22a9544589f6121b64d (diff) | |
download | redmine-44011308ea5890264f18803d586859c51b159483.tar.gz redmine-44011308ea5890264f18803d586859c51b159483.zip |
Fix that the sidebar is hidden in UI tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@14967 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/ui/base.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ui/base.rb b/test/ui/base.rb index f7273e227..dfaa61107 100644 --- a/test/ui/base.rb +++ b/test/ui/base.rb @@ -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 |