2020-05-13 20:07:47 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-16 14:09:01 -04:00
|
|
|
RSpec.describe 'Issue Boards focus mode', :js do
|
2020-05-13 20:07:47 -04:00
|
|
|
let(:project) { create(:project, :public) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
visit project_boards_path(project)
|
|
|
|
|
|
|
|
wait_for_requests
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'shows focus mode button to guest users' do
|
|
|
|
expect(page).to have_selector('.board-extra-actions .js-focus-mode-btn')
|
|
|
|
end
|
|
|
|
end
|