diff options
| author | Rémy Coutable <remy@rymai.me> | 2016-12-19 08:33:44 +0000 |
|---|---|---|
| committer | Rémy Coutable <remy@rymai.me> | 2016-12-19 08:33:44 +0000 |
| commit | 4f77a3f81e71643bc817b6f2b6003e2f322637aa (patch) | |
| tree | 11145582bf3d9fe8269a9ef9540ea76ae4237e88 /features/steps | |
| parent | 0b2782f24686ab5ec7a0241e034ab6e24f0cf263 (diff) | |
| parent | 5a6252ff4ab4fd24d4c3f1b14d4551061e7acb65 (diff) | |
| download | gitlab-ce-4f77a3f81e71643bc817b6f2b6003e2f322637aa.tar.gz | |
Merge branch 'move-admin-application-spinach-test-to-rspec' into 'master'
Move admin application spinach test to RSpec
Part of #23036
See merge request !8140
Diffstat (limited to 'features/steps')
| -rw-r--r-- | features/steps/admin/applications.rb | 55 | ||||
| -rw-r--r-- | features/steps/shared/paths.rb | 4 |
2 files changed, 0 insertions, 59 deletions
diff --git a/features/steps/admin/applications.rb b/features/steps/admin/applications.rb deleted file mode 100644 index 7c12cb96921..00000000000 --- a/features/steps/admin/applications.rb +++ /dev/null @@ -1,55 +0,0 @@ -class Spinach::Features::AdminApplications < Spinach::FeatureSteps - include SharedAuthentication - include SharedPaths - include SharedAdmin - - step 'I click on new application button' do - click_on 'New Application' - end - - step 'I should see application form' do - expect(page).to have_content "New application" - end - - step 'I fill application form out and submit' do - fill_in :doorkeeper_application_name, with: 'test' - fill_in :doorkeeper_application_redirect_uri, with: 'https://test.com' - click_on "Submit" - end - - step 'I see application' do - expect(page).to have_content "Application: test" - expect(page).to have_content "Application Id" - expect(page).to have_content "Secret" - end - - step 'I click edit' do - click_on "Edit" - end - - step 'I see edit application form' do - expect(page).to have_content "Edit application" - end - - step 'I change name of application and submit' do - expect(page).to have_content "Edit application" - fill_in :doorkeeper_application_name, with: 'test_changed' - click_on "Submit" - end - - step 'I see that application was changed' do - expect(page).to have_content "test_changed" - expect(page).to have_content "Application Id" - expect(page).to have_content "Secret" - end - - step 'I click to remove application' do - page.within '.oauth-applications' do - click_on "Destroy" - end - end - - step "I see that application is removed" do - expect(page.find(".oauth-applications")).not_to have_content "test_changed" - end -end diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb index 82c07d4f536..a78d0a775ba 100644 --- a/features/steps/shared/paths.rb +++ b/features/steps/shared/paths.rb @@ -207,10 +207,6 @@ module SharedPaths visit admin_spam_logs_path end - step 'I visit applications page' do - visit admin_applications_path - end - # ---------------------------------------- # Generic Project # ---------------------------------------- |
