gitlab-org--gitlab-foss/spec
Stan Hu 49b9d8aef9 Fix randomly failing specs in expand_collapse_diff_spec:
```
 Failure/Error: namespace.human_name + ' / ' + name

     ActionView::Template::Error:
       undefined method `+' for nil:NilClass
     # ./app/models/project.rb:807:in `name_with_namespace'
     # ./app/views/layouts/project.html.haml:1:in `_app_views_layouts_project_html_haml___2918737809244135908_70160161538920
'
     # ./app/controllers/projects/commit_controller.rb:23:in `show'
     # ./lib/gitlab/request_profiler/middleware.rb:15:in `call'
     # ./lib/gitlab/middleware/go.rb:16:in `call'
     # ./lib/gitlab/middleware/static.rb:9:in `call'
     # ------------------

     # --- Caused by: ---
     # NoMethodError:
     #   undefined method `+' for nil:NilClass
     #   ./app/models/project.rb:807:in `name_with_namespace'
```

Capybara's `click_link` method doesn't actually wait for the page to reload.
When the `expand_all_diffs` parameter is used, we need to search for unique
elements that appear to ensure that the page has actually reloaded.

Closes #21841
2016-09-03 20:51:18 -07:00
..
config Small refactor and a few documentation fixes 2016-08-04 19:02:39 +02:00
controllers Project tools visibility level 2016-09-01 11:47:59 -03:00
factories Project tools visibility level 2016-09-01 11:47:59 -03:00
features Fix randomly failing specs in expand_collapse_diff_spec: 2016-09-03 20:51:18 -07:00
finders add specs for tags finder 2016-08-31 19:16:47 +01:00
fixtures Returns the total number of issues in the JSON response 2016-08-31 09:30:37 +01:00
helpers Show "Create Merge Request" widget for push events to fork projects on the source project 2016-08-24 18:54:26 +02:00
initializers Give priority to environment variables 2016-08-03 15:48:48 +01:00
javascripts Convert datetime coffeescript spec to ES6 2016-09-01 21:09:47 -05:00
lib Merge branch 'issue_19734' into 'master' 2016-09-01 15:28:14 +00:00
mailers Merge branch 'master' into 'expiration-date-on-memberships' 2016-08-19 10:58:01 +00:00
models Merge branch 'fix/handle-raw-trace-error-on-old-builds' into 'master' 2016-09-02 14:31:46 +00:00
policies add project_policy_spec to replace .project_abilities spec 2016-08-30 11:35:06 -07:00
requests Merge branch 'internal_recovery_api' into 'master' 2016-09-02 14:20:07 +00:00
routing Fix markdown help references 2016-08-26 09:38:21 -05:00
services Prepend blank line to close message on merge request 2016-09-01 14:06:45 -05:00
support Merge branch 'shorten-task-status-phrase' into 'master' 2016-08-30 17:46:03 +00:00
tasks/gitlab Use File::exist? instead of File::exists? 2016-08-11 13:54:45 +03:00
uploaders
views Fix test 2016-08-30 13:05:40 +02:00
workers Project tools visibility level 2016-09-01 11:47:59 -03:00
factories_spec.rb adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
rails_helper.rb
simplecov_env.rb Bump SimpleCov merge timeout to 365 days 2016-08-22 13:44:14 +02:00
spec_helper.rb Merge remote-tracking branch 'upstream/master' into artifacts-from-ref-and-build-name 2016-08-24 20:56:30 +08:00
teaspoon_env.rb Add test coverage analysis for CoffeeScript (!5052) 2016-08-07 21:52:37 +02:00