Commit 20d43709 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Adjust board deleting test

parent 96a1ea12
...@@ -72,16 +72,12 @@ describe 'Multiple Issue Boards', :js do ...@@ -72,16 +72,12 @@ describe 'Multiple Issue Boards', :js do
page.within('.dropdown-menu') do page.within('.dropdown-menu') do
click_link 'Delete board' click_link 'Delete board'
page.within('.dropdown-title') do
expect(page).to have_content('Delete board')
end
click_link 'Delete'
end end
click_button board2.name expect(page).to have_content('Are you sure you want to delete this board?')
click_button 'Delete'
click_button board2.name
page.within('.dropdown-menu') do page.within('.dropdown-menu') do
expect(page).not_to have_content(board.name) expect(page).not_to have_content(board.name)
expect(page).to have_content(board2.name) expect(page).to have_content(board2.name)
......
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