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/components/pajamas/banner_component_spec.rb')
-rw-r--r--spec/components/pajamas/banner_component_spec.rb19
1 files changed, 2 insertions, 17 deletions
diff --git a/spec/components/pajamas/banner_component_spec.rb b/spec/components/pajamas/banner_component_spec.rb
index 47dc9042913..aa9c5c4fdf8 100644
--- a/spec/components/pajamas/banner_component_spec.rb
+++ b/spec/components/pajamas/banner_component_spec.rb
@@ -23,7 +23,7 @@ RSpec.describe Pajamas::BannerComponent, type: :component do
end
it 'renders its title' do
- expect(page).to have_css "h1[class='gl-banner-title']", text: title
+ expect(page).to have_css "h2[class='gl-banner-title']", text: title
end
it 'renders a close button' do
@@ -62,26 +62,11 @@ RSpec.describe Pajamas::BannerComponent, type: :component do
end
end
- describe 'embedded' do
- context 'by default (false)' do
- it 'keeps the banner\'s borders' do
- expect(page).not_to have_css ".gl-banner.gl-border-none"
- end
- end
-
- context 'when set to true' do
- let(:options) { { embedded: true } }
-
- it 'removes the banner\'s borders' do
- expect(page).to have_css ".gl-banner.gl-border-none"
- end
- end
- end
-
describe 'variant' do
context 'by default (promotion)' do
it 'does not apply introduction class' do
expect(page).not_to have_css ".gl-banner-introduction"
+ expect(page).to have_css ".gl-banner.gl-bg-gray-10\\!"
end
end