Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
89d2368c
Commit
89d2368c
authored
Oct 12, 2020
by
charlie ablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor tests to use nodes
parent
d63a0234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
spec/requests/api/graphql/project/issue/designs/notes_spec.rb
.../requests/api/graphql/project/issue/designs/notes_spec.rb
+6
-10
No files found.
spec/requests/api/graphql/project/issue/designs/notes_spec.rb
View file @
89d2368c
...
...
@@ -31,8 +31,8 @@ RSpec.describe 'Getting designs related to an issue' do
post_graphql
(
query
(
note_fields
),
current_user:
nil
)
designs_data
=
graphql_data
[
'project'
][
'issue'
][
'designs'
][
'designs'
]
design_data
=
designs_data
[
'
edges'
].
first
[
'node'
]
note_data
=
design_data
[
'notes'
][
'
edges'
].
first
[
'node'
]
design_data
=
designs_data
[
'
nodes'
].
first
note_data
=
design_data
[
'notes'
][
'
nodes'
].
first
expect
(
note_data
[
'id'
]).
to
eq
(
note
.
to_global_id
.
to_s
)
end
...
...
@@ -40,14 +40,10 @@ RSpec.describe 'Getting designs related to an issue' do
def
query
(
note_fields
=
all_graphql_fields_for
(
Note
))
design_node
=
<<~
NODE
designs {
edges {
node {
notes {
edges {
node {
#{
note_fields
}
}
}
nodes {
notes {
nodes {
#{
note_fields
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment