-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c6e8db
commit f456bcb
Showing
8 changed files
with
106 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,4 +167,4 @@ export const setup = async () => { | |
}; | ||
|
||
return world; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,21 +21,21 @@ export const cleanup = async () => { | |
await $admin.flow._destroyAll(); | ||
await $admin.team._destroyAll(); | ||
await $admin.user._destroyAll(); | ||
} | ||
}; | ||
|
||
export const setup = async () => { | ||
const teamId1 = await createTeam({ name: "E2E Team 1", slug: "e2e-team1" }); | ||
const teamId2 = await createTeam({ name: "E2E Team 2", slug: "e2e-team2" }); | ||
const user1 = { | ||
id: await createUser({ email: "[email protected]" }), | ||
email: "[email protected]", | ||
} | ||
}; | ||
const user2 = { | ||
id: await createUser({ email: "[email protected]" }), | ||
email: "[email protected]", | ||
} | ||
const team1Flow = await createFlow({ teamId: teamId1, slug: "team-1-flow" }) | ||
const team2Flow = await createFlow({ teamId: teamId2, slug: "team-2-flow" }) | ||
}; | ||
const team1Flow = await createFlow({ teamId: teamId1, slug: "team-1-flow" }); | ||
const team2Flow = await createFlow({ teamId: teamId2, slug: "team-2-flow" }); | ||
|
||
const world = { | ||
teamId1, | ||
|
@@ -47,7 +47,7 @@ export const setup = async () => { | |
}; | ||
|
||
return world; | ||
} | ||
}; | ||
|
||
export const performGQLQuery = async ({ | ||
world, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
import { gql } from "graphql-request"; | ||
|
||
export const INSERT_FLOW_QUERY = gql` | ||
mutation InsertFlowE2E ($teamId1: Int) { | ||
insert_flows(objects: {data: "{hello: 'world'}", slug: "e2e-test-flow", team_id: $teamId1 }) { | ||
mutation InsertFlowE2E($teamId1: Int) { | ||
insert_flows( | ||
objects: { | ||
data: "{hello: 'world'}" | ||
slug: "e2e-test-flow" | ||
team_id: $teamId1 | ||
} | ||
) { | ||
returning { | ||
id | ||
} | ||
} | ||
} | ||
` | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters