Commit Graph

35 Commits

Author SHA1 Message Date
GitLab Bot dbe0e56762 Add latest changes from gitlab-org/gitlab@master 2023-03-03 15:08:43 +00:00
GitLab Bot 9dc655286f Add latest changes from gitlab-org/gitlab@master 2022-12-05 21:08:33 +00:00
GitLab Bot 44434461b3 Add latest changes from gitlab-org/gitlab@master 2022-11-03 18:11:17 +00:00
GitLab Bot 8bac8f55ba Add latest changes from gitlab-org/gitlab@master 2022-01-07 18:16:06 +00:00
GitLab Bot 377b57afa8 Add latest changes from gitlab-org/gitlab@master 2021-12-02 06:15:23 +00:00
GitLab Bot 1581767ea1 Add latest changes from gitlab-org/gitlab@master 2021-07-15 15:09:41 +00:00
GitLab Bot 5231344d99 Add latest changes from gitlab-org/gitlab@master 2021-02-11 15:09:11 +00:00
GitLab Bot 4f5c8572e9 Add latest changes from gitlab-org/gitlab@master 2020-06-16 18:09:01 +00:00
GitLab Bot 51c20446a0 Add latest changes from gitlab-org/gitlab@master 2020-05-06 09:10:02 +00:00
Ash McKenzie 124bad7bd8
Use stub_rails_env for Rails.env stubbing
RailsHelpers.stub_rails_env takes care of
stubbing Rails.env
2019-09-05 12:54:03 +10:00
Thong Kuah 4ec16912b8 Autocorrect with RSpec/ExampleWording cop
- rewords examples starting with 'should'
- rewords examples starting with 'it'

Note: I had to manually fixup "onlies" to "only"
2019-04-05 08:43:27 +00:00
Robert Speicher fac5c0e7dd
Resolve transient failure in Help page spec
Sometimes due to a slow request to load the version check image, the
placeholder image data was still being seen, resulting in this failure:

    expected "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" to end with "/version-check-url"

Now we check the `data-src` attribute, which allows us to remove the
`:js` metadata.

This commit also removes a redundant test, which was just ensuring that
the selector we were already using in the other test is visible. If this
test were failing, the other one would always fail too, so it was
pointless.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55372
2018-12-14 14:02:51 -06:00
Robert Speicher 04a3e48c2a
Use class methods for VersionCheck
All of these methods are stateless, there was no point to have them as
instance methods.

Mostly this allows us to remove an `allow_any_instance_of` usage.
2018-12-14 13:56:03 -06:00
Evan Read b49734d048 Refactor landing page CE 2018-11-23 15:12:15 +00:00
Clement Ho 23a38eac61 Fix shortcut links on help page 2017-12-19 16:18:48 +00:00
Sean McGivern 10885edf22 Don't use Markdown cache for stubbed settings in specs
The ApplicationSetting model uses the CacheMarkdownField concern, which updates
the cached HTML when the field is updated in the database. However, in specs,
when we want to test conditions using ApplicationSetting, we stub it, because
this is accessed in different ways throughout the application.

This means that if a spec runs that caches one of the Markdown fields, and a
later spec uses `stub_application_setting` to set the raw value of that field,
the cached value was still the original one. We can work around this by ignoring
the Markdown cache in contexts where we're using `stub_application_setting`.

We could be smarter, and only do this on the Markdown fields of the model, but
this is probably fine.
2017-12-15 10:23:11 +00:00
Phil Hughes ceb0e6767b
Fix help page version image spec 2017-08-16 18:02:25 +01:00
Keifer Furzland 7e113b6824 Remove superfluous type defs in specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:52 +02:00
Robert Speicher e939bf7be1 Change gitlab_sign_in to sign_in where possible 2017-06-29 12:18:23 -04:00
Robert Speicher 45fb1f9542 Change `login_as` uses to `gitlab_sign_in` 2017-06-19 18:59:01 -05:00
Robin Bobbitt e09ddc62b3 Help landing page customizations 2017-06-14 11:40:21 -04:00
Rémy Coutable 448fc23e47
Let PhantomJS load local images
This change fix a memory leak due to a Webkit bug:
https://github.com/ariya/phantomjs/issues/12903

Also:

- Whitelist only localhost and 127.0.0.1 in Capybara + JS specs
- Blacklist all requests to media such as images, videos, PDFs, CSVs etc.
- Log all the requests made.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-12 19:00:03 +02:00
Luke "Jared" Bennett bb483230e6
added specs for version check image 2017-02-22 11:34:44 +00:00
Rémy Coutable 41dd01b127 Stop replacing `$your_email` with the user's email
The `$your_email` was removed from the SSH doc.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-09 17:32:05 +01:00
Rémy Coutable 633538151b
Fix URL rewritting in the Help section
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-01 16:40:48 +01:00
David Wagner de0a7378eb Check that both '/help' and '/help/' URLs have the same behaviour
The links in the help page may be modified. This new test checks that
URLs in this page are absolute and do not depend on the presence of a
trailing slash in the URL.

Signed-off-by: David Wagner <david@marvid.fr>
2016-11-25 19:11:14 +01:00
tiagonbotelho 519275c110 fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
Connor Shea 3358afa758
Update the help_page_path route to accept paths directly instead of using parameters. 2016-07-11 12:55:25 -06:00
Robert Speicher 3052e89420 Re-fix image rendering for help pages 2015-04-15 12:45:31 -04:00
Robert Speicher ef47ea3d39 Revert "Fix and improve help rendering"
This reverts commit d365004e68.
2015-04-15 12:24:44 -04:00
Sullivan SENECHAL d365004e68 Fix and improve help rendering 2015-04-03 11:56:50 +02:00
Jeroen van Baarsen 0c4a70a306 Updated rspec to rspec 3.x syntax
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-02-12 19:17:35 +01:00
Dmitriy Zaporozhets 61d07eabfc Fix tests 2015-02-04 13:54:19 -08:00
Carlos Ribeiro d76d897492 Change to single-quoted strings in help_pages_spec 2015-01-18 14:21:18 -02:00
Carlos Ribeiro 714ef62264 Fix the email variable substituation in ssh help page 2015-01-15 23:06:32 -02:00