fix: multiple organizer address bug (#11299)
* fix: multiple organizer address bug Signed-off-by: Udit Takkar <[email protected]> * fix: add inPerson condition Signed-off-by: Udit Takkar <[email protected]> * fix: change options Signed-off-by: Udit Takkar <[email protected]> * Send _type along with the response to be able to determine what input was it. We can use that later * Revert "Send _type along with the response to be able to determine what input was it. We can use that later" This reverts commit c75ba57ad14b07d629b218d6e3eaede93b99ebaa. * Update multiple organizer address test to verify the test fix * Add a test to ensure that sending label would correctly add that label as location --------- Signed-off-by: Udit Takkar <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
4 files changed
+143
-9
No files matched your search
@@ -142,17 +142,25 @@ test.describe("Event Types tests", () => {
|
||||
.first()
|
||||
.getAttribute("href");
|
||||
|
||||
/**
|
||||
* Verify first organizer address
|
||||
*/
|
||||
await page.goto(previewLink ?? "");
|
||||
|
||||
await selectFirstAvailableTimeSlotNextMonth(page);
|
||||
|
||||
for (const location of locationData) {
|
||||
await page.locator(`span:has-text("${location}")`).click();
|
||||
}
|
||||
|
||||
await page.locator(`span:has-text("${locationData[0]}")`).click();
|
||||
await bookTimeSlot(page);
|
||||
|
||||
await expect(page.locator("[data-testid=success-page]")).toBeVisible();
|
||||
await expect(page.locator(`[data-testid="where"]`)).toHaveText(locationData[0]);
|
||||
|
||||
/**
|
||||
* Verify second organizer address
|
||||
*/
|
||||
await page.goto(previewLink ?? "");
|
||||
await selectFirstAvailableTimeSlotNextMonth(page);
|
||||
await page.locator(`span:has-text("${locationData[1]}")`).click();
|
||||
await bookTimeSlot(page);
|
||||
await expect(page.locator("[data-testid=success-page]")).toBeVisible();
|
||||
await expect(page.locator(`[data-testid="where"]`)).toHaveText(locationData[1]);
|
||||
});
|
||||
|
||||
test.describe("Different Locations Tests", () => {
|
||||
|
||||
Reference in new issue
Block a user