diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-07-07 17:40:41 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-07-07 17:40:41 +0300 |
commit | 64e589c581589e42dfa1b12a22011f88cd3e62bc (patch) | |
tree | 8df4fdce797c360d2a6256857db1c02c8b3d52f4 /spec/features/projects/members | |
parent | 86fc4a1f3c8a72ba361d7fa64551c9d1522c255e (diff) |
Resolve "Inconsistent location of members page between groups and projects"
Diffstat (limited to 'spec/features/projects/members')
-rw-r--r-- | spec/features/projects/members/anonymous_user_sees_members_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/projects/members/user_requests_access_spec.rb | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/spec/features/projects/members/anonymous_user_sees_members_spec.rb b/spec/features/projects/members/anonymous_user_sees_members_spec.rb index 4958d5594ac..28c8d20aad5 100644 --- a/spec/features/projects/members/anonymous_user_sees_members_spec.rb +++ b/spec/features/projects/members/anonymous_user_sees_members_spec.rb @@ -11,10 +11,10 @@ feature 'Projects > Members > Anonymous user sees members', feature: true do end scenario "anonymous user visits the project's members page and sees the list of members" do - visit project_settings_members_path(project) + visit project_project_members_path(project) expect(current_path).to eq( - project_settings_members_path(project)) + project_project_members_path(project)) expect(page).to have_content(user.name) end end diff --git a/spec/features/projects/members/user_requests_access_spec.rb b/spec/features/projects/members/user_requests_access_spec.rb index 247cc0e6f2c..75a366a3eb7 100644 --- a/spec/features/projects/members/user_requests_access_spec.rb +++ b/spec/features/projects/members/user_requests_access_spec.rb @@ -46,10 +46,11 @@ feature 'Projects > Members > User requests access', feature: true do expect(project.requesters.exists?(user_id: user)).to be_truthy - open_project_settings_menu - click_link 'Members' + page.within('.layout-nav .nav-links') do + click_link('Members') + end - visit project_settings_members_path(project) + visit project_project_members_path(project) page.within('.content') do expect(page).not_to have_content(user.name) end |