Commit e526ee6e authored by Dan Davison's avatar Dan Davison

Merge branch 'tests-configurable-issue-board' into 'master'

Add test for configurable issue board

See merge request gitlab-org/gitlab!18228
parents bb18b759 4ec32ad0
......@@ -132,6 +132,7 @@ export default {
type="button"
class="btn js-primary-button"
data-dismiss="modal"
data-qa-selector="save_changes_button"
@click="emitSubmit($event)"
>
{{ primaryButtonLabel }}
......
......@@ -23,6 +23,10 @@ module QA
element :boards_dropdown
end
view 'app/assets/javascripts/vue_shared/components/deprecated_modal.vue' do
element :save_changes_button
end
view 'app/views/shared/boards/_show.html.haml' do
element :boards_list
end
......@@ -95,6 +99,11 @@ module QA
has_element?(:board_name_field, wait: 1)
end
def set_name(name)
find_element(:board_name_field).set(name)
click_element(:save_changes_button)
end
private
def wait_boards_list_finish_loading
......
# frozen_string_literal: true
module QA
context 'Plan' do
describe 'Configurable issue board' do
let(:label_board_list) do
EE::Resource::Board::BoardList::Project::LabelBoardList.fabricate_via_api!
end
before do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials)
label_board_list.project.visit!
Page::Project::Menu.perform(&:go_to_boards)
end
it 'shows board configuration to user without edit permission' do
new_board_name = 'UX'
EE::Page::Project::Issue::Board::Show.perform do |show|
show.click_boards_config_button
show.set_name(new_board_name)
expect(show.boards_dropdown).to have_content(new_board_name)
end
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment