Refactor: Remove unnecessary code and comments in integration-side-bar.spec.ts (#5073)
fix: Remove unnecessary code and comments in integration-side-bar.spec.ts
This commit is contained in:
parent
d58530c358
commit
4a4806d638
1 changed files with 3 additions and 47 deletions
|
|
@ -20,7 +20,6 @@ test(
|
||||||
// });
|
// });
|
||||||
// });
|
// });
|
||||||
await page.goto("/");
|
await page.goto("/");
|
||||||
await page.waitForTimeout(1000);
|
|
||||||
let modalCount = 0;
|
let modalCount = 0;
|
||||||
try {
|
try {
|
||||||
const modalTitleElement = await page?.getByTestId("modal-title");
|
const modalTitleElement = await page?.getByTestId("modal-title");
|
||||||
|
|
@ -32,7 +31,9 @@ test(
|
||||||
}
|
}
|
||||||
while (modalCount === 0) {
|
while (modalCount === 0) {
|
||||||
await page.getByText("New Flow", { exact: true }).click();
|
await page.getByText("New Flow", { exact: true }).click();
|
||||||
await page.waitForTimeout(3000);
|
await page.waitForSelector('[data-testid="modal-title"]', {
|
||||||
|
timeout: 3000,
|
||||||
|
});
|
||||||
modalCount = await page.getByTestId("modal-title")?.count();
|
modalCount = await page.getByTestId("modal-title")?.count();
|
||||||
}
|
}
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
|
|
@ -44,48 +45,3 @@ test(
|
||||||
await expect(page.getByText("AssemblyAI")).toBeVisible();
|
await expect(page.getByText("AssemblyAI")).toBeVisible();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
test(
|
|
||||||
"user should NOT be able to see integrations in the sidebar if mvp_components is false",
|
|
||||||
{ tag: ["@release", "@api", "@workspace"] },
|
|
||||||
async ({ page }) => {
|
|
||||||
// await page.waitForTimeout(4000);
|
|
||||||
// await page.route("**/api/v1/config", (route) => {
|
|
||||||
// route.fulfill({
|
|
||||||
// status: 200,
|
|
||||||
// contentType: "application/json",
|
|
||||||
// body: JSON.stringify({
|
|
||||||
// feature_flags: {
|
|
||||||
// mvp_components: false,
|
|
||||||
// },
|
|
||||||
// }),
|
|
||||||
// headers: {
|
|
||||||
// "content-type": "application/json",
|
|
||||||
// ...route.request().headers(),
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
// await page.goto("/");
|
|
||||||
// await page.waitForTimeout(1000);
|
|
||||||
// let modalCount = 0;
|
|
||||||
// try {
|
|
||||||
// const modalTitleElement = await page?.getByTestId("modal-title");
|
|
||||||
// if (modalTitleElement) {
|
|
||||||
// modalCount = await modalTitleElement.count();
|
|
||||||
// }
|
|
||||||
// } catch (error) {
|
|
||||||
// modalCount = 0;
|
|
||||||
// }
|
|
||||||
// while (modalCount === 0) {
|
|
||||||
// await page.getByText("New Project", { exact: true }).click();
|
|
||||||
// await page.waitForTimeout(3000);
|
|
||||||
// modalCount = await page.getByTestId("modal-title")?.count();
|
|
||||||
// }
|
|
||||||
// await page.getByTestId("blank-flow").click();
|
|
||||||
// await page.waitForSelector('[data-testid="shad-sidebar"]', {
|
|
||||||
// timeout: 30000,
|
|
||||||
// });
|
|
||||||
// await expect(page.getByText("Integrations")).not.toBeVisible();
|
|
||||||
// await expect(page.getByText("Notion")).not.toBeVisible();
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue