summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-03-15 14:33:14 +0000
committerRobert Speicher <robert@gitlab.com>2016-03-15 14:33:14 +0000
commit90e91e28e40f2d5d5205e62f6e01e23af4da117f (patch)
treeb745cd4a914d2bef8dd9559f6aa8b2d0b15c7414 /features
parentea7d062fa60e3e622288237fc66a815348bbcf36 (diff)
parent8f21e2ae408a4ebd0e115846b9a639e7ce09a126 (diff)
downloadgitlab-ce-90e91e28e40f2d5d5205e62f6e01e23af4da117f.tar.gz
Merge branch 'application-settings' into 'master'
Applications tab on profile settings Closes #13855 See merge request !3031
Diffstat (limited to 'features')
-rw-r--r--features/profile/profile.feature3
-rw-r--r--features/steps/profile/profile.rb10
2 files changed, 4 insertions, 9 deletions
diff --git a/features/profile/profile.feature b/features/profile/profile.feature
index 168d9d30b50..447dd92a458 100644
--- a/features/profile/profile.feature
+++ b/features/profile/profile.feature
@@ -76,8 +76,7 @@ Feature: Profile
Scenario: I can manage application
Given I visit profile applications page
- Then I click on new application button
- And I should see application form
+ Then I should see application form
Then I fill application form out and submit
And I see application
Then I click edit
diff --git a/features/steps/profile/profile.rb b/features/steps/profile/profile.rb
index d9436e9e21a..fd9aaeb3b09 100644
--- a/features/steps/profile/profile.rb
+++ b/features/steps/profile/profile.rb
@@ -180,18 +180,14 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
end
end
- 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"
+ expect(page).to have_content "Add 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"
+ click_on "Save application"
end
step 'I see application' do
@@ -211,7 +207,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
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"
+ click_on "Save application"
end
step 'I see that application was changed' do