From e81dce0d75019c94fc6b06e109bb4296d1018ff1 Mon Sep 17 00:00:00 2001 From: Bob Qiu Date: Mon, 2 Nov 2026 18:22:06 +0800 Subject: [PATCH] style(insomnia-test): sort imports after switching to @package alias Co-Authored-By: Claude Sonnet 5.5 --- .../tests/event-stream-request/api-key-authentication.spec.ts | 3 +-- .../tests/event-stream-request/basic-authentication.spec.ts | 3 +-- .../tests/event-stream-request/bearer-authentication.spec.ts | 3 +-- .../tests/event-stream-request/cancel-open-stream.spec.ts | 3 +-- .../event-stream-request/cookie-sent-with-request.spec.ts | 3 +-- .../tests/event-stream-request/duplicate-request.spec.ts | 3 +-- .../tests/event-stream-request/happy-path.spec.ts | 3 +-- .../oauth2-client-credentials-authentication.spec.ts | 3 +-- .../tests/event-stream-request/proxy-settings.spec.ts | 3 +-- .../tests/event-stream-request/template-tag-in-header.spec.ts | 3 +-- .../tests/event-stream-request/tls-connection.spec.ts | 3 +-- .../unresolved-environment-variable.spec.ts | 3 +-- .../tests/graphql-request/api-key-authentication.spec.ts | 3 +-- .../tests/graphql-request/basic-authentication.spec.ts | 3 +-- .../tests/graphql-request/bearer-authentication.spec.ts | 3 +-- .../tests/graphql-request/cancel-in-flight-request.spec.ts | 3 +-- .../tests/graphql-request/cookie-sent-with-request.spec.ts | 3 +-- .../tests/graphql-request/duplicate-request.spec.ts | 3 +-- .../insomnia-test/tests/graphql-request/generate-code.spec.ts | 3 +-- .../insomnia-test/tests/graphql-request/happy-path.spec.ts | 3 +-- .../tests/graphql-request/numeric-environment-variable.spec.ts | 3 +-- .../oauth2-client-credentials-authentication.spec.ts | 3 +-- .../tests/graphql-request/object-variables.spec.ts | 3 +-- .../tests/graphql-request/pre-request-script-header.spec.ts | 3 +-- .../insomnia-test/tests/graphql-request/proxy-settings.spec.ts | 3 +-- .../tests/graphql-request/schema-documentation.spec.ts | 3 +-- .../tests/graphql-request/template-tag-in-header.spec.ts | 3 +-- .../insomnia-test/tests/graphql-request/tls-connection.spec.ts | 3 +-- .../graphql-request/unlinked-environment-variable.spec.ts | 3 +-- .../body-environment-variable-interpolation.spec.ts | 3 +-- .../cancel-in-flight-server-streaming-call.spec.ts | 3 +-- .../grpc-request/cancel-open-client-streaming-call.spec.ts | 3 +-- .../tests/grpc-request/commit-empty-stream.spec.ts | 3 +-- .../tests/grpc-request/custom-metadata-headers.spec.ts | 3 +-- .../duplicate-grpc-request-with-streaming-method.spec.ts | 3 +-- packages/insomnia-test/tests/grpc-request/happy-path.spec.ts | 3 +-- .../tests/grpc-request/mtls-client-certificate.spec.ts | 3 +-- .../insomnia-test/tests/grpc-request/proxy-settings.spec.ts | 3 +-- .../reflection-fails-on-unreachable-server.spec.ts | 3 +-- .../tests/grpc-request/resend-after-completion.spec.ts | 3 +-- .../grpc-request/server-returns-business-error-status.spec.ts | 3 +-- .../tests/grpc-request/switch-method-resets-response.spec.ts | 3 +-- .../tests/grpc-request/template-tag-in-body.spec.ts | 3 +-- .../insomnia-test/tests/grpc-request/tls-connection.spec.ts | 3 +-- .../tests/mcp-client/api-key-authentication.spec.ts | 3 +-- .../tests/mcp-client/basic-authentication.spec.ts | 3 +-- .../tests/mcp-client/bearer-authentication.spec.ts | 3 +-- .../tests/mcp-client/disconnect-and-reconnect.spec.ts | 3 +-- .../tests/mcp-client/environment-variable-in-url.spec.ts | 3 +-- packages/insomnia-test/tests/mcp-client/happy-path.spec.ts | 3 +-- .../oauth2-client-credentials-authentication.spec.ts | 3 +-- packages/insomnia-test/tests/mcp-client/proxy-settings.spec.ts | 3 +-- packages/insomnia-test/tests/mcp-client/tls-connection.spec.ts | 3 +-- .../insomnia-test/tests/mcp-client/unreachable-server.spec.ts | 3 +-- .../socket-io-request/disconnect-before-server-reply.spec.ts | 3 +-- .../tests/socket-io-request/duplicate-request.spec.ts | 3 +-- .../insomnia-test/tests/socket-io-request/happy-path.spec.ts | 3 +-- .../tests/socket-io-request/proxy-settings.spec.ts | 3 +-- .../tests/socket-io-request/template-tag-in-message.spec.ts | 3 +-- .../tests/socket-io-request/tls-connection.spec.ts | 3 +-- .../tests/socket-io-request/token-authentication.spec.ts | 3 +-- .../tests/socket-io-request/unreachable-server.spec.ts | 3 +-- .../tests/web-socket-request/api-key-authentication.spec.ts | 3 +-- .../tests/web-socket-request/basic-authentication.spec.ts | 3 +-- .../tests/web-socket-request/bearer-authentication.spec.ts | 3 +-- .../web-socket-request/cookie-sent-with-connection.spec.ts | 3 +-- .../web-socket-request/disconnect-before-server-reply.spec.ts | 3 +-- .../web-socket-request/environment-variable-in-url.spec.ts | 3 +-- .../insomnia-test/tests/web-socket-request/happy-path.spec.ts | 3 +-- .../import-params-from-url-websocket.spec.ts | 3 +-- .../tests/web-socket-request/proxy-settings.spec.ts | 3 +-- .../web-socket-request/send-multiple-message-types.spec.ts | 3 +-- .../template-tag-in-header-and-message.spec.ts | 3 +-- .../tests/web-socket-request/tls-connection.spec.ts | 3 +-- .../web-socket-request/unresolved-environment-variable.spec.ts | 3 +-- 75 files changed, 75 insertions(+), 150 deletions(-) diff --git a/packages/insomnia-test/tests/event-stream-request/api-key-authentication.spec.ts b/packages/insomnia-test/tests/event-stream-request/api-key-authentication.spec.ts index 260b56e89c..f0d4fe6426 100644 --- a/packages/insomnia-test/tests/event-stream-request/api-key-authentication.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/api-key-authentication.spec.ts @@ -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; diff --git a/packages/insomnia-test/tests/event-stream-request/basic-authentication.spec.ts b/packages/insomnia-test/tests/event-stream-request/basic-authentication.spec.ts index 50e24193ed..c4ba8d8f6f 100644 --- a/packages/insomnia-test/tests/event-stream-request/basic-authentication.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/basic-authentication.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/event-stream-request/bearer-authentication.spec.ts b/packages/insomnia-test/tests/event-stream-request/bearer-authentication.spec.ts index 83fd7fe25a..e33ac32667 100644 --- a/packages/insomnia-test/tests/event-stream-request/bearer-authentication.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/bearer-authentication.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/event-stream-request/cancel-open-stream.spec.ts b/packages/insomnia-test/tests/event-stream-request/cancel-open-stream.spec.ts index e8efc89142..3c7f585ebf 100644 --- a/packages/insomnia-test/tests/event-stream-request/cancel-open-stream.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/cancel-open-stream.spec.ts @@ -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; diff --git a/packages/insomnia-test/tests/event-stream-request/cookie-sent-with-request.spec.ts b/packages/insomnia-test/tests/event-stream-request/cookie-sent-with-request.spec.ts index 1b8217f396..31d2ef307f 100644 --- a/packages/insomnia-test/tests/event-stream-request/cookie-sent-with-request.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/cookie-sent-with-request.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/event-stream-request/duplicate-request.spec.ts b/packages/insomnia-test/tests/event-stream-request/duplicate-request.spec.ts index d3b6585292..794ce213de 100644 --- a/packages/insomnia-test/tests/event-stream-request/duplicate-request.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/duplicate-request.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/event-stream-request/happy-path.spec.ts b/packages/insomnia-test/tests/event-stream-request/happy-path.spec.ts index 31ec099c75..8e8f1d5af4 100644 --- a/packages/insomnia-test/tests/event-stream-request/happy-path.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/happy-path.spec.ts @@ -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"; diff --git a/packages/insomnia-test/tests/event-stream-request/oauth2-client-credentials-authentication.spec.ts b/packages/insomnia-test/tests/event-stream-request/oauth2-client-credentials-authentication.spec.ts index 874de3bf0f..c7a7d174d2 100644 --- a/packages/insomnia-test/tests/event-stream-request/oauth2-client-credentials-authentication.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/oauth2-client-credentials-authentication.spec.ts @@ -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; diff --git a/packages/insomnia-test/tests/event-stream-request/proxy-settings.spec.ts b/packages/insomnia-test/tests/event-stream-request/proxy-settings.spec.ts index 6f1c538000..a4f95d49b7 100644 --- a/packages/insomnia-test/tests/event-stream-request/proxy-settings.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/proxy-settings.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/event-stream-request/template-tag-in-header.spec.ts b/packages/insomnia-test/tests/event-stream-request/template-tag-in-header.spec.ts index a47ca8d20d..37ded9d7cf 100644 --- a/packages/insomnia-test/tests/event-stream-request/template-tag-in-header.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/template-tag-in-header.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/event-stream-request/tls-connection.spec.ts b/packages/insomnia-test/tests/event-stream-request/tls-connection.spec.ts index b628c534dc..e8f1f86b14 100644 --- a/packages/insomnia-test/tests/event-stream-request/tls-connection.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/tls-connection.spec.ts @@ -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 } = diff --git a/packages/insomnia-test/tests/event-stream-request/unresolved-environment-variable.spec.ts b/packages/insomnia-test/tests/event-stream-request/unresolved-environment-variable.spec.ts index f39c650899..3034d0fb44 100644 --- a/packages/insomnia-test/tests/event-stream-request/unresolved-environment-variable.spec.ts +++ b/packages/insomnia-test/tests/event-stream-request/unresolved-environment-variable.spec.ts @@ -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"; diff --git a/packages/insomnia-test/tests/graphql-request/api-key-authentication.spec.ts b/packages/insomnia-test/tests/graphql-request/api-key-authentication.spec.ts index 2a27b27bd4..8224dd9e7c 100644 --- a/packages/insomnia-test/tests/graphql-request/api-key-authentication.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/api-key-authentication.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/basic-authentication.spec.ts b/packages/insomnia-test/tests/graphql-request/basic-authentication.spec.ts index 4a69d0984d..583d557543 100644 --- a/packages/insomnia-test/tests/graphql-request/basic-authentication.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/basic-authentication.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/bearer-authentication.spec.ts b/packages/insomnia-test/tests/graphql-request/bearer-authentication.spec.ts index 7477515b00..3e6c5f62df 100644 --- a/packages/insomnia-test/tests/graphql-request/bearer-authentication.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/bearer-authentication.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/cancel-in-flight-request.spec.ts b/packages/insomnia-test/tests/graphql-request/cancel-in-flight-request.spec.ts index 2a5487e027..05e0b803b7 100644 --- a/packages/insomnia-test/tests/graphql-request/cancel-in-flight-request.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/cancel-in-flight-request.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/cookie-sent-with-request.spec.ts b/packages/insomnia-test/tests/graphql-request/cookie-sent-with-request.spec.ts index 55caddd2b2..ff4a768461 100644 --- a/packages/insomnia-test/tests/graphql-request/cookie-sent-with-request.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/cookie-sent-with-request.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/duplicate-request.spec.ts b/packages/insomnia-test/tests/graphql-request/duplicate-request.spec.ts index 557d69d484..663adf41aa 100644 --- a/packages/insomnia-test/tests/graphql-request/duplicate-request.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/duplicate-request.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/generate-code.spec.ts b/packages/insomnia-test/tests/graphql-request/generate-code.spec.ts index b1d7b6de2f..3d928be1c2 100644 --- a/packages/insomnia-test/tests/graphql-request/generate-code.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/generate-code.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/happy-path.spec.ts b/packages/insomnia-test/tests/graphql-request/happy-path.spec.ts index 96a54e6922..8bf8418fca 100644 --- a/packages/insomnia-test/tests/graphql-request/happy-path.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/happy-path.spec.ts @@ -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 } } }'; diff --git a/packages/insomnia-test/tests/graphql-request/numeric-environment-variable.spec.ts b/packages/insomnia-test/tests/graphql-request/numeric-environment-variable.spec.ts index ee45fab78d..13e7a8866a 100644 --- a/packages/insomnia-test/tests/graphql-request/numeric-environment-variable.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/numeric-environment-variable.spec.ts @@ -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 } }"; diff --git a/packages/insomnia-test/tests/graphql-request/oauth2-client-credentials-authentication.spec.ts b/packages/insomnia-test/tests/graphql-request/oauth2-client-credentials-authentication.spec.ts index 49d99c8651..84ed569dbf 100644 --- a/packages/insomnia-test/tests/graphql-request/oauth2-client-credentials-authentication.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/oauth2-client-credentials-authentication.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/object-variables.spec.ts b/packages/insomnia-test/tests/graphql-request/object-variables.spec.ts index 33cce28419..c0f0ff972e 100644 --- a/packages/insomnia-test/tests/graphql-request/object-variables.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/object-variables.spec.ts @@ -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 = diff --git a/packages/insomnia-test/tests/graphql-request/pre-request-script-header.spec.ts b/packages/insomnia-test/tests/graphql-request/pre-request-script-header.spec.ts index 00ac93f8bb..975af41845 100644 --- a/packages/insomnia-test/tests/graphql-request/pre-request-script-header.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/pre-request-script-header.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/proxy-settings.spec.ts b/packages/insomnia-test/tests/graphql-request/proxy-settings.spec.ts index 2d353dd86b..32755b4696 100644 --- a/packages/insomnia-test/tests/graphql-request/proxy-settings.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/proxy-settings.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/schema-documentation.spec.ts b/packages/insomnia-test/tests/graphql-request/schema-documentation.spec.ts index 201012e68e..4e95816a07 100644 --- a/packages/insomnia-test/tests/graphql-request/schema-documentation.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/schema-documentation.spec.ts @@ -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 } } }"; diff --git a/packages/insomnia-test/tests/graphql-request/template-tag-in-header.spec.ts b/packages/insomnia-test/tests/graphql-request/template-tag-in-header.spec.ts index 54b42a555f..8fae1513e2 100644 --- a/packages/insomnia-test/tests/graphql-request/template-tag-in-header.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/template-tag-in-header.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/tls-connection.spec.ts b/packages/insomnia-test/tests/graphql-request/tls-connection.spec.ts index 71b5431a84..4a981e93ba 100644 --- a/packages/insomnia-test/tests/graphql-request/tls-connection.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/tls-connection.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/graphql-request/unlinked-environment-variable.spec.ts b/packages/insomnia-test/tests/graphql-request/unlinked-environment-variable.spec.ts index 1b1ba2c3f8..218e11da58 100644 --- a/packages/insomnia-test/tests/graphql-request/unlinked-environment-variable.spec.ts +++ b/packages/insomnia-test/tests/graphql-request/unlinked-environment-variable.spec.ts @@ -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 }) }; diff --git a/packages/insomnia-test/tests/grpc-request/body-environment-variable-interpolation.spec.ts b/packages/insomnia-test/tests/grpc-request/body-environment-variable-interpolation.spec.ts index 66ab84cb43..417239cf03 100644 --- a/packages/insomnia-test/tests/grpc-request/body-environment-variable-interpolation.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/body-environment-variable-interpolation.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/grpc-request/cancel-in-flight-server-streaming-call.spec.ts b/packages/insomnia-test/tests/grpc-request/cancel-in-flight-server-streaming-call.spec.ts index 708ca142a7..b6f18f31e9 100644 --- a/packages/insomnia-test/tests/grpc-request/cancel-in-flight-server-streaming-call.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/cancel-in-flight-server-streaming-call.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/grpc-request/cancel-open-client-streaming-call.spec.ts b/packages/insomnia-test/tests/grpc-request/cancel-open-client-streaming-call.spec.ts index 4b377ecef9..a8ffd7bf57 100644 --- a/packages/insomnia-test/tests/grpc-request/cancel-open-client-streaming-call.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/cancel-open-client-streaming-call.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/grpc-request/commit-empty-stream.spec.ts b/packages/insomnia-test/tests/grpc-request/commit-empty-stream.spec.ts index 2c7edd31e1..12748a12df 100644 --- a/packages/insomnia-test/tests/grpc-request/commit-empty-stream.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/commit-empty-stream.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/grpc-request/custom-metadata-headers.spec.ts b/packages/insomnia-test/tests/grpc-request/custom-metadata-headers.spec.ts index 43eb3dc53c..4cf0ba9d17 100644 --- a/packages/insomnia-test/tests/grpc-request/custom-metadata-headers.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/custom-metadata-headers.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/grpc-request/duplicate-grpc-request-with-streaming-method.spec.ts b/packages/insomnia-test/tests/grpc-request/duplicate-grpc-request-with-streaming-method.spec.ts index 668db97746..545b92013f 100644 --- a/packages/insomnia-test/tests/grpc-request/duplicate-grpc-request-with-streaming-method.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/duplicate-grpc-request-with-streaming-method.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/grpc-request/happy-path.spec.ts b/packages/insomnia-test/tests/grpc-request/happy-path.spec.ts index 5b9116fcdf..1b01c42d5c 100644 --- a/packages/insomnia-test/tests/grpc-request/happy-path.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/happy-path.spec.ts @@ -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; diff --git a/packages/insomnia-test/tests/grpc-request/mtls-client-certificate.spec.ts b/packages/insomnia-test/tests/grpc-request/mtls-client-certificate.spec.ts index 398cb4eab2..98c0bdc75e 100644 --- a/packages/insomnia-test/tests/grpc-request/mtls-client-certificate.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/mtls-client-certificate.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/grpc-request/proxy-settings.spec.ts b/packages/insomnia-test/tests/grpc-request/proxy-settings.spec.ts index 77354b54fd..aeff716209 100644 --- a/packages/insomnia-test/tests/grpc-request/proxy-settings.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/proxy-settings.spec.ts @@ -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[] = []; diff --git a/packages/insomnia-test/tests/grpc-request/reflection-fails-on-unreachable-server.spec.ts b/packages/insomnia-test/tests/grpc-request/reflection-fails-on-unreachable-server.spec.ts index 78d21fcf81..56ce9010e5 100644 --- a/packages/insomnia-test/tests/grpc-request/reflection-fails-on-unreachable-server.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/reflection-fails-on-unreachable-server.spec.ts @@ -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"; diff --git a/packages/insomnia-test/tests/grpc-request/resend-after-completion.spec.ts b/packages/insomnia-test/tests/grpc-request/resend-after-completion.spec.ts index 58298d7304..2d6d9df192 100644 --- a/packages/insomnia-test/tests/grpc-request/resend-after-completion.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/resend-after-completion.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/grpc-request/server-returns-business-error-status.spec.ts b/packages/insomnia-test/tests/grpc-request/server-returns-business-error-status.spec.ts index 314f134ab7..6a1da8fead 100644 --- a/packages/insomnia-test/tests/grpc-request/server-returns-business-error-status.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/server-returns-business-error-status.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/grpc-request/switch-method-resets-response.spec.ts b/packages/insomnia-test/tests/grpc-request/switch-method-resets-response.spec.ts index e8e21e2753..2f0106d8c4 100644 --- a/packages/insomnia-test/tests/grpc-request/switch-method-resets-response.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/switch-method-resets-response.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/grpc-request/template-tag-in-body.spec.ts b/packages/insomnia-test/tests/grpc-request/template-tag-in-body.spec.ts index c363498831..e85716b4bf 100644 --- a/packages/insomnia-test/tests/grpc-request/template-tag-in-body.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/template-tag-in-body.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/grpc-request/tls-connection.spec.ts b/packages/insomnia-test/tests/grpc-request/tls-connection.spec.ts index 42dc588b4e..5dc6306d53 100644 --- a/packages/insomnia-test/tests/grpc-request/tls-connection.spec.ts +++ b/packages/insomnia-test/tests/grpc-request/tls-connection.spec.ts @@ -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; diff --git a/packages/insomnia-test/tests/mcp-client/api-key-authentication.spec.ts b/packages/insomnia-test/tests/mcp-client/api-key-authentication.spec.ts index 6f92c279fc..3d55d32787 100644 --- a/packages/insomnia-test/tests/mcp-client/api-key-authentication.spec.ts +++ b/packages/insomnia-test/tests/mcp-client/api-key-authentication.spec.ts @@ -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; diff --git a/packages/insomnia-test/tests/mcp-client/basic-authentication.spec.ts b/packages/insomnia-test/tests/mcp-client/basic-authentication.spec.ts index 4f40c5ef3b..d18e7279eb 100644 --- a/packages/insomnia-test/tests/mcp-client/basic-authentication.spec.ts +++ b/packages/insomnia-test/tests/mcp-client/basic-authentication.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/mcp-client/bearer-authentication.spec.ts b/packages/insomnia-test/tests/mcp-client/bearer-authentication.spec.ts index 434e74da50..f4bf479d35 100644 --- a/packages/insomnia-test/tests/mcp-client/bearer-authentication.spec.ts +++ b/packages/insomnia-test/tests/mcp-client/bearer-authentication.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/mcp-client/disconnect-and-reconnect.spec.ts b/packages/insomnia-test/tests/mcp-client/disconnect-and-reconnect.spec.ts index 6bf47fec92..e317137bf4 100644 --- a/packages/insomnia-test/tests/mcp-client/disconnect-and-reconnect.spec.ts +++ b/packages/insomnia-test/tests/mcp-client/disconnect-and-reconnect.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/mcp-client/environment-variable-in-url.spec.ts b/packages/insomnia-test/tests/mcp-client/environment-variable-in-url.spec.ts index 607ab5b76e..e49759aef9 100644 --- a/packages/insomnia-test/tests/mcp-client/environment-variable-in-url.spec.ts +++ b/packages/insomnia-test/tests/mcp-client/environment-variable-in-url.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/mcp-client/happy-path.spec.ts b/packages/insomnia-test/tests/mcp-client/happy-path.spec.ts index d3301f9c92..62ed04bddd 100644 --- a/packages/insomnia-test/tests/mcp-client/happy-path.spec.ts +++ b/packages/insomnia-test/tests/mcp-client/happy-path.spec.ts @@ -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"; diff --git a/packages/insomnia-test/tests/mcp-client/oauth2-client-credentials-authentication.spec.ts b/packages/insomnia-test/tests/mcp-client/oauth2-client-credentials-authentication.spec.ts index b8010c86fd..5b587653ca 100644 --- a/packages/insomnia-test/tests/mcp-client/oauth2-client-credentials-authentication.spec.ts +++ b/packages/insomnia-test/tests/mcp-client/oauth2-client-credentials-authentication.spec.ts @@ -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; diff --git a/packages/insomnia-test/tests/mcp-client/proxy-settings.spec.ts b/packages/insomnia-test/tests/mcp-client/proxy-settings.spec.ts index eee641ee5d..56fc7522dd 100644 --- a/packages/insomnia-test/tests/mcp-client/proxy-settings.spec.ts +++ b/packages/insomnia-test/tests/mcp-client/proxy-settings.spec.ts @@ -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[] = []; diff --git a/packages/insomnia-test/tests/mcp-client/tls-connection.spec.ts b/packages/insomnia-test/tests/mcp-client/tls-connection.spec.ts index 6ffade8b84..94fbd6f5bf 100644 --- a/packages/insomnia-test/tests/mcp-client/tls-connection.spec.ts +++ b/packages/insomnia-test/tests/mcp-client/tls-connection.spec.ts @@ -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; diff --git a/packages/insomnia-test/tests/mcp-client/unreachable-server.spec.ts b/packages/insomnia-test/tests/mcp-client/unreachable-server.spec.ts index 80af5f99cc..6c695fe391 100644 --- a/packages/insomnia-test/tests/mcp-client/unreachable-server.spec.ts +++ b/packages/insomnia-test/tests/mcp-client/unreachable-server.spec.ts @@ -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"; diff --git a/packages/insomnia-test/tests/socket-io-request/disconnect-before-server-reply.spec.ts b/packages/insomnia-test/tests/socket-io-request/disconnect-before-server-reply.spec.ts index 8bd328a298..c9f1378c20 100644 --- a/packages/insomnia-test/tests/socket-io-request/disconnect-before-server-reply.spec.ts +++ b/packages/insomnia-test/tests/socket-io-request/disconnect-before-server-reply.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/socket-io-request/duplicate-request.spec.ts b/packages/insomnia-test/tests/socket-io-request/duplicate-request.spec.ts index c0ab347cb4..748128b8e7 100644 --- a/packages/insomnia-test/tests/socket-io-request/duplicate-request.spec.ts +++ b/packages/insomnia-test/tests/socket-io-request/duplicate-request.spec.ts @@ -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"' }; diff --git a/packages/insomnia-test/tests/socket-io-request/happy-path.spec.ts b/packages/insomnia-test/tests/socket-io-request/happy-path.spec.ts index 988e514c8d..99fed7e0e4 100644 --- a/packages/insomnia-test/tests/socket-io-request/happy-path.spec.ts +++ b/packages/insomnia-test/tests/socket-io-request/happy-path.spec.ts @@ -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"' }; diff --git a/packages/insomnia-test/tests/socket-io-request/proxy-settings.spec.ts b/packages/insomnia-test/tests/socket-io-request/proxy-settings.spec.ts index ad29585f69..08b5f09ace 100644 --- a/packages/insomnia-test/tests/socket-io-request/proxy-settings.spec.ts +++ b/packages/insomnia-test/tests/socket-io-request/proxy-settings.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/socket-io-request/template-tag-in-message.spec.ts b/packages/insomnia-test/tests/socket-io-request/template-tag-in-message.spec.ts index 3d1a5809ed..6c7c1b9791 100644 --- a/packages/insomnia-test/tests/socket-io-request/template-tag-in-message.spec.ts +++ b/packages/insomnia-test/tests/socket-io-request/template-tag-in-message.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/socket-io-request/tls-connection.spec.ts b/packages/insomnia-test/tests/socket-io-request/tls-connection.spec.ts index 313f81cc45..6450be91bd 100644 --- a/packages/insomnia-test/tests/socket-io-request/tls-connection.spec.ts +++ b/packages/insomnia-test/tests/socket-io-request/tls-connection.spec.ts @@ -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 } = diff --git a/packages/insomnia-test/tests/socket-io-request/token-authentication.spec.ts b/packages/insomnia-test/tests/socket-io-request/token-authentication.spec.ts index 030a6f7b9e..7540f8dcf4 100644 --- a/packages/insomnia-test/tests/socket-io-request/token-authentication.spec.ts +++ b/packages/insomnia-test/tests/socket-io-request/token-authentication.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/socket-io-request/unreachable-server.spec.ts b/packages/insomnia-test/tests/socket-io-request/unreachable-server.spec.ts index 0fabfce3c9..b93c648663 100644 --- a/packages/insomnia-test/tests/socket-io-request/unreachable-server.spec.ts +++ b/packages/insomnia-test/tests/socket-io-request/unreachable-server.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/web-socket-request/api-key-authentication.spec.ts b/packages/insomnia-test/tests/web-socket-request/api-key-authentication.spec.ts index d9fff13998..e01dd0eded 100644 --- a/packages/insomnia-test/tests/web-socket-request/api-key-authentication.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/api-key-authentication.spec.ts @@ -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; diff --git a/packages/insomnia-test/tests/web-socket-request/basic-authentication.spec.ts b/packages/insomnia-test/tests/web-socket-request/basic-authentication.spec.ts index d5b6fc8f4b..ffc2a26033 100644 --- a/packages/insomnia-test/tests/web-socket-request/basic-authentication.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/basic-authentication.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/web-socket-request/bearer-authentication.spec.ts b/packages/insomnia-test/tests/web-socket-request/bearer-authentication.spec.ts index ea1f7b6198..a5c28f71e5 100644 --- a/packages/insomnia-test/tests/web-socket-request/bearer-authentication.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/bearer-authentication.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/web-socket-request/cookie-sent-with-connection.spec.ts b/packages/insomnia-test/tests/web-socket-request/cookie-sent-with-connection.spec.ts index 823164a41b..cf45107e66 100644 --- a/packages/insomnia-test/tests/web-socket-request/cookie-sent-with-connection.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/cookie-sent-with-connection.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/web-socket-request/disconnect-before-server-reply.spec.ts b/packages/insomnia-test/tests/web-socket-request/disconnect-before-server-reply.spec.ts index 108620a8c4..d53a5d32b6 100644 --- a/packages/insomnia-test/tests/web-socket-request/disconnect-before-server-reply.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/disconnect-before-server-reply.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/web-socket-request/environment-variable-in-url.spec.ts b/packages/insomnia-test/tests/web-socket-request/environment-variable-in-url.spec.ts index 699689a943..c6445bcaed 100644 --- a/packages/insomnia-test/tests/web-socket-request/environment-variable-in-url.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/environment-variable-in-url.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/web-socket-request/happy-path.spec.ts b/packages/insomnia-test/tests/web-socket-request/happy-path.spec.ts index 2edbba7521..8e5cf0d4f4 100644 --- a/packages/insomnia-test/tests/web-socket-request/happy-path.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/happy-path.spec.ts @@ -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; diff --git a/packages/insomnia-test/tests/web-socket-request/import-params-from-url-websocket.spec.ts b/packages/insomnia-test/tests/web-socket-request/import-params-from-url-websocket.spec.ts index 000c24603a..3e32bae9cd 100644 --- a/packages/insomnia-test/tests/web-socket-request/import-params-from-url-websocket.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/import-params-from-url-websocket.spec.ts @@ -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, diff --git a/packages/insomnia-test/tests/web-socket-request/proxy-settings.spec.ts b/packages/insomnia-test/tests/web-socket-request/proxy-settings.spec.ts index 26a4cb8a04..5b2779ea1e 100644 --- a/packages/insomnia-test/tests/web-socket-request/proxy-settings.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/proxy-settings.spec.ts @@ -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[] = []; diff --git a/packages/insomnia-test/tests/web-socket-request/send-multiple-message-types.spec.ts b/packages/insomnia-test/tests/web-socket-request/send-multiple-message-types.spec.ts index cd21282c09..d7318fb1e2 100644 --- a/packages/insomnia-test/tests/web-socket-request/send-multiple-message-types.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/send-multiple-message-types.spec.ts @@ -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; diff --git a/packages/insomnia-test/tests/web-socket-request/template-tag-in-header-and-message.spec.ts b/packages/insomnia-test/tests/web-socket-request/template-tag-in-header-and-message.spec.ts index fb87d3d4b8..4b80cbf457 100644 --- a/packages/insomnia-test/tests/web-socket-request/template-tag-in-header-and-message.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/template-tag-in-header-and-message.spec.ts @@ -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' %}"; diff --git a/packages/insomnia-test/tests/web-socket-request/tls-connection.spec.ts b/packages/insomnia-test/tests/web-socket-request/tls-connection.spec.ts index 369a01ff29..7707b3b976 100644 --- a/packages/insomnia-test/tests/web-socket-request/tls-connection.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/tls-connection.spec.ts @@ -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 } = diff --git a/packages/insomnia-test/tests/web-socket-request/unresolved-environment-variable.spec.ts b/packages/insomnia-test/tests/web-socket-request/unresolved-environment-variable.spec.ts index fd608d1cd7..11bae147d1 100644 --- a/packages/insomnia-test/tests/web-socket-request/unresolved-environment-variable.spec.ts +++ b/packages/insomnia-test/tests/web-socket-request/unresolved-environment-variable.spec.ts @@ -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";