Skip to content

Commit

Permalink
Replace "Add a new attribute" by "Add Attribute"
Browse files Browse the repository at this point in the history
  • Loading branch information
saraycp committed May 6, 2020
1 parent c582a3a commit 9280d74
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/api/app/views/webui/attribute/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

- if can_update_container && !flipper_responsive?
%p
= link_to(new_attribs_path(project: @project.name, package: @package), title: 'Add a new attribute') do
= link_to(new_attribs_path(project: @project.name, package: @package), title: 'Add Attribute') do
%i.fas.fa-plus-circle.text-primary
Add a new attribute
Add Attribute
= render(partial: 'delete_dialog')
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- content_for :actions do
%li.nav-item
= link_to(new_attribs_path(project: project.name, package: package), title: 'Add a new attribute') do
= link_to(new_attribs_path(project: project.name, package: package), title: 'Add Attribute') do
%i.fas.fa-plus-circle.fa-lg.mr-2
Add a new attribute
Add Attribute
4 changes: 2 additions & 2 deletions src/api/spec/features/webui/attributes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
login user

visit index_attribs_path(project: user.home_project_name)
click_link('Add a new attribute')
click_link('Add Attribute')
find('select#attrib_attrib_type_id').select('OBS:VeryImportantProject')
click_button('Add')
expect(page).to have_content('Sorry, you are not authorized to create this Attrib.')
Expand All @@ -64,7 +64,7 @@
login other_user

visit index_attribs_path(project: user.home_project_name)
expect(page).not_to have_content('Add a new attribute')
expect(page).not_to have_content('Add Attribute')
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/features/webui/projects_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
visit project_show_path(project)

click_link('Attributes')
click_link('Add a new attribute')
click_link('Add Attribute')
select('OBS:MaintenanceProject')
click_button('Add')

Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/support/features/features_attribute.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module FeaturesAttribute
def add_attribute_with_values(package = nil)
visit index_attribs_path(project: user.home_project_name, package: package.try(:name))
click_link('Add a new attribute')
click_link('Add Attribute')
expect(page).to have_text('Add Attribute')
find('select#attrib_attrib_type_id').select("#{attribute_type.attrib_namespace}:#{attribute_type.name}", match: :first)
click_button('Add')
Expand Down

0 comments on commit 9280d74

Please sign in to comment.