diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-20 18:38:24 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-20 18:38:24 +0000 |
commit | 983a0bba5d2a042c4a3bbb22432ec192c7501d82 (patch) | |
tree | b153cd387c14ba23bd5a07514c7c01fddf6a78a0 /qa/qa/specs | |
parent | a2bddee2cdb38673df0e004d5b32d9f77797de64 (diff) | |
download | gitlab-ce-983a0bba5d2a042c4a3bbb22432ec192c7501d82.tar.gz |
Add latest changes from gitlab-org/gitlab@12-10-stable-ee
Diffstat (limited to 'qa/qa/specs')
-rw-r--r-- | qa/qa/specs/features/browser_ui/2_plan/issue/export_as_csv_spec.rb | 40 | ||||
-rw-r--r-- | qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_remove_ci_variable_spec.rb | 8 |
2 files changed, 40 insertions, 8 deletions
diff --git a/qa/qa/specs/features/browser_ui/2_plan/issue/export_as_csv_spec.rb b/qa/qa/specs/features/browser_ui/2_plan/issue/export_as_csv_spec.rb new file mode 100644 index 00000000000..3727aae2270 --- /dev/null +++ b/qa/qa/specs/features/browser_ui/2_plan/issue/export_as_csv_spec.rb @@ -0,0 +1,40 @@ +# frozen_string_literal: true + +require 'securerandom' + +module QA + context 'Plan', :reliable do + describe 'Issues list' do + let(:project) do + Resource::Project.fabricate_via_api! do |project| + project.name = 'project-to-test-export-issues-as-csv' + end + end + + before do + Flow::Login.sign_in + + 2.times do + Resource::Issue.fabricate_via_api! do |issue| + issue.project = project + end + end + + project.visit! + Page::Project::Menu.perform(&:click_issues) + end + + it 'successfully exports issues list as CSV' do + Page::Project::Issue::Index.perform do |index| + index.click_export_as_csv_button + + expect(index.export_issues_modal).to have_content('2 issues selected') + + index.click_export_issues_button + + expect(index).to have_content(/Your CSV export has started. It will be emailed to (\S+) when complete./) + end + end + end + end +end diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_remove_ci_variable_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_remove_ci_variable_spec.rb index f7a6c8411db..f05634bc3c8 100644 --- a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_remove_ci_variable_spec.rb +++ b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_remove_ci_variable_spec.rb @@ -10,14 +10,6 @@ module QA end end - before(:all) do - Runtime::Feature.enable_and_verify('new_variables_ui') - end - - after(:all) do - Runtime::Feature.remove('new_variables_ui') - end - before do Flow::Login.sign_in add_ci_variable |