diff options
Diffstat (limited to 'qa/qa/page/project/show.rb')
-rw-r--r-- | qa/qa/page/project/show.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/qa/qa/page/project/show.rb b/qa/qa/page/project/show.rb index 61047c42fcc..00298ff9fb5 100644 --- a/qa/qa/page/project/show.rb +++ b/qa/qa/page/project/show.rb @@ -5,8 +5,13 @@ module QA module Project class Show < Page::Base include Page::Component::ClonePanel + include Page::Component::Breadcrumbs include Page::Project::SubMenus::Settings + view 'app/assets/javascripts/repository/components/preview/index.vue' do + element :blob_viewer_content + end + view 'app/assets/javascripts/repository/components/table/row.vue' do element :file_name_link end @@ -90,7 +95,7 @@ module QA def click_file(filename) within_element(:file_tree_table) do - click_on filename + click_element(:file_name_link, text: filename) end end @@ -115,6 +120,10 @@ module QA has_element?(:project_name_content, text: name) end + def has_readme_content?(text) + has_element?(:blob_viewer_content, text: text) + end + def last_commit_content find_element(:commit_content).text end |