Commit 977db6a9 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'ml-add-plan-status-issue-links' into 'master'

Add status_issue rspec tags for plan tests

See merge request gitlab-org/gitlab!40056
parents 7ed333a6 e3837a99
......@@ -22,7 +22,7 @@ module QA
push_commit('Initial commit')
end
it 'closes via pushing a commit' do
it 'closes via pushing a commit', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/423' do
push_commit("Closes ##{issue_id}", false)
Support::Retrier.retry_until(max_duration: 10, sleep_interval: 1) do
......
......@@ -19,7 +19,7 @@ module QA
Flow::Login.sign_in
end
it 'is received by a user for project invitation' do
it 'is received by a user for project invitation', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/676' do
Flow::Project.add_member(project: project, username: user.username)
expect(page).to have_content(/@#{user.username}(\n| )?Given access/)
......
......@@ -27,7 +27,7 @@ module QA
end.visit!
end
it 'mentions a user in a comment' do
it 'mentions a user in a comment', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/452' do
Page::Project::Issue::Show.perform do |show|
show.select_all_activities_filter
show.comment("cc-ing you here @#{user.username}")
......
......@@ -17,7 +17,7 @@ module QA
end
end
it 'collapses and expands reply for comments in an issue' do
it 'collapses and expands reply for comments in an issue', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/434' do
Page::Project::Issue::Show.perform do |show|
one_reply = "1 reply"
......
......@@ -9,7 +9,7 @@ module QA
Resource::Issue.fabricate_via_api!.visit!
end
it 'comments on an issue and edits the comment' do
it 'comments on an issue and edits the comment', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/450' do
Page::Project::Issue::Show.perform do |show|
first_version_of_comment = 'First version of the comment'
second_version_of_comment = 'Second version of the comment'
......
......@@ -9,7 +9,7 @@ module QA
Flow::Login.sign_in
end
it 'creates an issue', :reliable do
it 'creates an issue', :reliable, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/432' do
issue = Resource::Issue.fabricate_via_browser_ui!
Page::Project::Menu.perform(&:click_issues)
......@@ -19,7 +19,7 @@ module QA
end
end
it 'closes an issue', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/225303', type: :bug } do
it 'closes an issue', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/225303', type: :bug }, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/852' do
closed_issue.visit!
Page::Project::Issue::Show.perform do |issue_page|
......@@ -48,7 +48,7 @@ module QA
Resource::Issue.fabricate_via_api!.visit!
end
it 'comments on an issue with an attachment' do
it 'comments on an issue with an attachment', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/393' do
Page::Project::Issue::Show.perform do |show|
show.comment('See attached banana for scale', attachment: file_to_attach)
......
......@@ -24,7 +24,7 @@ module QA
Page::Project::Menu.perform(&:click_issues)
end
it 'successfully exports issues list as CSV' do
it 'successfully exports issues list as CSV', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/764' do
Page::Project::Issue::Index.perform do |index|
index.click_export_as_csv_button
......
......@@ -9,7 +9,7 @@ module QA
Resource::Issue.fabricate_via_api!.visit!
end
it 'filters comments and activities in an issue' do
it 'filters comments and activities in an issue', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/425' do
Page::Project::Issue::Show.perform do |show|
my_own_comment = "My own comment"
made_the_issue_confidential = "made the issue confidential"
......
......@@ -13,7 +13,7 @@ module QA
end.project.visit!
end
it 'shows issue suggestions when creating a new issue' do
it 'shows issue suggestions when creating a new issue', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/412' do
Page::Project::Show.perform(&:go_to_new_issue)
Page::Project::Issue::New.perform do |new_page|
new_page.fill_title("issue")
......
......@@ -14,7 +14,7 @@ module QA
end
end
it 'imports issues from Jira' do
it 'imports issues from Jira', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/896' do
set_up_jira_integration
import_jira_issues
......
......@@ -21,7 +21,7 @@ module QA
end.visit!
end
it 'mentions another user in an issue' do
it 'mentions another user in an issue', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/446' do
Page::Project::Issue::Show.perform do |show|
at_username = "@#{user.username}"
......
......@@ -13,7 +13,7 @@ module QA
Flow::Login.sign_in
end
it 'focuses on issue board' do
it 'focuses on issue board', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/820' do
project.visit!
Page::Project::Menu.perform(&:go_to_boards)
......
......@@ -14,7 +14,7 @@ module QA
Flow::Login.sign_in
end
it 'creates a group milestone' do
it 'creates a group milestone', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/922' do
group_milestone = Resource::GroupMilestone.fabricate_via_browser_ui! do |milestone|
milestone.title = title
milestone.description = description
......
......@@ -14,7 +14,7 @@ module QA
Flow::Login.sign_in
end
it 'creates a project milestone' do
it 'creates a project milestone', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/901' do
project_milestone = Resource::ProjectMilestone.fabricate_via_browser_ui! do |milestone|
milestone.title = title
milestone.description = description
......
......@@ -25,7 +25,7 @@ module QA
Flow::Login.sign_in
end
it 'relates and unrelates one issue to/from another' do
it 'relates and unrelates one issue to/from another', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/541' do
issue_1.visit!
Page::Project::Issue::Show.perform do |show|
......
......@@ -15,7 +15,7 @@ module QA
@fixed_due_date = (Date.today.to_date + 90).strftime("%Y-%m-%d")
end
it 'changes epic dates when updating milestones' do
it 'changes epic dates when updating milestones', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/616' do
epic_iid, milestone_id = create_epic_issue_milestone
milestone_start_date = Date.today.to_date.strftime("%Y-%m-%d")
milestone_due_date = (Date.today.to_date + 30).strftime("%Y-%m-%d")
......@@ -36,7 +36,7 @@ module QA
expect_json('due_date', milestone_due_date)
end
it 'updates epic dates when adding another issue' do
it 'updates epic dates when adding another issue', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/611' do
epic_iid = create_epic_issue_milestone[0]
milestone_start_date = Date.today.to_date.strftime("%Y-%m-%d")
milestone_due_date = (Date.today.to_date + 150).strftime("%Y-%m-%d")
......@@ -59,7 +59,7 @@ module QA
expect_json('due_date', milestone_due_date)
end
it 'updates epic dates when removing issue' do
it 'updates epic dates when removing issue', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/615' do
epic_iid = create_epic_issue_milestone[0]
# Get epic_issue_id
......@@ -84,7 +84,7 @@ module QA
expect_json('due_date', nil)
end
it 'updates epic dates when deleting milestones' do
it 'updates epic dates when deleting milestones', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/613' do
epic_iid, milestone_id = create_epic_issue_milestone
# Delete Milestone
......
......@@ -21,7 +21,7 @@ module QA
create_issue(milestone.project, milestone, weight_of_two)
end
it 'shows burndown chart on milestone page' do
it 'shows burndown chart on milestone page', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/573' do
milestone.visit!
Page::Milestone::Show.perform do |show|
......
......@@ -11,7 +11,7 @@ module QA
Page::Admin::Menu.perform(&:go_to_preferences_settings)
end
it 'customizes email with additional text' do
it 'customizes email with additional text', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/554' do
random_custom_text = "Testing custom email - #{SecureRandom.hex(8)}"
EE::Page::Admin::Settings::Preferences.perform do |preferences|
......
......@@ -7,7 +7,7 @@ module QA
Flow::Login.sign_in
end
it 'creates an epic', :reliable do
it 'creates an epic', :reliable, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/522' do
epic_title = 'Epic created via GUI'
EE::Resource::Epic.fabricate_via_browser_ui! do |epic|
epic.title = epic_title
......@@ -16,7 +16,7 @@ module QA
expect(page).to have_content(epic_title)
end
it 'creates a confidential epic' do
it 'creates a confidential epic', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/967' do
epic_title = 'Confidential epic created via GUI'
EE::Resource::Epic.fabricate_via_browser_ui! do |epic|
epic.title = epic_title
......@@ -36,7 +36,7 @@ module QA
epic.visit!
end
it 'adds/removes issue to/from epic', :reliable do
it 'adds/removes issue to/from epic', :reliable, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/526' do
EE::Page::Group::Epic::Show.perform do |show|
show.add_issue_to_epic(issue.web_url)
......@@ -48,7 +48,7 @@ module QA
end
end
it 'comments on epic', :reliable do
it 'comments on epic', :reliable, status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/525' do
comment = 'My Epic Comment'
EE::Page::Group::Epic::Show.perform do |show|
show.add_comment_to_epic(comment)
......@@ -57,7 +57,7 @@ module QA
expect(page).to have_content(comment)
end
it 'closes and reopens an epic' do
it 'closes and reopens an epic', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/524' do
EE::Page::Group::Epic::Show.perform(&:close_reopen_epic)
expect(page).to have_content('Closed')
......@@ -68,7 +68,7 @@ module QA
end
end
it 'adds/removes issue to/from epic using quick actions' do
it 'adds/removes issue to/from epic using quick actions', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/523' do
issue.visit!
Page::Project::Issue::Show.perform do |show|
......
......@@ -3,7 +3,7 @@
module QA
RSpec.describe 'Plan', :reliable do
describe 'promote issue to epic' do
it 'promotes issue to epic' do
it 'promotes issue to epic', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/604' do
Flow::Login.sign_in
project = Resource::Project.fabricate_via_api! do |project|
......
......@@ -19,7 +19,7 @@ module QA
Flow::Login.sign_in
end
it 'presents epic on roadmap' do
it 'presents epic on roadmap', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/536' do
page.visit("#{epic.group.web_url}/-/roadmap")
EE::Page::Group::Roadmap.perform do |roadmap|
......
......@@ -13,7 +13,7 @@ module QA
Page::Project::Menu.perform(&:go_to_boards)
end
it 'renames the issue board' do
it 'renames the issue board', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/609' do
new_board_name = 'UX'
Page::Component::IssueBoard::Show.perform do |show|
......
......@@ -23,7 +23,7 @@ module QA
Page::Project::Menu.perform(&:go_to_boards)
end
it 'shows only issues that match the configured label' do
it 'shows only issues that match the configured label', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/646' do
Page::Component::IssueBoard::Show.perform do |show|
show.configure_by_label(doing)
......
......@@ -17,7 +17,7 @@ module QA
Page::Group::Menu.perform(&:go_to_issue_boards)
end
it 'creates a group issue board via the GUI' do
it 'creates a group issue board via the GUI', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/576' do
Page::Component::IssueBoard::Show.perform do |show|
new_board = "Board-#{SecureRandom.hex(4)}"
......
......@@ -27,7 +27,7 @@ module QA
Page::Group::Menu.perform(&:go_to_issue_boards)
end
it 'shows multiple group boards in the boards dropdown menu' do
it 'shows multiple group boards in the boards dropdown menu', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/537' do
Page::Component::IssueBoard::Show.perform do |show|
show.click_boards_dropdown_button
......
......@@ -26,7 +26,7 @@ module QA
go_to_project_board(label_board_list.project)
end
it 'shows the just created board with a "Doing" (label) list, and an issue on it' do
it 'shows the just created board with a "Doing" (label) list, and an issue on it', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/606' do
Page::Component::IssueBoard::Show.perform do |show|
expect(show.boards_dropdown).to have_content(label_board_list.board.name)
expect(show.boards_list_header_with_index(1)).to have_content(label)
......@@ -50,7 +50,7 @@ module QA
go_to_project_board(milestone_board_list.project)
end
it 'shows the just created board with a "1.0" (milestone) list, and an issue on it' do
it 'shows the just created board with a "1.0" (milestone) list, and an issue on it', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/607' do
Page::Component::IssueBoard::Show.perform do |show|
expect(show.boards_dropdown).to have_content(milestone_board_list.board.name)
expect(show.boards_list_header_with_index(1)).to have_content('1.0')
......@@ -83,7 +83,7 @@ module QA
go_to_project_board(project)
end
it 'shows the just created board with an assignee list, and an issue on it' do
it 'shows the just created board with an assignee list, and an issue on it', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/608' do
Page::Component::IssueBoard::Show.perform do |show|
expect(show.boards_dropdown).to have_content(@assignee_board_list.board.name)
expect(show.boards_list_header_with_index(1)).to have_content(@user.name)
......
......@@ -24,7 +24,7 @@ module QA
Page::Project::Menu.perform(&:go_to_boards)
end
it 'shows board configuration to user without edit permission' do
it 'shows board configuration to user without edit permission', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/636' do
Page::Component::IssueBoard::Show.perform do |show|
show.click_boards_config_button
......
......@@ -30,7 +30,7 @@ module QA
Page::Project::Menu.perform(&:go_to_boards)
end
it 'shows the sum of issues weights in the board list\'s header' do
it 'shows the sum of issues weights in the board list\'s header', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/603' do
Page::Component::IssueBoard::Show.perform do |show|
expect(show.boards_list_header_with_index(1)).to have_content(weight_for_issue_1 + weight_for_issue_2)
end
......
......@@ -20,13 +20,13 @@ module QA
end
end
describe 'Group level issues analytics' do
describe 'Group level issues analytics', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/551' do
it_behaves_like 'issues analytics page' do
let(:analytics_path) { "#{issue.project.group.web_url}/-/issues_analytics" }
end
end
describe 'Project level issues analytics' do
describe 'Project level issues analytics', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/552' do
it_behaves_like 'issues analytics page' do
let(:analytics_path) { "#{issue.project.web_url}/-/analytics/issues_analytics" }
end
......
......@@ -22,7 +22,7 @@ module QA
end
end
it 'shows the set weight in the issue page, in the milestone page, and in the issues list page' do
it 'shows the set weight in the issue page, in the milestone page, and in the issues list page', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/583' do
issue.visit!
Page::Project::Issue::Show.perform do |show|
......
......@@ -33,7 +33,7 @@ module QA
project.visit!
end
it 'shows four assignees in the issues list' do
it 'shows four assignees in the issues list', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/643' do
Page::Project::Menu.perform(&:click_issues)
Page::Project::Issue::Index.perform do |index|
......
......@@ -39,7 +39,7 @@ module QA
end
end
it 'shows the first three assignees and a +n sign in the issues list' do
it 'shows the first three assignees and a +n sign in the issues list', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/580' do
project.visit!
Page::Project::Menu.perform(&:click_issues)
......@@ -51,7 +51,7 @@ module QA
end
end
it 'shows the first five assignees and a +n more link in the issue page' do
it 'shows the first five assignees and a +n more link in the issue page', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/582' do
@issue.visit!
Page::Project::Issue::Show.perform do |show|
......
......@@ -33,7 +33,7 @@ module QA
issue.visit!
end
it 'correctly applies simple and multiple colon scoped pairs labels' do
it 'correctly applies simple and multiple colon scoped pairs labels', status_issue: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/595' do
Page::Project::Issue::Show.perform do |show|
show.select_labels_and_refresh([
new_label_same_scope,
......
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