From 676bd0f3fea7471f5dc3a6b743b52ea6ccfaba81 Mon Sep 17 00:00:00 2001
From: Vanessa Otto <votto@gitlab.com>
Date: Fri, 30 Aug 2024 07:50:40 +0000
Subject: [PATCH] Tailwind migration ruby specs

---
 ee/spec/lib/gitlab/elastic/search_results_spec.rb             | 4 ++--
 ee/spec/lib/gitlab/elastic/snippet_search_results_spec.rb     | 4 ++--
 .../features/protected_branches_with_deploy_keys_examples.rb  | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/ee/spec/lib/gitlab/elastic/search_results_spec.rb b/ee/spec/lib/gitlab/elastic/search_results_spec.rb
index bbb8dbf128886..256908b9aec20 100644
--- a/ee/spec/lib/gitlab/elastic/search_results_spec.rb
+++ b/ee/spec/lib/gitlab/elastic/search_results_spec.rb
@@ -18,13 +18,13 @@
     using RSpec::Parameterized::TableSyntax
 
     let(:proxy_response) do
-      [{ _source: { id: 1 }, highlight: 'test <span class="gl-font-weight-bold">highlight</span>' }]
+      [{ _source: { id: 1 }, highlight: 'test <span class="gl-font-bold">highlight</span>' }]
     end
 
     let(:es_empty_response) { ::Search::EmptySearchResults.new }
     let(:es_client_response) { instance_double(::Search::Elastic::ResponseMapper, highlight_map: map) }
     let(:results) { described_class.new(user, query, limit_project_ids) }
-    let(:map) { { 1 => 'test <span class="gl-font-weight-bold">highlight</span>' } }
+    let(:map) { { 1 => 'test <span class="gl-font-bold">highlight</span>' } }
 
     where(:scope, :results_method, :results_response, :expected) do
       'projects'        | :projects       | ref(:proxy_response)      | ref(:map)
diff --git a/ee/spec/lib/gitlab/elastic/snippet_search_results_spec.rb b/ee/spec/lib/gitlab/elastic/snippet_search_results_spec.rb
index 5e6adbc53a6da..f981fd16a4481 100644
--- a/ee/spec/lib/gitlab/elastic/snippet_search_results_spec.rb
+++ b/ee/spec/lib/gitlab/elastic/snippet_search_results_spec.rb
@@ -63,8 +63,8 @@
 
   describe '#highlight_map' do
     it 'returns the expected highlight map' do
-      expect(results).to receive(:snippet_titles).and_return([{ _source: { id: 1 }, highlight: 'test <span class="gl-text-gray-900 gl-font-weight-bold">highlight</span>' }])
-      expect(results.highlight_map('snippet_titles')).to eq({ 1 => 'test <span class="gl-text-gray-900 gl-font-weight-bold">highlight</span>' })
+      expect(results).to receive(:snippet_titles).and_return([{ _source: { id: 1 }, highlight: 'test <span class="gl-text-gray-900 gl-font-bold">highlight</span>' }])
+      expect(results.highlight_map('snippet_titles')).to eq({ 1 => 'test <span class="gl-text-gray-900 gl-font-bold">highlight</span>' })
     end
   end
 
diff --git a/spec/support/shared_examples/features/protected_branches_with_deploy_keys_examples.rb b/spec/support/shared_examples/features/protected_branches_with_deploy_keys_examples.rb
index 13e0c2a5ef744..828ed9c074a12 100644
--- a/spec/support/shared_examples/features/protected_branches_with_deploy_keys_examples.rb
+++ b/spec/support/shared_examples/features/protected_branches_with_deploy_keys_examples.rb
@@ -78,7 +78,7 @@
 
             within('[data-testid="deploy_key-dropdown-item"]') do
               deploy_key_checkbox = find('[data-testid="dropdown-item-checkbox"]')
-              expect(deploy_key_checkbox).to have_no_css("gl-visibility-hidden")
+              expect(deploy_key_checkbox).to have_no_css("gl-invisible")
             end
           end
         end
-- 
GitLab