1
0

Added defaults load test

This commit is contained in:
cryptogopher
2020-08-26 02:07:36 +02:00
parent 6ba8ad5376
commit 8f2a455561
3 changed files with 19 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
require File.expand_path('../../application_system_test_case', __FILE__)
class BodyTrackersTest < BodyTrackingSystemTestCase
def setup
super
@project1 = projects(:projects_001)
log_user 'jsmith', 'jsmith'
end
def test_defaults_load
visit project_body_trackers_path(@project1)
accept_alert t('layouts.sidebar.confirm_defaults') do
click_link t('layouts.sidebar.link_defaults')
end
assert_selector 'div#flash_notice'
assert_no_selector 'div#flash_error'
end
end

View File

@@ -3,9 +3,7 @@ require File.expand_path('../../application_system_test_case', __FILE__)
class TargetsTest < BodyTrackingSystemTestCase
def setup
super
@project1 = projects(:projects_001)
log_user 'jsmith', 'jsmith'
end