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

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

RSpec.shared_examples 'Read-only instance' do |message|
  it 'shows read-only banner' do
    visit root_dashboard_path

    expect(page).to have_content(message)
  end
end

RSpec.shared_examples 'Read-write instance' do |message|
  it 'does not show read-only banner' do
    visit root_dashboard_path

    expect(page).not_to have_content(message)
  end
end