summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-12-21 10:37:53 +0000
committerPhil Hughes <me@iamphill.com>2018-12-21 10:37:53 +0000
commit3019a567f0795e8611bddd2b108cbcb5c7aedafa (patch)
tree0b4e60871ec53a1a38abad339643074dd9303277 /spec
parentc20f0564015be67ac7871abbd0a2ed8762484cea (diff)
downloadgitlab-ce-3019a567f0795e8611bddd2b108cbcb5c7aedafa.tar.gz
Fixes the markdown toolbar buttons
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55618
Diffstat (limited to 'spec')
-rw-r--r--spec/features/issues/user_creates_issue_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/features/issues/user_creates_issue_spec.rb b/spec/features/issues/user_creates_issue_spec.rb
index 830d56035aa..e60486f6dcb 100644
--- a/spec/features/issues/user_creates_issue_spec.rb
+++ b/spec/features/issues/user_creates_issue_spec.rb
@@ -14,7 +14,7 @@ describe "User creates issue" do
visit(new_project_issue_path(project))
end
- it "creates issue" do
+ it "creates issue", :js do
page.within(".issue-form") do
expect(page).to have_no_content("Assign to")
.and have_no_content("Labels")
@@ -27,11 +27,15 @@ describe "User creates issue" do
issue_title = "500 error on profile"
fill_in("Title", with: issue_title)
+ first('.js-md').click
+ first('.qa-issuable-form-description').native.send_keys('Description')
+
click_button("Submit issue")
expect(page).to have_content(issue_title)
.and have_content(user.name)
.and have_content(project.name)
+ expect(page).to have_selector('strong', text: 'Description')
end
end