mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 20:19:34 +02:00
added reserved modal tests
This commit is contained in:
parent
e3cf0ff3d6
commit
9d33421189
2 changed files with 8 additions and 1 deletions
|
@ -49,7 +49,7 @@
|
|||
class: 'btn btn-primary' %>
|
||||
</div>
|
||||
<div >
|
||||
<%= link_to "#", class: "btn btn-warning edit",
|
||||
<%= link_to "#", class: "btn btn-warning edit", id: 'reserved-modal',
|
||||
data: {
|
||||
toggle: "modal",
|
||||
url: admin_reserved_domains_path,
|
||||
|
|
|
@ -163,4 +163,11 @@ class AdminAreaAuctionIntegrationTest < ApplicationSystemTestCase
|
|||
visit admin_reserved_domains_path
|
||||
assert_no_text domain.name
|
||||
end
|
||||
|
||||
def test_should_open_reserved_page_in_modal_window
|
||||
visit admin_auctions_path
|
||||
|
||||
find(:id, "reserved-modal", match: :first).click
|
||||
assert_text 'Reserved domains'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue