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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/issues/user_creates_issue_spec.rb')
-rw-r--r--spec/features/issues/user_creates_issue_spec.rb53
1 files changed, 14 insertions, 39 deletions
diff --git a/spec/features/issues/user_creates_issue_spec.rb b/spec/features/issues/user_creates_issue_spec.rb
index 857cb1f39a2..c4aff4ca04b 100644
--- a/spec/features/issues/user_creates_issue_spec.rb
+++ b/spec/features/issues/user_creates_issue_spec.rb
@@ -9,8 +9,6 @@ RSpec.describe "User creates issue", feature_category: :team_planning do
let_it_be(:project) { create(:project_empty_repo, :public) }
let_it_be(:user) { create(:user) }
- let(:visible_label_selection_on_metadata) { false }
-
context "when unauthenticated" do
before do
sign_out(:user)
@@ -37,7 +35,6 @@ RSpec.describe "User creates issue", feature_category: :team_planning do
context "when signed in as guest", :js do
before do
- stub_feature_flags(visible_label_selection_on_metadata: visible_label_selection_on_metadata)
project.add_guest(user)
sign_in(user)
@@ -97,50 +94,28 @@ RSpec.describe "User creates issue", feature_category: :team_planning do
end
end
- context 'with the visible_label_selection_on_metadata feature flag enabled' do
- let(:visible_label_selection_on_metadata) { true }
-
- it "creates issue" do
- issue_title = "500 error on profile"
-
- fill_in("Title", with: issue_title)
-
- click_button _('Select label')
+ it "creates issue" do
+ issue_title = "500 error on profile"
- wait_for_all_requests
+ fill_in("Title", with: issue_title)
- page.within '[data-testid="sidebar-labels"]' do
- click_button label_titles.first
- click_button _('Close')
+ click_button _('Select label')
- wait_for_requests
- end
+ wait_for_all_requests
- click_button("Create issue")
+ page.within '[data-testid="sidebar-labels"]' do
+ click_button label_titles.first
+ click_button _('Close')
- expect(page).to have_content(issue_title)
- .and have_content(user.name)
- .and have_content(project.name)
- .and have_content(label_titles.first)
+ wait_for_requests
end
- end
-
- context 'with the visible_label_selection_on_metadata feature flag disabled' do
- let(:visible_label_selection_on_metadata) { false }
- it "creates issue" do
- issue_title = "500 error on profile"
+ click_button("Create issue")
- fill_in("Title", with: issue_title)
- click_button("Label")
- click_link(label_titles.first)
- click_button("Create issue")
-
- expect(page).to have_content(issue_title)
- .and have_content(user.name)
- .and have_content(project.name)
- .and have_content(label_titles.first)
- end
+ expect(page).to have_content(issue_title)
+ .and have_content(user.name)
+ .and have_content(project.name)
+ .and have_content(label_titles.first)
end
end