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:
anovazzi1 2024-12-09 10:04:37 -03:00 committed by GitHub
commit 4a4806d638
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,6 @@ test(
// });
// });
await page.goto("/");
await page.waitForTimeout(1000);
let modalCount = 0;
try {
const modalTitleElement = await page?.getByTestId("modal-title");
@ -32,7 +31,9 @@ test(
}
while (modalCount === 0) {
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();
}
await page.getByTestId("blank-flow").click();
@ -44,48 +45,3 @@ test(
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();
},
);