fix: change order of eventtypes and routingforms (#17615)
* change order of eventtypes and routingforms * for workflows * for filtered workflows * update slug of first expected event-type * updated due to latest merges * test to ensure new eventtype added is first in the list * test for workflows --------- Co-authored-by: Anik Dhabal Babu <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
6 files changed
+39
-14
No files matched your search
@@ -64,7 +64,7 @@ test.describe("Embed Code Generator Tests", () => {
|
||||
await page.waitForTimeout(1000);
|
||||
await expectToContainValidPreviewIframe(page, {
|
||||
embedType: "inline",
|
||||
calLink: `${pro.username}/30-min`,
|
||||
calLink: `${pro.username}/multiple-duration`,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -102,7 +102,7 @@ test.describe("Embed Code Generator Tests", () => {
|
||||
await page.waitForTimeout(1000);
|
||||
await expectToContainValidPreviewIframe(page, {
|
||||
embedType: "floating-popup",
|
||||
calLink: `${pro.username}/30-min`,
|
||||
calLink: `${pro.username}/multiple-duration`,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -140,7 +140,7 @@ test.describe("Embed Code Generator Tests", () => {
|
||||
await page.waitForTimeout(1000);
|
||||
await expectToContainValidPreviewIframe(page, {
|
||||
embedType: "element-click",
|
||||
calLink: `${pro.username}/30-min`,
|
||||
calLink: `${pro.username}/multiple-duration`,
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -238,7 +238,7 @@ test.describe("Embed Code Generator Tests", () => {
|
||||
await page.waitForTimeout(1000);
|
||||
await expectToContainValidPreviewIframe(page, {
|
||||
embedType: "inline",
|
||||
calLink: `${user.username}/30-min`,
|
||||
calLink: `${user.username}/multiple-duration`,
|
||||
bookerUrl: getOrgFullOrigin(org?.slug ?? ""),
|
||||
});
|
||||
});
|
||||
@@ -279,7 +279,7 @@ test.describe("Embed Code Generator Tests", () => {
|
||||
await page.waitForTimeout(1000);
|
||||
await expectToContainValidPreviewIframe(page, {
|
||||
embedType: "floating-popup",
|
||||
calLink: `${user.username}/30-min`,
|
||||
calLink: `${user.username}/multiple-duration`,
|
||||
bookerUrl: getOrgFullOrigin(org?.slug ?? ""),
|
||||
});
|
||||
});
|
||||
@@ -319,7 +319,7 @@ test.describe("Embed Code Generator Tests", () => {
|
||||
await page.waitForTimeout(1000);
|
||||
await expectToContainValidPreviewIframe(page, {
|
||||
embedType: "element-click",
|
||||
calLink: `${user.username}/30-min`,
|
||||
calLink: `${user.username}/multiple-duration`,
|
||||
bookerUrl: getOrgFullOrigin(org?.slug ?? ""),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -61,6 +61,16 @@ testBothFutureAndLegacyRoutes.describe("Event Types tests", () => {
|
||||
await expect(page.locator(`text='${eventTitle}'`)).toBeVisible();
|
||||
});
|
||||
|
||||
test("new event type appears first in the list", async ({ page }) => {
|
||||
const nonce = randomString(3);
|
||||
const eventTitle = `hello ${nonce}`;
|
||||
await createNewEventType(page, { eventTitle });
|
||||
await page.goto("/event-types");
|
||||
const firstEvent = page.locator("[data-testid=event-types] > li a").first();
|
||||
const firstEventTitle = await firstEvent.getAttribute("title");
|
||||
await expect(firstEventTitle).toBe(eventTitle);
|
||||
});
|
||||
|
||||
test("enabling recurring event comes with default options", async ({ page }) => {
|
||||
const nonce = randomString(3);
|
||||
const eventTitle = `my recurring event ${nonce}`;
|
||||
|
||||
Reference in new issue
Block a user