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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-11-23 03:10:49 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-23 03:10:49 +0300
commit5a21d6fde31839caf228d031faabb8c3a8e7cf7c (patch)
tree556b3ea97bde4df6ed4a884f78bf5f531dc3d0b5 /spec/components/pajamas
parent371ee68e5e2826595d44d5a589668579ce105bba (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/components/pajamas')
-rw-r--r--spec/components/pajamas/banner_component_spec.rb7
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