1
0

Added system tests under Redmine 4

This commit is contained in:
cryptogopher
2020-08-08 15:39:13 +02:00
parent c79e03d0f4
commit 66a364d017
7 changed files with 140 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
require File.expand_path('../../application_system_test_case', __FILE__)
class TargetsTest < BodyTrackingSystemTestCase
def setup
super
@project1 = projects(:projects_001)
log_user 'alice', 'foo'
end
def teardown
logout_user
super
end
def test_index
assert_not_equal 0, @project1.targets.count
visit project_targets_path(@project1)
assert_current_path project_targets_path(@project1)
end
def test_index_without_targets
#assert_equal 0, @project1.targets.count
#assert_selector 'div#targets', visible: :yes, exact_text: l(:label_no_data)
end
end