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/support/shared_examples/features/sidebar_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/features/sidebar_shared_examples.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/support/shared_examples/features/sidebar_shared_examples.rb b/spec/support/shared_examples/features/sidebar_shared_examples.rb
index 77334db6a36..c2c50e8762f 100644
--- a/spec/support/shared_examples/features/sidebar_shared_examples.rb
+++ b/spec/support/shared_examples/features/sidebar_shared_examples.rb
@@ -42,6 +42,26 @@ RSpec.shared_examples 'issue boards sidebar' do
end
end
+ context 'editing issue title' do
+ it 'edits issue title' do
+ page.within('[data-testid="sidebar-title"]') do
+ click_button 'Edit'
+
+ wait_for_requests
+
+ find('input').set('Test title')
+
+ click_button 'Save changes'
+
+ wait_for_requests
+
+ expect(page).to have_content('Test title')
+ end
+
+ expect(first_card).to have_content('Test title')
+ end
+ end
+
context 'editing issue milestone', :js do
it_behaves_like 'milestone sidebar widget'
end