fixed missing delete icon

pull/6827/head
Christian Ratz 11 years ago
parent b2028b9c3c
commit d14095cad5
  1. 2
      app/views/my_projects_overviews/_block.html.erb
  2. 2
      app/views/my_projects_overviews/_block_textilizable.html.erb
  3. 4
      features/step_definitions/custom_overview_page_steps.rb

@ -25,7 +25,7 @@ See doc/COPYRIGHT.md for more details.
:confirm => l(:label_confirm_delete),
:url => { :action => "remove_block", :block => block_name },
:complete => "removeBlock('block_#{block_name.dasherize}')" },
:class => "icon icon-del"
:class => "icon icon-delete"
%>
</div>

@ -25,7 +25,7 @@ See doc/COPYRIGHT.md for more details.
:confirm => l(:label_confirm_delete),
:url => { :action => "remove_block", :block => block_name },
:complete => "removeBlock('block_#{block_name.dasherize}')" },
:class => "icon icon-del"
:class => "icon icon-delete"
%>
</div>

@ -37,7 +37,7 @@ Then /^I should be able to change things and see my changes when I finish$/ do
!60.times{ break unless (driver.find_element(:css, "#ajax-indicator").displayed? rescue true); sleep 1 }
driver.find_element(:css, "#list-top > #block_timelog").should be_displayed
# ERROR: Caught exception [ERROR: Unsupported command [selectWindow]]
driver.find_element(:css, "#block_wiki > div > a.icon.icon-del").click
driver.find_element(:css, "#block_wiki > div > a.icon.icon-delete").click
# ERROR: Caught exception [ERROR: Unsupported command [getConfirmation]]
!60.times{ break unless (driver.find_element(:css, "#ajax-indicator").displayed? rescue true); sleep 1 }
(driver.find_elements(:css, "#block-select > option[value='wiki'][disabled]").size).should == 0
@ -73,7 +73,7 @@ Then /^I should be able to add a teaser element with custom text$/ do
end
Then /^I should be able to delete a teaser element$/ do
driver.find_element(:css, "#block_a > div > a.icon.icon-del").click
driver.find_element(:css, "#block_a > div > a.icon.icon-delete").click
# ERROR: Caught exception [ERROR: Unsupported command [getConfirmation]]
driver.find_element(:link, "Back").click
(driver.find_elements(:css, "#list-right > .mypage-box > p").size).should == 0

Loading…
Cancel
Save