Skip to content

Commit 428a54b

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
Fix organization invitation fixture semantics
Match production organization invitations even when workspace grants are attached, and remove an unused cookie-reset method from the E2E client.
1 parent 27878e0 commit 428a54b

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

apps/sim/e2e/fixtures/factories/invitations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function arrangePendingInvitation(input: {
2020
await db.transaction(async (tx) => {
2121
await tx.insert(invitation).values({
2222
id: invitationId,
23-
kind: 'workspace',
23+
kind: 'organization',
2424
email: input.email.trim().toLowerCase(),
2525
inviterId: input.inviterId,
2626
organizationId: input.organizationId,

apps/sim/e2e/fixtures/http-client.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ export class E2eHttpClient {
9898
return this.serializeCookies()
9999
}
100100

101-
clearCookies(): void {
102-
this.cookies.clear()
103-
}
104-
105101
private captureCookies(headers: Headers): void {
106102
const values =
107103
'getSetCookie' in headers && typeof headers.getSetCookie === 'function'

apps/sim/e2e/scripts/seed-world.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ async function assertTrustedWorldInvariants(world: E2EWorld): Promise<void> {
551551
.limit(1)
552552
if (
553553
!row ||
554-
row.kind !== 'workspace' ||
554+
row.kind !== 'organization' ||
555555
row.email !== definition.email ||
556556
row.inviterId !==
557557
required(

0 commit comments

Comments
 (0)