mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 15:44:45 +02:00
add ui tests for repp logs. fixed repp_logs show.haml
This commit is contained in:
parent
b37363034d
commit
6cebdc5899
2 changed files with 20 additions and 36 deletions
|
@ -3,16 +3,16 @@ require 'application_system_test_case'
|
||||||
|
|
||||||
class AdminAreaAccountActivitiesIntegrationTest < ApplicationSystemTestCase
|
class AdminAreaAccountActivitiesIntegrationTest < ApplicationSystemTestCase
|
||||||
# /admin/account_activities
|
# /admin/account_activities
|
||||||
include Devise::Test::IntegrationHelpers
|
|
||||||
include ActionView::Helpers::NumberHelper
|
|
||||||
|
|
||||||
setup do
|
setup do
|
||||||
sign_in users(:admin)
|
sign_in users(:admin)
|
||||||
@original_default_language = Setting.default_language
|
@original_default_language = Setting.default_language
|
||||||
end
|
end
|
||||||
|
# TODO:
|
||||||
|
# Should create some account activities
|
||||||
# TESTS
|
|
||||||
# TODO
|
# def test_show_account_activities_page
|
||||||
|
# visit admin_account_activities_path
|
||||||
|
# assert_text 'Account activities'
|
||||||
|
# end
|
||||||
|
|
||||||
end
|
end
|
|
@ -1,42 +1,26 @@
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
require 'application_system_test_case'
|
require 'application_system_test_case'
|
||||||
|
|
||||||
class AdminAreaReppLogsIntegrationTest < JavaScriptApplicationSystemTestCase
|
class AdminAreaReppLogsIntegrationTest < ApplicationSystemTestCase
|
||||||
|
|
||||||
setup do
|
setup do
|
||||||
WebMock.allow_net_connect!
|
|
||||||
sign_in users(:admin)
|
sign_in users(:admin)
|
||||||
|
|
||||||
@logs = ApiLog::ReppLog
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO
|
def test_repp_logs_page
|
||||||
|
visit admin_repp_logs_path
|
||||||
|
assert_text 'REPP log'
|
||||||
|
end
|
||||||
|
|
||||||
# Helpers ================================================
|
|
||||||
|
|
||||||
# def clear_repp_logs
|
def test_show_repp_log_page
|
||||||
# @logs.delete_all
|
visit admin_repp_logs_path
|
||||||
# end
|
get repp_v1_contacts_path
|
||||||
|
visit admin_repp_logs_path
|
||||||
|
|
||||||
|
find(:xpath, "//tbody/tr/td/a", match: :first).click
|
||||||
|
|
||||||
# def visit_and_add_some_repp_log
|
assert_text 'REPP log'
|
||||||
# # clear_repp_logs
|
end
|
||||||
|
|
||||||
# visit admin_repp_logs_path
|
|
||||||
# assert_text 'REPP log'
|
|
||||||
|
|
||||||
# get repp_v1_contacts_path
|
|
||||||
|
|
||||||
# visit admin_repp_logs_path
|
|
||||||
# assert_text 'REPP log'
|
|
||||||
|
|
||||||
# find(:xpath, "//table/tbody/tr/td/a", match: :first).click
|
|
||||||
# end
|
|
||||||
|
|
||||||
# # Tests ==================================================
|
|
||||||
|
|
||||||
# def test_visit_repp_logs
|
|
||||||
# visit_and_add_some_repp_log
|
|
||||||
# # p find(:xpath, "//table").native.attribute('outerHTML')
|
|
||||||
# end
|
|
||||||
|
|
||||||
end
|
end
|
Loading…
Add table
Add a link
Reference in a new issue