summaryrefslogtreecommitdiff
path: root/doc/development/testing_guide
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-13 03:06:31 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-13 03:06:31 +0000
commitd41c040fa25a8b4092843b84bf7d839591b6ee09 (patch)
tree5f7e94d2b6ac79483788eb867b3827af10f5bd82 /doc/development/testing_guide
parent4689bac80c8ab86e2b37abf217cc9b3404c5255f (diff)
downloadgitlab-ce-d41c040fa25a8b4092843b84bf7d839591b6ee09.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/testing_guide')
-rw-r--r--doc/development/testing_guide/end_to_end/best_practices.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/development/testing_guide/end_to_end/best_practices.md b/doc/development/testing_guide/end_to_end/best_practices.md
index e73c6a61fb1..e2a0d267ba1 100644
--- a/doc/development/testing_guide/end_to_end/best_practices.md
+++ b/doc/development/testing_guide/end_to_end/best_practices.md
@@ -85,3 +85,11 @@ after(:all) do
Page::Main::Menu.perform(&:sign_out)
end
```
+
+## Tag tests that require Administrator access
+
+We don't run tests that require Administrator access against our Production environments.
+
+When you add a new test that requires Administrator access, apply the RSpec metadata `:requires_admin` so that the test will not be included in the test suites executed against Production and other environments on which we don't want to run those tests.
+
+Note: When running tests locally or configuring a pipeline, the environment variable `QA_CAN_TEST_ADMIN_FEATURES` can be set to `false` to skip tests that have the `:requires_admin` tag.