diff options
author | Roman Verevkin <verrom@yandex-team.ru> | 2019-02-19 23:23:34 +0300 |
---|---|---|
committer | Roman Verevkin <verevkin.roma@gmail.com> | 2019-03-13 23:16:11 +0300 |
commit | e6c24bdbaede5e6f7fa6a50927841200e6a6a0ef (patch) | |
tree | 1d18ec750330b66876d0a4d90b5a272047624d7f /app/views/layouts | |
parent | 1715622c054434abc752c7be11ec4daec9231d5a (diff) |
Add a new test to create a snippet
Add "smoke" tag to the test
Fix links to views in Page Object files
Review fixes
Remove useless view block
Implement Snippets::Show page object class
Fix review suggestions
Fix review suggestions 2
Fix test with empty snippets state
Remove useless css class
Fix issues
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/header/_new_dropdown.haml | 2 | ||||
-rw-r--r-- | app/views/layouts/nav/_dashboard.html.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/header/_new_dropdown.haml b/app/views/layouts/header/_new_dropdown.haml index 5a66b02c048..438340464bd 100644 --- a/app/views/layouts/header/_new_dropdown.haml +++ b/app/views/layouts/header/_new_dropdown.haml @@ -38,4 +38,4 @@ %li= link_to _('New project'), new_project_path, class: 'qa-global-new-project-link' - if current_user.can_create_group? %li= link_to _('New group'), new_group_path - %li= link_to _('New snippet'), new_snippet_path + %li= link_to _('New snippet'), new_snippet_path, class: 'qa-global-new-snippet-link' diff --git a/app/views/layouts/nav/_dashboard.html.haml b/app/views/layouts/nav/_dashboard.html.haml index f659c89dd30..1ec368f8910 100644 --- a/app/views/layouts/nav/_dashboard.html.haml +++ b/app/views/layouts/nav/_dashboard.html.haml @@ -29,7 +29,7 @@ - if dashboard_nav_link?(:snippets) = nav_link(controller: 'dashboard/snippets', html_options: { class: ["d-none d-xl-block", ("d-lg-block" unless has_extra_nav_icons?)] }) do - = link_to dashboard_snippets_path, class: 'dashboard-shortcuts-snippets', title: _('Snippets') do + = link_to dashboard_snippets_path, class: 'dashboard-shortcuts-snippets qa-snippets-link', title: _('Snippets') do = _('Snippets') - if any_dashboard_nav_link?([:groups, :milestones, :activity, :snippets]) |