Skip to content

Commit f78c699

Browse files
author
bmarkons
committed
Fix ManualRunner acceptance test
1 parent f53d4f4 commit f78c699

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
require 'acceptance/test_helper'
22

33
class RunningSuiteManuallyTest < AcceptanceTest
4-
test 'Admin should be able to manually run suite for existing repo' do
5-
repo = create(:repo)
4+
setup do
5+
@repo = create(:repo)
6+
end
67

7-
visit admin_repo_path(repo.name)
8-
assert page.has_css?('label', text: I18n.t('admin.manual_run_count_label'))
9-
assert page.has_css?('label', text: I18n.t('admin.manual_run_pattern_label'))
10-
assert page.has_css?('button', text: I18n.t('admin.manual_run_button'))
8+
test 'Admin should be able to manually run commits and releases for existing repo' do
9+
visit admin_repo_path(@repo.name)
10+
11+
assert page.has_css?('label', text: I18n.t('admin.commits_run_count_label'))
12+
assert page.has_css?('label', text: I18n.t('admin.manual_run_pattern_label'), count: 2)
13+
assert page.has_css?('button', text: I18n.t('admin.manual_run_button'), count: 2)
14+
assert page.has_css?('label', text: I18n.t('admin.releases_run_versions_label'))
1115
end
1216
end

0 commit comments

Comments
 (0)