new fix epp_log

This commit is contained in:
Oleg Hasjanov 2021-01-21 11:45:53 +02:00
parent 56737526da
commit c9ca018b0c

View file

@ -7,7 +7,7 @@ class AdminEppLogsIntegrationTest < ApplicationSystemTestCase
sign_in users(:admin)
end
def test_helper_test
def send_epp_request_hello
request_xml = <<-XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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
visit admin_epp_logs_path
test_helper_test
send_epp_request_hello
visit admin_epp_logs_path
puts find(:xpath, "//table").native
find(:xpath, "//tbody/tr/td/a", match: :first).click
assert_text 'Details'
end
@ -36,6 +36,8 @@ class AdminEppLogsIntegrationTest < ApplicationSystemTestCase
def test_dates_sort
Capybara.exact = true
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