style(insomnia-test): sort imports after switching to @package alias

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Bob QiuandClaude Sonnet 5.5 committed 2026-11-04 17:32:30 +08:00
1 parent 897a5b74fd
commit e81dce0d75
75 files changed
+75 -150

No files matched your search

@@ -1,11 +1,10 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ProjectType } from '@package/enums/project-types';
import { DEFAULT_TIMEOUT, EVENT_STREAM_SERVER, test } from '@package/misc/fixtures';
import { Collection } from '@package/models/collection';
import { EventStreamMethod } from '@package/models/event-stream-request';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify Event Stream Request Sends the API Key Header Until Authentication Is Set to None', async ({ user }) => {
const { eventStreamRequestFlow, workspaceFlow } = user.flowManager;
@@ -1,11 +1,10 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ProjectType } from '@package/enums/project-types';
import { DEFAULT_TIMEOUT, EVENT_STREAM_SERVER, test } from '@package/misc/fixtures';
import { Collection } from '@package/models/collection';
import { EventStreamMethod } from '@package/models/event-stream-request';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify Event Stream Request Sends the Basic Authentication Header Until Authentication Is Set to None', async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, EVENT_STREAM_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EventStreamMethod } from "@package/models/event-stream-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Event Stream Request Sends the Bearer Token Header Until Authentication Is Set to None", async ({
user,
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { RequestState } from "@package/enums/request-state";
import { DEFAULT_TIMEOUT, EVENT_STREAM_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EventStreamMethod } from "@package/models/event-stream-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const eventCount = 20;
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, EVENT_STREAM_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EventStreamMethod } from "@package/models/event-stream-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Linked Cookie Is Sent With Event Stream Request", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, EVENT_STREAM_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EventStreamMethod } from "@package/models/event-stream-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Duplicated Event Stream Request Keeps Url, Method and Headers", async ({
user,
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { RequestState } from "@package/enums/request-state";
import { EVENT_STREAM_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { EventStreamMethod } from "@package/models/event-stream-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const eventStreamUrl = "http://{{url}}/sse-events/5";
@@ -1,11 +1,10 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ProjectType } from '@package/enums/project-types';
import { DEFAULT_TIMEOUT, EVENT_STREAM_SERVER, OAUTH2_CLIENT_ID, OAUTH2_CLIENT_SECRET, OAUTH2_SERVER, test } from '@package/misc/fixtures';
import { Collection } from '@package/models/collection';
import { EventStreamMethod } from '@package/models/event-stream-request';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify Event Stream Request Sends the OAuth 2.0 Header Until Authentication Is Set to None', async ({ user }) => {
const { eventStreamRequestFlow, workspaceFlow } = user.flowManager;
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, EVENT_STREAM_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EventStreamMethod } from "@package/models/event-stream-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Enabling a Proxy Routes Event Stream Requests Through It", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, EVENT_STREAM_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EventStreamMethod } from "@package/models/event-stream-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Template Tag in Event Stream Request Header Is Resolved", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, EVENT_STREAM_SERVER_HTTPS, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EventStreamMethod } from "@package/models/event-stream-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Event Stream Request Over a TLS Connection", async ({ user }) => {
const { eventStreamRequestFlow, preferencesFlow, workspaceFlow } =
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { EVENT_STREAM_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { EventStreamMethod } from "@package/models/event-stream-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const variableName = "unlinked";
@@ -1,12 +1,11 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ContentType } from '@package/enums/content-type';
import { HttpMethod } from '@package/enums/http-method';
import { ProjectType } from '@package/enums/project-types';
import { HTTP_SERVER, test } from '@package/misc/fixtures';
import { Collection } from '@package/models/collection';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
const query = '{ characters { results { name } } }';
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,12 +1,11 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ContentType } from '@package/enums/content-type';
import { HttpMethod } from '@package/enums/http-method';
import { ProjectType } from '@package/enums/project-types';
import { HTTP_SERVER, test } from '@package/misc/fixtures';
import { Collection } from '@package/models/collection';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
const query = '{ characters { results { name } } }';
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const query = "{ characters { results { name } } }";
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,6 +1,4 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ContentType } from '@package/enums/content-type';
import { HttpMethod } from '@package/enums/http-method';
import { ProjectType } from '@package/enums/project-types';
@@ -8,6 +6,7 @@ import { RequestState } from '@package/enums/request-state';
import { DEFAULT_TIMEOUT, HTTP_SERVER, test } from '@package/misc/fixtures';
import { Collection } from '@package/models/collection';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
const query = '{ characters { results { name } } }';
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const query = "{ characters { results { name } } }";
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const query = "{ characters { results { name } } }";
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const query = "{ characters { results { name } } }";
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/graphql`;
const query = '{ characters(filter: {status: "Alive"}) { results { name } } }';
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
@@ -8,6 +6,7 @@ import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/graphql`;
const query = "query Ep($id: Int!) { episode(id: $id) { id name } }";
@@ -1,12 +1,11 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ContentType } from '@package/enums/content-type';
import { HttpMethod } from '@package/enums/http-method';
import { ProjectType } from '@package/enums/project-types';
import { HTTP_SERVER, OAUTH2_CLIENT_ID, OAUTH2_CLIENT_SECRET, OAUTH2_SERVER, test } from '@package/misc/fixtures';
import { Collection } from '@package/models/collection';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
const query = '{ characters { results { name } } }';
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/graphql`;
const query =
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const query = "{ characters { results { name } } }";
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const query = "{ characters { results { name } } }";
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/graphql`;
const query = "{ characters { results { name } } }";
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const query = "{ characters { results { name } } }";
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER_HTTPS, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const query = "{ characters { results { name } } }";
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
@@ -8,6 +6,7 @@ import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const query = "{ characters { results { name } } }";
const body = { mimeType: ContentType.JSON, text: JSON.stringify({ query }) };
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Environment Variable Interpolation Inside a gRPC Request Body", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Cancelling an In-Flight gRPC Server Streaming Call", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Cancelling an Open gRPC Client Streaming Call", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Committing a gRPC Client Streaming Call With No Messages Sent", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Custom gRPC Metadata Headers Are Sent to the Server", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Duplicating a gRPC Request With a Bidirectional Streaming Method Selected", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Create gRPC Request", async ({ user }) => {
const { environmentFlow, grpcRequestFlow, workspaceFlow } = user.flowManager;
@@ -1,13 +1,12 @@
import path from "node:path";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { certPath } from "@package/misc/certs";
import { GRPC_SERVER_MTLS, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Client Certificate Toggle Controls mTLS Enforcement For gRPC Request", async ({
user,
@@ -4,12 +4,11 @@ import * as net from "node:net";
import type { Duplex } from "node:stream";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const startRecordingProxy = async () => {
const targets: string[] = [];
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const unreachableGrpcUrl = "localhost:19999";
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Re-sending a Completed gRPC Unary Request Reflects the New Body", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify a gRPC Server-Side Business Error Status Is Surfaced", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Switching gRPC Methods Resets the Response Pane", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Template Tag in gRPC Request Body Is Resolved", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { GRPC_SERVER_TLS, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify gRPC Request Over a TLS Connection", async ({ user }) => {
const { grpcRequestFlow, preferencesFlow, workspaceFlow } = user.flowManager;
@@ -1,10 +1,9 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ProjectType } from '@package/enums/project-types';
import { DEFAULT_TIMEOUT, MCP_SERVER, test } from '@package/misc/fixtures';
import { McpClient } from '@package/models/mcp-client';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify MCP Client Sends the API Key Header Only When Authentication Is Configured', async ({ user }) => {
const { mcpClientFlow, workspaceFlow } = user.flowManager;
@@ -1,10 +1,9 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ProjectType } from '@package/enums/project-types';
import { DEFAULT_TIMEOUT, MCP_SERVER, test } from '@package/misc/fixtures';
import { McpClient } from '@package/models/mcp-client';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify MCP Client Sends the Basic Authentication Header Only When Authentication Is Configured', async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, MCP_SERVER, test } from "@package/misc/fixtures";
import { McpClient } from "@package/models/mcp-client";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify MCP Client Sends the Bearer Token Header Only When Authentication Is Configured", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, MCP_SERVER, test } from "@package/misc/fixtures";
import { McpClient } from "@package/models/mcp-client";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Disconnecting an MCP Client Closes the Connection and It Can Reconnect", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, MCP_SERVER, test } from "@package/misc/fixtures";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { McpClient } from "@package/models/mcp-client";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Environment Variable in MCP Client URL Is Resolved", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, MCP_SERVER, test } from "@package/misc/fixtures";
import { McpClient } from "@package/models/mcp-client";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const mcpUrl = MCP_SERVER;
const tool = "read_wiki_structure";
@@ -1,10 +1,9 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ProjectType } from '@package/enums/project-types';
import { DEFAULT_TIMEOUT, MCP_SERVER, OAUTH2_CLIENT_ID, OAUTH2_CLIENT_SECRET, OAUTH2_SERVER, test } from '@package/misc/fixtures';
import { McpClient } from '@package/models/mcp-client';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify MCP Client Sends the OAuth 2.0 Header Only When Authentication Is Configured', async ({ user }) => {
const { mcpClientFlow, workspaceFlow } = user.flowManager;
@@ -4,12 +4,11 @@ import * as net from "node:net";
import type { Duplex } from "node:stream";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { MCP_SERVER, test } from "@package/misc/fixtures";
import { McpClient } from "@package/models/mcp-client";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const startRecordingProxy = async () => {
const targets: string[] = [];
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { certPath } from "@package/misc/certs";
import { MCP_SERVER_HTTPS, test } from "@package/misc/fixtures";
import { McpClient } from "@package/models/mcp-client";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify MCP Client Over a TLS Connection", async ({ user }) => {
const { certificatesFlow, mcpClientFlow, workspaceFlow } = user.flowManager;
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test } from "@package/misc/fixtures";
import { McpClient } from "@package/models/mcp-client";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const unreachableUrl = "http://localhost:1/mcp";
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, SOCKET_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Disconnecting a Socket.IO Request Before the Server Replies Delivers No Echo", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { SOCKET_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const message = { eventName: "hello", payload: '"world"' };
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, SOCKET_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import type { SocketIORequest } from "@package/models/socket-io-request";
import { expect } from "@playwright/test";
const socketIoUrl = SOCKET_SERVER;
const message = { eventName: "hello", payload: '"world"' };
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, SOCKET_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Enabling an Unreachable Proxy Fails the Socket.IO Connection", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, SOCKET_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Template Tag in Socket.IO Message Payload Is Resolved", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { certPath } from "@package/misc/certs";
import { DEFAULT_TIMEOUT, SOCKET_SERVER_WSS, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Socket.IO Request Over a TLS Connection", async ({ user }) => {
const { certificatesFlow, socketIoRequestFlow, workspaceFlow } =
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, SOCKET_SERVER_AUTH_TOKEN, SOCKET_SERVER_PROTECTED, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Socket.IO Handshake Is Accepted With the Token and Rejected Without It", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Connecting to an Unreachable Socket.IO Server Fails", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ProjectType } from '@package/enums/project-types';
import { DEFAULT_TIMEOUT, test, WS_SERVER } from '@package/misc/fixtures';
import { Collection } from '@package/models/collection';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify WebSocket Connection Sends the API Key Header Until Authentication Is Set to None', async ({ user }) => {
const { webSocketRequestFlow, workspaceFlow } = user.flowManager;
@@ -1,10 +1,9 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ProjectType } from '@package/enums/project-types';
import { DEFAULT_TIMEOUT, test, WS_SERVER } from '@package/misc/fixtures';
import { Collection } from '@package/models/collection';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify WebSocket Connection Sends the Basic Authentication Header Until Authentication Is Set to None', async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test, WS_SERVER } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify WebSocket Connection Sends the Bearer Token Header Until Authentication Is Set to None", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test, WS_SERVER } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Linked Cookie Is Sent With WebSocket Connection", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test, WS_SERVER } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Disconnecting a WebSocket Request Before the Server Replies Delivers No Echo", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test, WS_SERVER } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Environment Variable in WebSocket Request URL Is Resolved", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test, WS_SERVER } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const webSocketUrl = WS_SERVER;
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test, WS_SERVER } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Import from URL Moves Query String Into Params and Preserves It on Connect", async ({
user,
@@ -4,12 +4,11 @@ import * as net from "node:net";
import type { Duplex } from "node:stream";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test, WS_SERVER } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const startRecordingProxy = async () => {
const targets: string[] = [];
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test, WS_SERVER } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const webSocketUrl = WS_SERVER;
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test, WS_SERVER } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const tag = "{% base64 'encode', 'normal', 'abc' %}";
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, test, WS_SERVER_WSS } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify WebSocket Request Over a TLS Connection", async ({ user }) => {
const { preferencesFlow, webSocketRequestFlow, workspaceFlow } =
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { test, WS_SERVER } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const variableName = "unlinked";