diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-06-10 15:08:13 -0500 |
---|---|---|
committer | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-06-10 15:08:13 -0500 |
commit | 3e28d04cced2c417ee9144a17866e0cc2c910a6c (patch) | |
tree | c39115f7bfe5127adb0085d7182bbc1388d20f6e /spec | |
parent | 630aeb31eb7728789d1f7659ec0e12ea5a5fd59c (diff) | |
download | gitlab-ce-3e28d04cced2c417ee9144a17866e0cc2c910a6c.tar.gz |
Fix preferences_spec test18417-nav-offscreen
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/profiles/preferences_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/features/profiles/preferences_spec.rb b/spec/features/profiles/preferences_spec.rb index 8f645438cff..787bf42d048 100644 --- a/spec/features/profiles/preferences_spec.rb +++ b/spec/features/profiles/preferences_spec.rb @@ -54,7 +54,7 @@ describe 'Profile > Preferences', feature: true do end end - describe 'User changes their default dashboard' do + describe 'User changes their default dashboard', js: true do it 'creates a flash message' do select 'Starred Projects', from: 'user_dashboard' click_button 'Save' @@ -66,8 +66,10 @@ describe 'Profile > Preferences', feature: true do select 'Starred Projects', from: 'user_dashboard' click_button 'Save' - click_link 'Dashboard' - expect(page.current_path).to eq starred_dashboard_projects_path + allowing_for_delay do + find('#logo').click + expect(page.current_path).to eq starred_dashboard_projects_path + end click_link 'Your Projects' expect(page.current_path).to eq dashboard_projects_path |