Commit Graph

43 Commits

Author SHA1 Message Date
Michael Kozono 7d02bcd2e0 Redirect from redirect routes to canonical routes 2017-05-05 12:11:57 -07:00
Michael Kozono f4a2dfb46f Add happy path feature tests for redirect behavior 2017-05-05 12:11:57 -07:00
Jose Ivan Vargas eb2d6a6ed5 Fixed rspec tests 2017-04-06 14:58:57 -05:00
Rémy Coutable 4e3516788f Don't use FFaker in factories, use sequences instead
FFaker can generate data that randomly break our test suite. This
simplifies our factories and use sequences which are more predictive.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-03 18:54:48 +02:00
Stan Hu 7cad597f6c Revert "Merge branch '8836-mr-revert' into 'master'
This reverts commit 68e40bd49f, reversing
changes made to 2d1f823b4c.
2017-03-16 20:18:57 -07:00
Stan Hu 203bb0bc54 Revert "Merge branch 'option-to-be-notified-of-own-activity' into 'master'
This reverts commit 5e96668803, reversing
changes made to b35378a938.
2017-03-15 11:51:08 -07:00
Tiago Botelho 005749a616 apply codestyle and implementation changes to the respective feature code 2017-03-06 19:18:26 +00:00
Tiago Botelho 9f2e4742e3 applies relevant changes to the code and code structure 2017-02-28 22:15:40 +00:00
Simon Vocella 9ce56d2b19 Add text-warning class in profile settings if the personal_access_token expires soon 2017-02-28 22:15:39 +00:00
Phil Hughes e42169c28e Updates SSH key title after pasting key
Previously it was listening for focusout, it now listens for blur &
paste events

Closes #28436
2017-02-27 15:25:27 +00:00
Annabel Dunstone Gray 4b7f0b327c Remove all gitlab theme related code 2017-02-15 13:31:18 -06:00
Douwe Maan 5e96668803 Merge branch 'option-to-be-notified-of-own-activity' into 'master'
Add option to receive email notifications about your own activity

See merge request !8836
2017-02-13 18:36:47 +00:00
Phil Hughes 8331036944 Fixed some specs
CHANGELOG item
2017-02-06 09:25:11 +00:00
Richard Macklin 4647d13893 Use check and uncheck methods from Capybara DSL
in user_changes_notified_of_own_activity_spec
2017-02-01 11:31:22 -08:00
Richard Macklin 530d0fda7b Add checkbox in UI to opt into receiving notifications about your activity 2017-02-01 11:31:22 -08:00
Timothy Andrew f14d423dc7 Add a controller spec for personal access tokens.
Split the existing feature spec into both feature and controller specs.
Feature specs assert on browser DOM, and controller specs assert on database
state.
2016-12-16 16:29:32 +05:30
Timothy Andrew 6c809dfae8 Allow creating personal access tokens / OAuth applications with scopes. 2016-12-16 15:08:10 +05:30
Ryan Harris 530d222815 Edit /spec/features/profiles/preferences_spec.rb to match changes in 084d90ac 2016-11-29 13:39:57 -05:00
Kamil Trzcinski 4d7b44b5b7 Add specs for testing authorization and deny of chat user 2016-11-16 23:10:53 +01:00
Robert Speicher ef2ed380f3 Convert "SSH Keys" Spinach features to RSpec 2016-10-03 11:00:05 +02:00
Robert Speicher 0663d72d30 Restore SSH Key title auto-population behavior
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/21823
2016-09-13 11:49:55 -04:00
Connor Shea 1392cad895 Remove sleeping and replace escaped text. 2016-08-13 00:57:40 -05:00
Phil Hughes f668da11cb Updated tests 2016-08-13 00:57:40 -05:00
Carlos Ribeiro ed63ead22a Avoid to show the original password field when password is automatically seted 2016-08-08 13:55:57 -03:00
Timothy Andrew 7ee0898a9e Implement @DouweM's feedback.
- Extract a duplicated `redirect_to`
- Fix a typo: "token", not "certificate"
- Have the "Expires at" datepicker be attached to a text field, not inline
- Have both private tokens and personal access tokens verified in a
  single "authenticate_from_private_token" method, both in the
  application and API. Move relevant logic to
  `User#find_by_personal_access_token`
- Remove unnecessary constants relating to API auth. We don't need a
  separate constant for personal access tokens since the param is the
  same as for private tokens.
2016-06-16 08:24:13 +05:30
Timothy Andrew d0bcba1105 Merge remote-tracking branch 'origin/master' into 2979-personal-access-tokens 2016-06-14 09:06:53 +05:30
Annabel Dunstone 3e28d04cce Fix preferences_spec test 2016-06-10 15:08:13 -05:00
Timothy Andrew e18a08fd89 Implement second round of comments from @jschatz1.
- Just use a link for the clipboard button. Having a non-clickable
  container (that looks like a button) is confusing.
- Use `text-danger` for the "you won't be able to access it again" message.
- Highlight the created token so people know to look there.
2016-06-10 10:30:49 +05:30
Timothy Andrew 1f5ecf916e Implement @jschatz1's comments.
- No hardcoded colors in any SCSS file except `variables.scss`
- Don't allow choosing a date in the past
- Use the same table as in the "Applications" tab
- The button should say "Create Personal Access Token"
- Float the revoke button to the right of the table cell
- Change the revocation message to be more explicit.
- Date shouldn't look selected on page load
- Don't use a panel for the created token
    - Use a normal flash for "Your new personal access token has been created"
    - Show the input (with the token) below it full width.
    - Put the "Make sure you save it - you won't be able to access it again." message near the input
- Have the created token's input highlight all on single click
2016-06-09 14:08:49 +05:30
Timothy Andrew 3adf125a15 Add tests for errors while creating/revoking personal access tokens. 2016-06-03 10:00:03 +05:30
Timothy Andrew a1295d8ebe Don't use `natve['innerHTML']` in the feature spec.
- The `have_text` matcher works fine.
2016-06-03 08:58:15 +05:30
Timothy Andrew 4d50d8a6e3 Only show a personal access token right after its creation. 2016-06-02 11:06:38 +05:30
Timothy Andrew bafbf22c6a Address @DouweM's feedback on !3749.
- Use `TokenAuthenticatable` to generate the personal access token
- Remove a check for `authenticity_token` in application controller;
  this should've been `authentication_token`, maybe, and doesn't make
  any sense now.
- Have the datepicker appear inline
2016-04-28 22:28:36 +05:30
Timothy Andrew 25aefde62b Add feature specs for personal access token management. 2016-04-28 22:28:36 +05:30
Stan Hu c7e384aab2 Add spec for deletion of authorized OAuth2 application
Closes #14370

Move gon function into its own helper
2016-04-14 07:24:58 -07:00
Douwe Maan f87f6480b2 Use new routing helper 2015-09-08 17:53:16 +01:00
Robert Speicher 4b4351a18c Add `feature` tag to feature specs
Not to be confused with the RSpec `type: :feature` tag, this tag is used
by the `spec:feature` Rake task for filtering/grouping specs.
2015-07-06 22:39:55 -04:00
Robert Speicher afec5efc7d Fix features syntax 2015-06-22 12:13:45 +02:00
Robert Speicher b00f447db4 Add `allowing_for_delay` helper method for feature specs 2015-06-14 20:33:29 -04:00
Robert Speicher bf9dd4327e Add feature specs for default dashboard preference 2015-06-13 17:59:12 -04:00
Robert Speicher 0e21436aaf Simplify the javascript behavior for Preference updating 2015-06-13 17:58:17 -04:00
Robert Speicher 844d72716e Add Gitlab::Themes module; remove Gitlab::Theme
Now we can simply loop through all themes, among other things.

This also removes the `dark_theme` / `light_theme` classes and the
`theme_type` helper, since they weren't used anywhere.
2015-06-13 17:58:16 -04:00
Robert Speicher 0c0c31ff34 Move the "Design" templates and logic to Preferences 2015-06-13 17:58:16 -04:00