From cd7205953627f5f00d90638b0daeb7c953380128 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 6 Oct 2019 15:23:58 +0200 Subject: [PATCH] Fix tests Signed-off-by: Thomas Citharel --- test/mobilizon_web/resolvers/event_resolver_test.exs | 6 +++--- test/mobilizon_web/resolvers/participant_resolver_test.exs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/mobilizon_web/resolvers/event_resolver_test.exs b/test/mobilizon_web/resolvers/event_resolver_test.exs index 848b4e9b0..637d5da8c 100644 --- a/test/mobilizon_web/resolvers/event_resolver_test.exs +++ b/test/mobilizon_web/resolvers/event_resolver_test.exs @@ -185,7 +185,7 @@ defmodule MobilizonWeb.Resolvers.EventResolverTest do query = """ { - person(preferredUsername: "#{actor.preferred_username}") { + person(id: "#{actor.id}") { id, participations(eventId: #{event_id}) { id, @@ -832,7 +832,7 @@ defmodule MobilizonWeb.Resolvers.EventResolverTest do query = """ { - person(preferredUsername: "#{actor.preferred_username}") { + person(id: "#{actor.id}") { id, participations(eventId: #{event.id}) { id, @@ -895,7 +895,7 @@ defmodule MobilizonWeb.Resolvers.EventResolverTest do query = """ { - person(preferredUsername: "#{actor.preferred_username}") { + person(id: "#{actor.id}") { id, participations(eventId: #{event.id}) { role, diff --git a/test/mobilizon_web/resolvers/participant_resolver_test.exs b/test/mobilizon_web/resolvers/participant_resolver_test.exs index c1d6d1d6d..c0e69ea2f 100644 --- a/test/mobilizon_web/resolvers/participant_resolver_test.exs +++ b/test/mobilizon_web/resolvers/participant_resolver_test.exs @@ -164,7 +164,7 @@ defmodule MobilizonWeb.Resolvers.ParticipantResolverTest do query = """ { - person(preferredUsername: "#{actor.preferred_username}") { + person(id: "#{actor.id}") { participations(eventId: "#{event.id}") { event { uuid, @@ -193,7 +193,7 @@ defmodule MobilizonWeb.Resolvers.ParticipantResolverTest do query = """ { - person(preferredUsername: "#{actor2.preferred_username}") { + person(id: "#{actor2.id}") { participations(eventId: "#{event.id}") { event { uuid,