diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2018-04-17 19:37:16 +0300 |
---|---|---|
committer | Jose <jivanvl@hotmail.com> | 2018-04-20 20:48:04 +0300 |
commit | ea7127dea929bd47b9142f1550841e196898b7b3 (patch) | |
tree | ccf9699d155555232a6ce8ffe990e7068f76ec7c /spec/features | |
parent | 4745361c1f714812d6d07ba5b8a1dc686e9e74e4 (diff) |
Changed anchor not to have the js prefix, add i18n
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/settings/pipelines_settings_spec.rb | 10 | ||||
-rw-r--r-- | spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/spec/features/projects/settings/pipelines_settings_spec.rb b/spec/features/projects/settings/pipelines_settings_spec.rb index 03e24471621..e875a88a52b 100644 --- a/spec/features/projects/settings/pipelines_settings_spec.rb +++ b/spec/features/projects/settings/pipelines_settings_spec.rb @@ -29,13 +29,13 @@ describe "Projects > Settings > Pipelines settings" do fill_in('Test coverage parsing', with: 'coverage_regex') - page.within '.general-ci-settings' do + page.within '#js-general-pipeline-settings' do click_on 'Save changes' end expect(page.status_code).to eq(200) - page.within '.general-ci-settings' do + page.within '#js-general-pipeline-settings' do expect(page).to have_button('Save changes', disabled: false) end @@ -46,13 +46,13 @@ describe "Projects > Settings > Pipelines settings" do visit project_settings_ci_cd_path(project) page.check('Auto-cancel redundant, pending pipelines') - page.within '.general-ci-settings' do + page.within '#js-general-pipeline-settings' do click_on 'Save changes' end expect(page.status_code).to eq(200) - page.within '.general-ci-settings' do + page.within '#js-general-pipeline-settings' do expect(page).to have_button('Save changes', disabled: false) end @@ -64,7 +64,7 @@ describe "Projects > Settings > Pipelines settings" do it 'update auto devops settings' do visit project_settings_ci_cd_path(project) - page.within '.autodevops-settings' do + page.within '#autodevops-settings' do fill_in('project_auto_devops_attributes_domain', with: 'test.com') page.choose('project_auto_devops_attributes_enabled_false') click_on 'Save changes' diff --git a/spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb b/spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb index 044cce75c00..e44361fbe26 100644 --- a/spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb +++ b/spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb @@ -65,7 +65,7 @@ describe 'Projects > Show > User sees setup shortcut buttons' do describe 'Auto DevOps button' do it '"Enable Auto DevOps" button linked to settings page' do page.within('.project-stats') do - expect(page).to have_link('Enable Auto DevOps', href: project_settings_ci_cd_path(project, anchor: 'js-autodevops-settings')) + expect(page).to have_link('Enable Auto DevOps', href: project_settings_ci_cd_path(project, anchor: 'autodevops-settings')) end end @@ -75,7 +75,7 @@ describe 'Projects > Show > User sees setup shortcut buttons' do visit project_path(project) page.within('.project-stats') do - expect(page).to have_link('Auto DevOps enabled', href: project_settings_ci_cd_path(project, anchor: 'js-autodevops-settings')) + expect(page).to have_link('Auto DevOps enabled', href: project_settings_ci_cd_path(project, anchor: 'autodevops-settings')) end end end @@ -212,7 +212,7 @@ describe 'Projects > Show > User sees setup shortcut buttons' do describe 'Auto DevOps button' do it '"Enable Auto DevOps" button linked to settings page' do page.within('.project-stats') do - expect(page).to have_link('Enable Auto DevOps', href: project_settings_ci_cd_path(project, anchor: 'js-autodevops-settings')) + expect(page).to have_link('Enable Auto DevOps', href: project_settings_ci_cd_path(project, anchor: 'autodevops-settings')) end end @@ -222,7 +222,7 @@ describe 'Projects > Show > User sees setup shortcut buttons' do visit project_path(project) page.within('.project-stats') do - expect(page).to have_link('Auto DevOps enabled', href: project_settings_ci_cd_path(project, anchor: 'js-autodevops-settings')) + expect(page).to have_link('Auto DevOps enabled', href: project_settings_ci_cd_path(project, anchor: 'autodevops-settings')) end end |