Commit a0d3937d authored by Mark Lapierre's avatar Mark Lapierre Committed by Sanad Liaquat

Remove add_member Flow method

It duplicates Resource::Project.add_member
parent b22d82a3
......@@ -5,16 +5,6 @@ module QA
module Project
module_function
def add_member(project:, username:)
project.visit!
Page::Project::Menu.perform(&:click_members)
Page::Project::Members.perform do |member_settings|
member_settings.add_member(username)
end
end
def go_to_create_project_from_template
if Page::Project::NewExperiment.perform(&:shown?)
Page::Project::NewExperiment.perform(&:click_create_from_template_link)
......
......@@ -20,7 +20,12 @@ module QA
end
it 'is received by a user for project invitation', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/676' do
Flow::Project.add_member(project: project, username: user.username)
project.visit!
Page::Project::Menu.perform(&:click_members)
Page::Project::Members.perform do |member_settings|
member_settings.add_member(user.username)
end
expect(page).to have_content(/@#{user.username}(\n| )?Given access/)
......
......@@ -20,7 +20,7 @@ module QA
before do
Flow::Login.sign_in
Flow::Project.add_member(project: project, username: user.username)
project.add_member(user)
Resource::Issue.fabricate_via_api! do |issue|
issue.project = project
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment