Commit ddb82dde authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Replace `write_note` with `add_note` in spec files

parent 927b10f2
......@@ -122,7 +122,7 @@ feature 'Issues > User uses quick actions', :js do
context 'when the user can update the weight' do
it 'does not create a note, and sets the weight accordingly' do
write_note("/weight 5")
add_note("/weight 5")
expect(page).not_to have_content '/weight 5'
expect(page).to have_content 'Commands applied'
......@@ -143,7 +143,7 @@ feature 'Issues > User uses quick actions', :js do
end
it 'does not create a note or set the weight' do
write_note("/weight 5")
add_note("/weight 5")
expect(page).not_to have_content 'Commands applied'
......@@ -159,7 +159,7 @@ feature 'Issues > User uses quick actions', :js do
context 'when the user can update the weight' do
it 'does not create a note, and removes the weight accordingly' do
write_note("/clear_weight")
add_note("/clear_weight")
expect(page).not_to have_content '/clear_weight'
expect(page).to have_content 'Commands applied'
......@@ -180,7 +180,7 @@ feature 'Issues > User uses quick actions', :js do
end
it 'does create a note or set the weight' do
write_note("/clear_weight")
add_note("/clear_weight")
expect(page).not_to have_content 'Commands applied'
......
......@@ -201,7 +201,7 @@ describe 'Merge request > User uses quick actions', :js do
describe 'adding a weight from a note' do
it 'does not recognize the command nor create a note' do
write_note("/weight 5")
add_note("/weight 5")
expect(page).not_to have_content '/weight 5'
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment