diff --git a/ee/spec/lib/gitlab/elastic/search_results_spec.rb b/ee/spec/lib/gitlab/elastic/search_results_spec.rb
index bbb8dbf128886e63bbdca361491178de8a9dacf5..256908b9aec20bf2403fb8c9b371f0c22703f3c2 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 5e6adbc53a6da31e16e6bd2e7acf582d7dc4abc8..f981fd16a44811844c19a21b1bb4d626c5c25ba0 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 13e0c2a5ef7449d3790a076d874ee7f892a05cae..828ed9c074a122f04b9123fc1a68873b9b927912 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