Commit 04488229 authored by Savas Vedova's avatar Savas Vedova

Merge branch 'btn-confirm-home' into 'master'

Remove deprecated button variant in groups, projects and snippets

See merge request gitlab-org/gitlab!54747
parents c262ce8f 267319b7
......@@ -3,7 +3,7 @@
- if current_user.can_create_group?
.page-title-controls
= link_to _("New group"), new_group_path, class: "gl-button btn btn-success"
= link_to _("New group"), new_group_path, class: "gl-button btn btn-confirm", data: { testid: "new-group-button" }
.top-area
%ul.nav-links.mobile-separator.nav.nav-tabs
......
......@@ -9,7 +9,7 @@
- if current_user.can_create_project?
.page-title-controls
= link_to _("New project"), new_project_path, class: "gl-button btn btn-success"
= link_to _("New project"), new_project_path, class: "gl-button btn btn-confirm"
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
.fade-left= sprite_icon('chevron-lg-left', size: 12)
......
......@@ -4,7 +4,7 @@
- if current_user && current_user.snippets.any? || @snippets.any?
.page-title-controls
- if can?(current_user, :create_snippet)
= link_to _("New snippet"), new_snippet_path, class: "gl-button btn btn-success", title: _("New snippet")
= link_to _("New snippet"), new_snippet_path, class: "gl-button btn btn-confirm", title: _("New snippet")
.top-area
%ul.nav-links.nav.nav-tabs
......
---
title: Remove deprecated button variant in groups, projects and snippets
merge_request: 54747
author: Yogi (@yo)
type: changed
......@@ -15,7 +15,7 @@ RSpec.describe 'Dashboard Group' do
it 'creates new group', :js do
visit dashboard_groups_path
find('.btn-success').click
find('[data-testid="new-group-button"]').click
new_name = 'Samurai'
fill_in 'group_name', with: new_name
......
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