diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-23 03:10:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-23 03:10:49 +0300 |
commit | 5a21d6fde31839caf228d031faabb8c3a8e7cf7c (patch) | |
tree | 556b3ea97bde4df6ed4a884f78bf5f531dc3d0b5 /spec/components/pajamas | |
parent | 371ee68e5e2826595d44d5a589668579ce105bba (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/components/pajamas')
-rw-r--r-- | spec/components/pajamas/banner_component_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/components/pajamas/banner_component_spec.rb b/spec/components/pajamas/banner_component_spec.rb index 47dc9042913..95744375c52 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 @@ -65,7 +65,7 @@ RSpec.describe Pajamas::BannerComponent, type: :component do 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" + expect(page).not_to have_css ".gl-banner.gl-border-none\\!" end end @@ -73,7 +73,7 @@ RSpec.describe Pajamas::BannerComponent, type: :component do let(:options) { { embedded: true } } it 'removes the banner\'s borders' do - expect(page).to have_css ".gl-banner.gl-border-none" + expect(page).to have_css ".gl-banner.gl-border-none\\!" end end end @@ -82,6 +82,7 @@ RSpec.describe Pajamas::BannerComponent, type: :component 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 |