summaryrefslogtreecommitdiff
path: root/qa/qa
Commit message (Collapse)AuthorAgeFilesLines
* Backport QA code that belongs to CE from EE Geoqa/gb/backport-geo-integration-tests-commonsRémy Coutable2017-11-2210-4/+139
| | | | | | Merge branch 'qa/gb/add-geo-integration-tests' into 'master' See merge request gitlab-org/gitlab-ee!3294
* Implement a workaround for QA mattermost failuresqa/gb/tmp-fix-mattermost-failuresGrzegorz Bizon2017-11-201-0/+11
|
* Merge branch '18040-rubocop-line-break-after-guard-clause' into 'master'Rémy Coutable2017-11-201-0/+1
|\ | | | | | | | | | | | | Adds Rubocop rule for line break after guard clause Closes #18040 See merge request gitlab-org/gitlab-ce!15188
| * Adds Rubocop rule for line break after guard clauseJacopo2017-11-161-0/+1
| | | | | | | | Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
* | Fix QA test subject address by configuring capybaraqa/gb/fix-subject-address-in-factoriesGrzegorz Bizon2017-11-172-0/+3
| |
* | Raise the QA Capybara's default wait time from 4 to 10rs-qa-default-timeoutRobert Speicher2017-11-141-1/+1
|/ | | | | We were seeing intermittent failures on CI due to slow responses from certain endpoints.
* Fix QA page refresh address by using absolute URLsqa/gb/fix-page-refresh-addressGrzegorz Bizon2017-11-111-1/+1
| | | | | | This makes QA page refresh address to be absolute URL since we dropped `Capybara.app_host`, thus there is no support for relative URLs with `visit` now.
* Escape the password for Git callsRémy Coutable2017-11-101-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Change Page::Main::Entry to only visit an entrypoint and introduce ↵Rémy Coutable2017-11-108-20/+38
| | | | | | Page::Main::Login to handle actual log-in Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix Rubocop offense in QA scenario entrypointqa/gb/rspec-decouple-test-instance-addressGrzegorz Bizon2017-11-101-2/+0
|
* Refactor QA specs runners and improve specsGrzegorz Bizon2017-11-102-6/+12
|
* Configure RSpec from within RSpec runner classGrzegorz Bizon2017-11-103-13/+7
|
* Do not require to set Capybara app_host in RSpecGrzegorz Bizon2017-11-103-19/+14
|
* Fix bootable scenario arguments for OptionParserGrzegorz Bizon2017-11-101-5/+3
|
* Make it possible to define global scenario attributesGrzegorz Bizon2017-11-096-4/+74
|
* Fix test selection in Test::Integration::MattermostRichard Clamp2017-11-081-2/+2
| | | | | | | | | | | | | | In ce3b81b953f we changed Test::Integration::Mattermost#perform to consume a required positional parameter and pass on the rest of the arguments to the superclass. There was an error in implementation here and instead of splatting the files array to produce no additional arguments, we passed in the default case an empty array. This had the effect of calling rspec with no test files, rather than expected default of 'qa/specs/features` Here we correct that bug, and re-add the :core suite, as that was a poor deuction in the investagtion for 74d6b8a211.
* Fixup rspec tag misuseRichard Clamp2017-11-061-1/+1
| | | | | | | | | | | In !14818 we added the ability to specify the example groups that should run via the `-t` (tag) option to rspec. It was assumed that the inclusion filter generated `{:core => true, :mattermost => true}` would run examples tagged :core OR :mattermost, when instead it means :core AND :mattermost. Here in order to assure at least some tests run, we specify that the :mattermost tagged examples are the only ones we care about.
* Add tests for mattermost login via oauthRichard Clamp2017-10-305-0/+55
| | | | | | | | | | | | | | * Adds Runtime::Scenario as a place to record the properties of the Scenario we're interested in. * Adds a positional argument to Test::Integration::Mattermost to specify Runtime::Scenario.mattermost * Adds Page::Mattermost::{Main,Login} to model the mattermost pages we need to interact with. * Adds qa/features/mattermost/login_spec to perform a login via oauth and ensure we are logged in.
* Use the new buttons for creating groups and projects in QA testsbvl-fix-qa-group-pageBob Van Landuyt2017-10-232-8/+10
|
* Move tags out to containing featureRichard Clamp2017-10-165-12/+12
| | | | | | We can currently reduce the number of times we specify the tag of a given example group by moving them hoisting them up one level to the containing `feature`
* Cleanup a stray instance variableRichard Clamp2017-10-161-1/+0
| | | | | | This was added as part of the previous filtering via RSpec::Config. It should have been removed previously as part of moving the logic to specify the tags we wanted in Specs::Runner
* Explicitly tag :core and :mattermost scenariosRichard Clamp2017-10-166-15/+7
| | | | | | | | | | It's adding additional potentially confusing behaviour to derive test tagging from the file path, as it's not immediately apparent where that lives when considering the tests in isolation. Instead, just explicitly tag. * Remove the tagging of examples based on :file_path * Explicitly tags scenarios as :core, or :mattermost
* Move rspec cli handling logic into Specs::RunnerRichard Clamp2017-10-162-4/+15
| | | | | | | | Here we convert Specs::Runner#rspec to use keyword arguments[1] and pass named parameters rather than a pre-processed array of cli switches. This allows parameter to cli logic to live just in Specs::Runner. [1] https://robots.thoughtbot.com/ruby-2-keyword-arguments
* Update commentRichard Clamp2017-10-131-1/+1
| | | | Entrypoint is intended as a base class, so mention that in the comment.
* Simplify tag specificationRichard Clamp2017-10-134-13/+14
| | | | | | | | | | | | | As suggested by Grzegorz, we can be more declarative in our configuration of the tags the Entrypoint cares about Here we add a tags method to the entrypoint class, and use that to declare the tags an entrypoint is interested in (:core for the existing Test::Instance, :core and :mattermost for Test::Integration::Mattermost) We declare everything in specs/features that isn't in specs/features/mattermost, to have the tag :core, though that clean up better if we move the integration tests out of specs/features.
* Fixup company nameRichard Clamp2017-10-131-1/+1
|
* Add Test::Integration::MattermostRichard Clamp2017-10-135-15/+73
| | | | | | | | | | | | | | | | | | | | | Here we add a new entrypoint for the test suite, Test::Integration::Mattermost. It is to ensure that mattermost integration is working when enabling the embedded mattermost of gitlab-omnibus It runs all the example groups from Test::Instance, in addition to any groups tagged :mattermost * Extracts a common entrypoint class from Test::Instance as Scenario::Entrypoint, and uses that as the base for Test::Instance and Test::Integration::Mattermost * RSpec groups defined in `specs/features/mattermost/**_spec.rb` are tagged with :mattermost so they can be filtered out of the default run. * Tests tagged :mattermost are filtered out by default, and are un-filtered by Test::Integration::Mattermost
* QA group name, use hyphens rather than underscoresRichard Clamp2017-10-101-1/+1
| | | | | | | | | In doing some experimental testing of enabling the embedded mattermost we found that the currently generated QA namespace was problematic in that it used underscores when generating group names. This is invalid for a mattermost team name, underscores are illegal there. Here we change to use hyphens as they are legal in team names.
* Merge branch 'rs-qa-sandbox-group' into 'master'Grzegorz Bizon2017-10-097-14/+129
|\ | | | | | | | | Make use of a `gitlab-qa-sandbox` group if available See merge request gitlab-org/gitlab-ce!14682
| * Add QA::Scenario::Gitlab::Group::CreateRobert Speicher2017-10-096-59/+83
| |
| * Add QA::Page::Group::New to fill in the "Create group" formrs-qa-sandbox-groupRobert Speicher2017-10-062-13/+27
| |
| * Clean up QA::Page::Dashboard::Groups a bitRobert Speicher2017-10-061-11/+16
| |
| * Use autoloading instead of an explicit requireRobert Speicher2017-10-061-1/+0
| |
| * Implement Scenario::Gitlab::Sandbox::PrepareRobert Speicher2017-10-054-34/+69
| | | | | | | | | | This better separates the concerns of preparing the sandbox namespace from creating a (sub)group.
| * Make use of a `gitlab-qa-sandbox` group if availableRobert Speicher2017-10-043-7/+45
| | | | | | | | | | | | This will use a top-level group if it's available, or create one if it's not, then create our `qa_test_*` groups as subgroups of the sandbox group.
* | Use the default password from the GDK's root userRobert Speicher2017-10-051-1/+1
|/ | | | [ci skip]
* Fix GitLab QA: increase window size to ensure License link showssh-fix-gitlab-qa-ee-license-addStan Hu2017-10-032-4/+1
|
* Make the `QA:Page::Project::Show` driver less brittleRobert Speicher2017-10-031-2/+2
| | | | | This allows the test to continue even if the GitLab instance being tested, or the user being used, had SSH access configured.
* Fix Admin -> License selector for GitLab QA specsStan Hu2017-09-291-9/+4
| | | | Closes gitlab-qa#68
* Fix admin area selector in GitLab QAGrzegorz Bizon2017-09-191-1/+1
| | | | Fixes gitlab-org/gitlab-qa#66
* Fix GitLab QA for new navigation enabled by defaultfix/gb/qa/new-navigation-supportGrzegorz Bizon2017-09-081-10/+11
|
* Whitelist or fix additional `Gitlab/PublicSend` cop violationsrs-more-public-send-whitelistsRobert Speicher2017-08-141-1/+1
| | | | | An upcoming update to rubocop-gitlab-security added additional violations.
* Fix new project selectors in GitLab QAfix/gb/qa/fix-new-project-selectorsGrzegorz Bizon2017-07-214-11/+17
|
* Merge branch 'fix/gb/qa/configure-headless-chrome-screenshots' into 'master'Rémy Coutable2017-07-101-0/+4
|\ | | | | | | | | Configure headless chrome screenshots correctly See merge request !12746
| * Configure headless chrome screenshots correctlyfix/gb/qa/configure-headless-chrome-screenshotsGrzegorz Bizon2017-07-101-0/+4
| |
* | Merge branch 'backstage/gb/qa/increase-qa-screenshots-size' into 'master'Rémy Coutable2017-07-101-13/+1
|\ \ | | | | | | | | | | | | Increase GitLab QA screenshots size See merge request !12748
| * | Increase GitLab QA screenshots sizeGrzegorz Bizon2017-07-101-13/+1
| |/
* | Fix QA test scenario for creating a new projectGrzegorz Bizon2017-07-103-18/+8
|/
* Update chrome version and the binary path33538-update-ci-dockerfile-now-that-chrome-headless-no-longer-in-betaGrzegorz Bizon2017-06-221-1/+1
|
* Dockerize headless chrome browser for GitLab QAfeature/gb/qa/switch-to-headless-chrome-via-selenium-webdriverGrzegorz Bizon2017-05-251-1/+1
|