Fixed test (#7572)

pull/7528/head^2
Alex van Andel 2023-03-07 22:15:11 +00:00 committed by GitHub
parent 2fa83bd512
commit 1b468b9ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 8 deletions

View File

@ -106,9 +106,18 @@ test.describe("Manage Booking Questions", () => {
const payload = (request.body as any).payload as any; const payload = (request.body as any).payload as any;
expect(payload.responses).toMatchObject({ expect(payload.responses).toMatchObject({
name: "Booker", email: {
email: "booker@example.com", label: "email_address",
how_are_you: "I am great!", value: "booker@example.com",
},
how_are_you: {
label: "How are you?",
value: "I am great!",
},
name: {
label: "your_name",
value: "Booker",
},
}); });
expect(payload.location).toBe("integrations:daily"); expect(payload.location).toBe("integrations:daily");
@ -119,7 +128,10 @@ test.describe("Manage Booking Questions", () => {
}); });
expect(payload.userFieldsResponses).toMatchObject({ expect(payload.userFieldsResponses).toMatchObject({
how_are_you: "I am great!", how_are_you: {
label: "How are you?",
value: "I am great!",
},
}); });
}); });
}); });
@ -233,9 +245,18 @@ async function runTestStepsCommonForTeamAndUserEventType(
const payload = (request.body as any).payload as any; const payload = (request.body as any).payload as any;
expect(payload.responses).toMatchObject({ expect(payload.responses).toMatchObject({
name: "Booker", email: {
email: "booker@example.com", label: "email_address",
how_are_you: "I am great!", value: "booker@example.com",
},
how_are_you: {
label: "How are you?",
value: "I am great!",
},
name: {
label: "your_name",
value: "Booker",
},
}); });
expect(payload.location).toBe("integrations:daily"); expect(payload.location).toBe("integrations:daily");
@ -246,7 +267,10 @@ async function runTestStepsCommonForTeamAndUserEventType(
}); });
expect(payload.userFieldsResponses).toMatchObject({ expect(payload.userFieldsResponses).toMatchObject({
how_are_you: "I am great!", how_are_you: {
label: "How are you?",
value: "I am great!",
},
}); });
}); });
}); });