mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
new fix epp_log
This commit is contained in:
parent
56737526da
commit
c9ca018b0c
1 changed files with 5 additions and 3 deletions
|
@ -7,7 +7,7 @@ class AdminEppLogsIntegrationTest < ApplicationSystemTestCase
|
||||||
sign_in users(:admin)
|
sign_in users(:admin)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_helper_test
|
def send_epp_request_hello
|
||||||
request_xml = <<-XML
|
request_xml = <<-XML
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd">
|
<epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd">
|
||||||
|
@ -26,9 +26,9 @@ class AdminEppLogsIntegrationTest < ApplicationSystemTestCase
|
||||||
|
|
||||||
def test_show_epp_log_page
|
def test_show_epp_log_page
|
||||||
visit admin_epp_logs_path
|
visit admin_epp_logs_path
|
||||||
test_helper_test
|
send_epp_request_hello
|
||||||
visit admin_epp_logs_path
|
visit admin_epp_logs_path
|
||||||
puts find(:xpath, "//table").native
|
|
||||||
find(:xpath, "//tbody/tr/td/a", match: :first).click
|
find(:xpath, "//tbody/tr/td/a", match: :first).click
|
||||||
assert_text 'Details'
|
assert_text 'Details'
|
||||||
end
|
end
|
||||||
|
@ -36,6 +36,8 @@ class AdminEppLogsIntegrationTest < ApplicationSystemTestCase
|
||||||
def test_dates_sort
|
def test_dates_sort
|
||||||
Capybara.exact = true
|
Capybara.exact = true
|
||||||
visit admin_epp_logs_path
|
visit admin_epp_logs_path
|
||||||
|
send_epp_request_hello
|
||||||
|
visit admin_epp_logs_path
|
||||||
|
|
||||||
find(:xpath, "//a[contains(text(), 'Created at')]", match: :first).click
|
find(:xpath, "//a[contains(text(), 'Created at')]", match: :first).click
|
||||||
find(:xpath, "//a[contains(text(), 'Created at')]", match: :first).click
|
find(:xpath, "//a[contains(text(), 'Created at')]", match: :first).click
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue