Sha256: 04b615e01bc4af5f204b9d89bb3db3911ac856846610a8fe5c21a2e6c83d2d48
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
module Integration def fill_in_filter(value) page.execute_script <<-JS $("form.filter input[type='text']").val("#{value}").keyup(); JS end def confirm_dialog(message = 'Are you sure?') begin wait_until { page.has_css?("div.bootbox.modal") } rescue Capybara::TimeoutError raise "Expected confirmation modal to be visible." end within "div.bootbox.modal" do page.should have_content(message) click_link "OK" end end def should_hide_the_table_and_display_a_notification expect(page).to_not have_css("table.databases") expect(page).to have_content("Nothing has been found.") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_browser-0.1.0 | spec/support/integration.rb |