mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 15:34:41 +02:00
Fixed default sorting of epp logs
This commit is contained in:
parent
316f00cadc
commit
1b7f625c69
2 changed files with 13 additions and 11 deletions
|
@ -17,7 +17,7 @@ class AdminEppLogsIntegrationTest < ApplicationSystemTestCase
|
|||
send_epp_request_hello
|
||||
visit admin_epp_logs_path
|
||||
|
||||
find(:xpath, "//tbody/tr/td/a", match: :first).click
|
||||
find(:xpath, '//tbody/tr/td/a', match: :first).click
|
||||
assert_text 'Details'
|
||||
end
|
||||
|
||||
|
@ -27,12 +27,14 @@ class AdminEppLogsIntegrationTest < ApplicationSystemTestCase
|
|||
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
|
||||
|
||||
epp_log_date = find(:xpath, "//table/tbody/tr/td[6]", match: :first).text(:all)
|
||||
date_now = Date.today.to_s(:db)
|
||||
epp_log_date = find(:xpath, '//table/tbody/tr/td[6]', match: :first).text(:all)
|
||||
assert_match /#{date_now}/, epp_log_date
|
||||
|
||||
find(:xpath, "//a[contains(text(), 'Created at')]", match: :first).click
|
||||
find(:xpath, "//a[contains(text(), 'Created at')]", match: :first).click
|
||||
|
||||
epp_log_date = find(:xpath, '//table/tbody/tr/td[6]', match: :first).text(:all)
|
||||
assert_match /#{date_now}/, epp_log_date
|
||||
end
|
||||
|
||||
|
@ -57,9 +59,9 @@ class AdminEppLogsIntegrationTest < ApplicationSystemTestCase
|
|||
<epp xmlns="#{Xsd::Schema.filename(for_prefix: 'epp-ee', for_version: '1.0')}">
|
||||
<hello/>
|
||||
</epp>
|
||||
XML
|
||||
XML
|
||||
|
||||
get epp_hello_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=non-existent' }
|
||||
headers: { 'HTTP_COOKIE' => 'session=non-existent' }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue