提交 8fa1f65e 编写于 作者: F Fatih Acet

IssueNotesRefactor: Fix invalid tests.

上级 c00ff16f
......@@ -67,7 +67,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
it 'does not change the WIP prefix' do
write_note("/wip")
expect(page).not_to have_content '/wip'
expect(page).to have_content '/wip'
expect(page).not_to have_content 'Commands applied'
expect(merge_request.reload.work_in_progress?).to eq false
......@@ -197,7 +197,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
it 'does not change target branch' do
write_note('/target_branch merge-test')
expect(page).not_to have_content '/target_branch merge-test'
expect(page).to have_content '/target_branch merge-test'
expect(merge_request.target_branch).to eq 'feature'
end
......
......@@ -119,7 +119,7 @@ shared_examples 'issuable record that supports quick actions in its description
it "does not close the #{issuable_type}" do
write_note("/close")
expect(page).not_to have_content '/close'
expect(page).to have_content '/close'
expect(page).not_to have_content 'Commands applied'
expect(issuable).to be_open
......@@ -154,7 +154,7 @@ shared_examples 'issuable record that supports quick actions in its description
it "does not reopen the #{issuable_type}" do
write_note("/reopen")
expect(page).not_to have_content '/reopen'
expect(page).to have_content '/reopen'
expect(page).not_to have_content 'Commands applied'
expect(issuable).to be_closed
......@@ -184,7 +184,7 @@ shared_examples 'issuable record that supports quick actions in its description
it "does not reopen the #{issuable_type}" do
write_note("/title Awesome new title")
expect(page).not_to have_content '/title'
expect(page).to have_content '/title'
expect(page).not_to have_content 'Commands applied'
expect(issuable.reload.title).not_to eq 'Awesome new title'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册