Skip to content

Commit

Permalink
fix: e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
nourbalaha committed Oct 24, 2024
1 parent 7c54731 commit 3bb60f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/e2e/gql_workspace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"net/http"
"strings"
"testing"

"github.com/reearth/reearth-cms/server/internal/app"
Expand Down Expand Up @@ -270,7 +271,8 @@ func TestRemoveUserFromWorkspace(t *testing.T) {
assert.Nil(t, err)
assert.True(t, w.Members().HasUser(uId3))

query := fmt.Sprintf(`mutation { removeUserFromWorkspace(input: {workspaceId: "%s", userId: "%s"}){ workspace{ id } }}`, wId2, uId3)
uIds := accountdomain.UserIDList{uId2, uId3}
query := fmt.Sprintf(`mutation { removeMultipleMembersFromWorkspace(input: {workspaceId: "%s", userIds: ["%s"]}){ workspace{ id } }}`, wId2, strings.Join(uIds.Strings(), "\", \""))
request := GraphQLRequest{
Query: query,
}
Expand Down

0 comments on commit 3bb60f9

Please sign in to comment.