summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-06-27 14:53:55 +0000
committerRémy Coutable <remy@rymai.me>2019-06-27 14:53:55 +0000
commit63188fa16fe921da93c605ed376a8ef00eb7edef (patch)
treed9700854f5e04f7db62ef378aaa426fefd86f10a
parentc30742e92c87e29d4d6d4f19beae6de2ba1d625d (diff)
parent4767dda56cccffe3686e3cc6e81ba9367f8c3f66 (diff)
downloadgitlab-ce-63188fa16fe921da93c605ed376a8ef00eb7edef.tar.gz
Merge branch 'qa/updates-on-epics-management-e2e-tests' into 'master'
Backport of EE MR See merge request gitlab-org/gitlab-ce!30051
-rw-r--r--doc/development/testing_guide/end_to_end/quick_start_guide.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/development/testing_guide/end_to_end/quick_start_guide.md b/doc/development/testing_guide/end_to_end/quick_start_guide.md
index f96c85be1ba..670d2b31a29 100644
--- a/doc/development/testing_guide/end_to_end/quick_start_guide.md
+++ b/doc/development/testing_guide/end_to_end/quick_start_guide.md
@@ -242,7 +242,7 @@ module QA
issue = Resource::Issue.fabricate_via_api! do |issue|
issue.title = 'Issue to test the scoped labels'
- issue.labels = @initial_label
+ issue.labels = [@initial_label]
end
[@new_label_same_scope, @new_label_different_scope].each do |label|
@@ -365,6 +365,14 @@ Add the following `attribute :id` and `attribute :labels` right above the [`attr
> We add the attributes above the existing attribute to keep them alphabetically organized.
+Then, let's initialize an instance variable for labels to allow an empty array as default value when such information is not passed during the resource fabricatioin, since this optional. [Between the attributes and the `fabricate!` method](https://gitlab.com/gitlab-org/gitlab-ee/blob/1a1f1408728f19b2aa15887cd20bddab7e70c8bd/qa/qa/resource/issue.rb#L18), add the following:
+
+```ruby
+def initialize
+ @labels = []
+end
+```
+
Next, add the following code right below the [`fabricate!`](https://gitlab.com/gitlab-org/gitlab-ee/blob/d3584e80b4236acdf393d815d604801573af72cc/qa/qa/resource/issue.rb#L27) method.
```ruby
@@ -378,7 +386,7 @@ end
def api_post_body
{
- labels: [labels],
+ labels: labels,
title: title
}
end