Welcome to mirror list, hosted at ThFree Co, Russian Federation.

code_highlight_shared_examples.rb « features « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3917ac9b48973010343d4e19a5df53b85ddc0137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

RSpec.shared_examples 'code highlight' do
  include PreferencesHelper

  let_it_be(:current_user) { user }
  let_it_be(:scheme_class) { user_color_scheme }

  it 'has highlighted code', :js do
    wait_for_requests
    expect(subject).to have_selector(".js-syntax-highlight.#{scheme_class}")
  end
end