Skip to content

Commit

Permalink
Fix test based on reviewer feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjay-w committed Feb 26, 2025
1 parent b9caa09 commit 7ca3e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/controllers/graphql_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def setup
create_tag annotated: pm, annotator: u
create_dynamic_annotation annotated: pm, annotator: u, annotation_type: 'metadata'
end
query = "query GetById { project_media(ids: \"#{pm.id},#{p.id}\") { last_status, domain, pusher_channel, account { url }, dbid, tags(first: 1) { edges { node { tag } } }, project { title }, log(first: 1000) { edges { node { event_type, object_after, updated_at, created_at, meta, object_changes_json, user { name }, annotation { id, created_at, updated_at }, task { id }, tag { id } } } } } }"
query = "query GetById { project_media(ids: \"#{pm.id},#{p.id}\") { last_status, domain, pusher_channel, account { url }, dbid, tags(first: 1) { edges { node { tag } } }, project { title }, log(first: 1000) { edges { node { event_type, object_after, updated_at, created_at, meta, object_changes_json, annotation { id, created_at, updated_at }, task { id }, tag { id } } } } } }"
post :create, params: { query: query, team: 'team' }
assert_response :success
assert_not_equal 0, JSON.parse(@response.body)['data']['project_media']['log']['edges'].size
Expand Down

0 comments on commit 7ca3e79

Please sign in to comment.