Commit c2a8c804 authored by Walmyr Lima's avatar Walmyr Lima

Add test that configures issue board by label

parent 3f1c57f2
# frozen_string_literal: true
module QA
context 'Plan' do
describe 'Configure issue board by label' do
let(:label_board_list) do
EE::Resource::Board::BoardList::Project::LabelBoardList.fabricate_via_api!
end
let(:doing) { 'Doing' }
let(:ready_for_dev) { 'Ready for development' }
let(:issue_1) { 'Issue 1' }
let(:issue_2) { 'Issue 2' }
before do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials)
fabricate_issue_with_label(label_board_list.project, issue_1, doing)
fabricate_issue_with_label(label_board_list.project, issue_2, ready_for_dev)
label_board_list.project.visit!
Page::Project::Menu.perform(&:go_to_boards)
end
it 'shows only issues that match the configured label' do
EE::Page::Project::Issue::Board::Show.perform do |show|
show.configure_by_label(doing)
expect(show).not_to have_content(issue_2)
expect(show.boards_list_cards_area_with_index(1)).to have_content(issue_1)
end
end
def fabricate_issue_with_label(project, title, label)
Resource::Issue.fabricate_via_api! do |issue|
issue.project = project
issue.title = title
issue.labels = [label]
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