File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11require 'acceptance/test_helper'
22
33class 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
1216end
You can’t perform that action at this time.
0 commit comments