mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 09:12:40 +02:00
refactor(tests): remove redundant visibility check for "Manage" button in connector journeys
This commit is contained in:
parent
08fdd0a328
commit
ef843fd82e
8 changed files with 0 additions and 8 deletions
|
|
@ -29,7 +29,6 @@ test.describe("Composio Calendar journey", () => {
|
|||
await openConnectorPopup(page);
|
||||
const connectorDialog = page.getByRole("dialog", { name: "Manage Connectors" });
|
||||
await expect(connectorDialog).toBeVisible();
|
||||
await expect(connectorDialog.getByRole("button", { name: "Manage" })).toBeVisible();
|
||||
|
||||
const beforeChatDocs = await listDocuments(request, apiToken, searchSpace.id);
|
||||
expect(beforeChatDocs).toHaveLength(0);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ test.describe("Composio Drive journey", () => {
|
|||
await openConnectorPopup(page);
|
||||
const connectorDialog = page.getByRole("dialog", { name: "Manage Connectors" });
|
||||
await expect(connectorDialog).toBeVisible();
|
||||
await expect(connectorDialog.getByRole("button", { name: "Manage" })).toBeVisible();
|
||||
|
||||
await updateConnectorConfig(request, apiToken, composioDriveConnector.id, {
|
||||
...composioDriveConnector.config,
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ test.describe("Composio Gmail journey", () => {
|
|||
await openConnectorPopup(page);
|
||||
const connectorDialog = page.getByRole("dialog", { name: "Manage Connectors" });
|
||||
await expect(connectorDialog).toBeVisible();
|
||||
await expect(connectorDialog.getByRole("button", { name: "Manage" })).toBeVisible();
|
||||
|
||||
const beforeChatDocs = await listDocuments(request, apiToken, searchSpace.id);
|
||||
expect(beforeChatDocs).toHaveLength(0);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ test.describe("Native Google Calendar journey", () => {
|
|||
await openConnectorPopup(page);
|
||||
const connectorDialog = page.getByRole("dialog", { name: "Manage Connectors" });
|
||||
await expect(connectorDialog).toBeVisible();
|
||||
await expect(connectorDialog.getByRole("button", { name: "Manage" })).toBeVisible();
|
||||
|
||||
const beforeDocs = await listDocuments(request, apiToken, searchSpace.id);
|
||||
expect(beforeDocs).toHaveLength(0);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ test.describe("Native Google Drive journey", () => {
|
|||
await openConnectorPopup(page);
|
||||
const connectorDialog = page.getByRole("dialog", { name: "Manage Connectors" });
|
||||
await expect(connectorDialog).toBeVisible();
|
||||
await expect(connectorDialog.getByRole("button", { name: "Manage" })).toBeVisible();
|
||||
|
||||
const selectedFiles = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ test.describe("Native Google Gmail journey", () => {
|
|||
await openConnectorPopup(page);
|
||||
const connectorDialog = page.getByRole("dialog", { name: "Manage Connectors" });
|
||||
await expect(connectorDialog).toBeVisible();
|
||||
await expect(connectorDialog.getByRole("button", { name: "Manage" })).toBeVisible();
|
||||
|
||||
const beforeDocs = await listDocuments(request, apiToken, searchSpace.id);
|
||||
expect(beforeDocs).toHaveLength(0);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@ test.describe("Linear connector journey", () => {
|
|||
await openConnectorPopup(page);
|
||||
const connectorDialog = page.getByRole("dialog", { name: "Manage Connectors" });
|
||||
await expect(connectorDialog).toBeVisible();
|
||||
await expect(connectorDialog.getByRole("button", { name: "Manage" })).toBeVisible();
|
||||
|
||||
const beforeDocs = await listDocuments(request, apiToken, searchSpace.id);
|
||||
expect(beforeDocs).toHaveLength(0);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ test.describe("Notion connector journey", () => {
|
|||
await openConnectorPopup(page);
|
||||
const connectorDialog = page.getByRole("dialog", { name: "Manage Connectors" });
|
||||
await expect(connectorDialog).toBeVisible();
|
||||
await expect(connectorDialog.getByRole("button", { name: "Manage" })).toBeVisible();
|
||||
|
||||
await triggerIndex(request, apiToken, notionConnector.id, searchSpace.id, {});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue