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/merge_request/user_posts_notes_spec.rb')
-rw-r--r--spec/features/merge_request/user_posts_notes_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/features/merge_request/user_posts_notes_spec.rb b/spec/features/merge_request/user_posts_notes_spec.rb
index e629bc0dc53..3099a893dc2 100644
--- a/spec/features/merge_request/user_posts_notes_spec.rb
+++ b/spec/features/merge_request/user_posts_notes_spec.rb
@@ -44,7 +44,10 @@ RSpec.describe 'Merge request > User posts notes', :js do
it 'has enable submit button, preview button and saves content to local storage' do
page.within('.js-main-target-form') do
- expect(page).not_to have_css('.js-comment-button[disabled]')
+ page.within('[data-testid="comment-button"]') do
+ expect(page).to have_css('.split-content-button')
+ expect(page).not_to have_css('.split-content-button[disabled]')
+ end
expect(page).to have_css('.js-md-preview-button', visible: true)
end