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

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

RSpec.shared_examples 'it renders help text' do
  it 'renders help text' do
    expect(rendered_component).to have_selector('[data-testid="pajamas-component-help-text"]', text: help_text)
  end
end

RSpec.shared_examples 'it does not render help text' do
  it 'does not render help text' do
    expect(rendered_component).not_to have_selector('[data-testid="pajamas-component-help-text"]')
  end
end