summaryrefslogtreecommitdiff
path: root/qa/qa/page/dashboard/projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/dashboard/projects.rb')
-rw-r--r--qa/qa/page/dashboard/projects.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/qa/qa/page/dashboard/projects.rb b/qa/qa/page/dashboard/projects.rb
index 8be11550233..c0108d85365 100644
--- a/qa/qa/page/dashboard/projects.rb
+++ b/qa/qa/page/dashboard/projects.rb
@@ -13,6 +13,10 @@ module QA
element :user_role_content
end
+ view 'app/views/dashboard/_projects_head.html.haml' do
+ element :new_project_button
+ end
+
def has_project_with_access_role?(project_name, access_role)
within_element(:project_content, text: project_name) do
has_element?(:user_role_content, text: access_role)
@@ -25,6 +29,10 @@ module QA
find_link(text: name).click
end
+ def click_new_project_button
+ click_element(:new_project_button, Page::Project::New)
+ end
+
def self.path
'/'
end