Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/button_helper_spec.rb')
-rw-r--r--spec/helpers/button_helper_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/helpers/button_helper_spec.rb b/spec/helpers/button_helper_spec.rb
index 09495bbde35..5601ab2df2a 100644
--- a/spec/helpers/button_helper_spec.rb
+++ b/spec/helpers/button_helper_spec.rb
@@ -174,7 +174,7 @@ RSpec.describe ButtonHelper do
expect(element.attr('itemprop')).to eq(nil)
expect(element.inner_text).to eq("")
- expect(element.to_html).to include sprite_icon('copy-to-clipboard')
+ expect(element.to_html).to include sprite_icon('copy-to-clipboard', css_class: 'gl-icon')
end
end
@@ -195,6 +195,10 @@ RSpec.describe ButtonHelper do
it 'shows copy to clipboard button with provided `button_text` as button label' do
expect(element(button_text: 'Copy text').inner_text).to eq('Copy text')
end
+
+ it 'adds `gl-button-icon` class to icon' do
+ expect(element(button_text: 'Copy text')).to have_css('svg.gl-button-icon')
+ end
end
context 'with `hide_tooltip` attribute provided' do