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-02 18:22:49 +08:00
1 parent 1640e89900
commit 317eeb3c8f
284 files changed
+290 -568

No files matched your search

+3 -3
View File
@@ -3,14 +3,14 @@ import * as fs from "node:fs";
import * as os from "node:os";
import path from "node:path";
import { FlowManager } from "@package/flows/flow-manager";
import { SessionContext } from "@package/flows/session-context";
import { PageManager } from "@package/pages/page-manager";
import type {
ElectronApplication,
Page} from "@playwright/test";
import { test as base } from "@playwright/test";
import { FlowManager } from "@package/flows/flow-manager";
import { SessionContext } from "@package/flows/session-context";
import { PageManager } from "@package/pages/page-manager";
import { ACTION_TIMEOUT, DEFAULT_TIMEOUT, MOCK_API_SERVER } from "./constants";
import {
collectHiddenWindowCoverage,
@@ -1,6 +1,7 @@
import * as crypto from "node:crypto";
import type { GitCredential } from "@package/models/git-credential";
import { GIT_SERVER as GIT_SERVER_URL,test as base } from "./fixtures";
// The most recently created repo (set by the `gitRepo` fixture), used as
@@ -3,9 +3,8 @@ import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import type { TestInfo } from '@playwright/test';
import { UpgradePhase } from '@package/enums/upgrade-phase';
import type { TestInfo } from '@playwright/test';
const TEST_PACKAGE = path.resolve(import.meta.dirname, '..');
const REPO_ROOT = path.resolve(TEST_PACKAGE, '..', '..');
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
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 LONG_DELAY_PRE_REQUEST_SCRIPT = `
function delay(ms) {
@@ -1,9 +1,8 @@
import * as fs from "node:fs";
import path from "node:path";
import { expect } from "@playwright/test";
import { test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test("Verify Main Process Backs Up NeDB Files On Launch", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
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 LONG_DELAY_AFTER_RESPONSE_SCRIPT = `
function delay(ms) {
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
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";
test("Verify the hidden script window automatically restarts after an infinite-loop script hangs it, and a later request still succeeds", async ({
user,
@@ -1,6 +1,5 @@
import { expect } from "@playwright/test";
import { test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test("Verify logging out shows the Scratch Pad and other login entry points, and choosing Scratch Pad opens its workspace with no Document creation entry", async ({
user,
@@ -1,6 +1,5 @@
import { expect } from "@playwright/test";
import { test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test("Verify Main Process Survives An Async EPIPE Error On stdout", async ({
user,
@@ -1,7 +1,6 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test("Verify branch, commit, merge, and restore actions on one Cloud-synced workspace do not affect another workspace's branches or content", async ({
user,
@@ -1,7 +1,6 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { DEFAULT_TIMEOUT, test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test("Verify fetching a remote branch, checking out, deleting a local branch, and creating a new branch on a Cloud-synced workspace", async ({
user,
@@ -2,10 +2,10 @@ import * as fs from "node:fs";
import path from "node:path";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { MOCK_API_SERVER, resetCloudSyncState, SESSION_ID, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { expect } from "@playwright/test";
import { getCloudSyncGraphQLRequestLog, setCloudSyncGraphQLDelay } from "./support/cloud-sync-mock";
// Every Cloud Sync workspace used to share one VCS singleton, so creating a sibling
@@ -2,11 +2,11 @@ import * as fs from "node:fs";
import path from "node:path";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { HTTP_SERVER, resetCloudSyncState, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { expect } from "@playwright/test";
import { getCloudSyncProjectInfo, setCloudSyncArchiveFailure } from "./support/cloud-sync-mock";
test.afterAll(async () => {
@@ -1,10 +1,9 @@
import * as fs from "node:fs";
import path from "node:path";
import { expect } from "@playwright/test";
import { DeleteMode } from "@package/enums/delete-mode";
import { resetCloudSyncState, test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test.afterAll(async () => {
await resetCloudSyncState();
@@ -1,8 +1,7 @@
import { expect } from "@playwright/test";
import { DeleteMode } from "@package/enums/delete-mode";
import { SyncStatus } from "@package/enums/sync-status";
import { DEFAULT_TIMEOUT, resetCloudSyncState, test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test.afterAll(async () => {
await resetCloudSyncState();
@@ -1,7 +1,6 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test("Verify discarding changes on one Cloud-synced workspace does not affect another workspace's uncommitted edits", async ({
user,
@@ -1,8 +1,7 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { DEFAULT_TIMEOUT, test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test("Verify discarding changes, committing and pushing, and restoring an earlier snapshot on a Cloud-synced workspace", async ({
user,
@@ -1,7 +1,6 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
const CHARSET_ERROR =
"Branch names must be at least 3 characters long and can only contain English letters, numbers, period (.), hyphen (-), underscore (_) and forward slash (/)";
@@ -1,8 +1,7 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContentType } from "@package/enums/content-type";
import { DEFAULT_TIMEOUT, test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
for (const { version, chosenIndex } of [
{ version: "Current", chosenIndex: 0 },
@@ -2,12 +2,11 @@ import * as fs from "node:fs";
import path from "node:path";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { SyncStatus } from "@package/enums/sync-status";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { expect } from "@playwright/test";
test("Verify a new collection commits and pushes under its own backend project", async ({
user,
@@ -2,12 +2,11 @@ import * as fs from "node:fs";
import path from "node:path";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { SyncStatus } from "@package/enums/sync-status";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { expect } from "@playwright/test";
test("Verify a new collection is not left in an unsynced state after an app restart", async ({
user,
@@ -1,6 +1,5 @@
import { expect } from "@playwright/test";
import { MOCK_API_SERVER, SESSION_ID, test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test("Verify a new remote commit becomes pullable on a Cloud-synced workspace after a main-window focus change", async ({
user,
@@ -1,9 +1,8 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { DEFAULT_TIMEOUT, HTTP_SERVER, test } from "@package/misc/fixtures";
import type { Collection } from "@package/models/collection";
import { expect } from "@playwright/test";
test("Verify restoring an earlier snapshot removes a request added and committed after it on a Cloud-synced workspace", async ({
user,
@@ -1,9 +1,8 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { TreeNodeType } from "@package/enums/tree-node-types";
import { test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { expect } from "@playwright/test";
test("Verify dragging a request out of a Cloud Sync collection into an empty Cloud Sync collection", async ({
user,
@@ -2,11 +2,11 @@ import * as fs from "node:fs";
import path from "node:path";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { MOCK_API_SERVER, resetCloudSyncState, SESSION_ID, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import type { Environment } from "@package/models/environment";
import { expect } from "@playwright/test";
import { getCloudSyncGraphQLRequestLog, setCloudSyncGraphQLDelay } from "./support/cloud-sync-mock";
test.afterAll(async () => {
@@ -1,9 +1,8 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { DialogDismissMethod } from "@package/pages/cloud-sync-file-delete.page";
import { expect } from "@playwright/test";
test("Verify the dashboard's unsynced-file delete button only appears on unsynced cards, is revealed on hover and keyboard focus, and cancelling its dialog leaves the file intact", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
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}/cookies`;
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
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}/cookies`;
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
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}/cookies`;
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
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}/cookies`;
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
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}/cookies`;
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, 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";
test("Verify HttpOnly Cookie Flag Persists And Cookie Is Always Sent Over HTTP And HTTPS", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
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}/cookies`;
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, 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";
test("Verify Secure Cookie Is Sent Over HTTPS But Not Over Plain HTTP", async ({
user,
@@ -2,14 +2,13 @@ import * as os from 'node:os';
import path from 'node:path';
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ApiSpecExportFormat } from '@package/enums/api-spec-export-format';
import { ProjectType } from '@package/enums/project-types';
import { waitForExportedFile } from '@package/misc/export-file';
import { test } from '@package/misc/fixtures';
import { Collection } from '@package/models/collection';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
const petStoreSpec = (title: string) =>
`openapi: 3.0.4
@@ -3,8 +3,6 @@ import * as os from "node:os";
import path from "node:path";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ExportFormat } from "@package/enums/export-format";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
@@ -13,6 +11,7 @@ import { test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify exporting a Collection via its context menu (HAR and Insomnia v5) and a Project via Preferences -> Data each write the expected files", async ({
user,
@@ -2,12 +2,11 @@ import * as fs from "node:fs";
import path from "node:path";
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 { test } from "@package/misc/fixtures";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const wsdl = fs.readFileSync(path.join(import.meta.dirname, "calculator.wsdl"), "utf8");
const soapBody = fs.readFileSync(path.join(import.meta.dirname, "soap-body.xml"), "utf8");
@@ -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";
@@ -9,6 +7,7 @@ import { Collection } from "@package/models/collection";
import type { CurlCommand } from "@package/models/curl-command";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/posts`;
const body = `{"title": "title", "body": "body", "userId": 1}`;
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import type { CurlCommand } from "@package/models/curl-command";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/post`;
const username = faker.string.alphanumeric(8);
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import type { CurlCommand } from "@package/models/curl-command";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/cookies`;
const cookieName = `cookie_${faker.string.alphanumeric(6)}`;
@@ -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";
@@ -9,6 +7,7 @@ import { Collection } from "@package/models/collection";
import type { CurlCommand } from "@package/models/curl-command";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const rawUrl = `${HTTP_SERVER}/post`;
const binaryUrl = `${HTTP_SERVER}/posts`;
@@ -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";
@@ -9,6 +7,7 @@ import { Collection } from "@package/models/collection";
import type { CurlCommand } from "@package/models/curl-command";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/post`;
const headerName = "X-Custom";
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import type { CurlCommand } from "@package/models/curl-command";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/post`;
const paramName = faker.string.alpha(6);
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER_HTTPS, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import type { CurlCommand } from "@package/models/curl-command";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER_HTTPS}/post`;
const dataKey = faker.string.alpha(4);
@@ -3,8 +3,6 @@ import os from "node:os";
import path from "node:path";
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";
@@ -13,6 +11,7 @@ import { Collection } from "@package/models/collection";
import type { CurlCommand } from "@package/models/curl-command";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/post`;
const title = faker.string.alphanumeric(8);
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import type { CurlCommand } from "@package/models/curl-command";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/post`;
const headerName = "X-Custom";
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import type { CurlCommand } from "@package/models/curl-command";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/post`;
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import type { CurlCommand } from "@package/models/curl-command";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const firstUrl = `${HTTP_SERVER}/${faker.string.alphanumeric(10)}`;
const secondUrl = `${HTTP_SERVER}/${faker.string.alphanumeric(10)}`;
@@ -1,13 +1,12 @@
import path from "node:path";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Import Generates Content-Type Header From Postman File", async ({
user,
@@ -1,11 +1,10 @@
import path from "node:path";
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 { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Import Multiple Workspaces From Single File", async ({ user }) => {
const { httpRequestFlow, importFlow, workspaceFlow } = user.flowManager;
@@ -1,11 +1,10 @@
import path from "node:path";
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 { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Import OpenAPI Spec by File", async ({ user }) => {
const { importFlow, workspaceFlow } = user.flowManager;
@@ -1,9 +1,8 @@
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 { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const mcp = "Imported MCP Client";
const tool = "read_wiki_structure";
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Import OpenAPI Spec by Url", async ({ user }, testInfo) => {
// This test's later cookie-persistence check (CookieFlow.link ->
@@ -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 { RulesetType } from "@package/enums/ruleset-type";
import { test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const VALID_RULESET = path.join(import.meta.dirname, "custom.spectral.yaml");
const INVALID_RULESET = path.join(import.meta.dirname, "invalid.spectral.yaml");
@@ -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";
test("Verify Deleting A Test Suite Via Its Confirm Modal", async ({ user }) => {
const { workspaceFlow } = user.flowManager;
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { DEFAULT_TIMEOUT, SOCKET_SERVER, test } from "@package/misc/fixtures";
@@ -13,6 +11,7 @@ import {
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { Project } from "@package/models/project";
import type { SocketIORequest } from "@package/models/socket-io-request";
import { expect } from "@playwright/test";
const socketIoUrl = SOCKET_SERVER;
@@ -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";
test("Verify the legacy unit test setting defaults off and hides the Tests tab for a profile with no existing test suites", 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 { SpecFormat } from "@package/enums/spec-format";
import { test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Spec Editor Toolbar's Generate Menu, Format Switch, And Preview Toggle", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
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 buildSpec = () => ({
title: faker.commerce.productName(),
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { LintSeverity } from "@package/enums/lint-severity";
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";
test("Verify Spectral Lint Errors Surface With A Line Reference", async ({
user,
@@ -2,11 +2,10 @@ import * as fs from "node:fs";
import path from "node:path";
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 { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const UNIT_TEST_FIXTURE = fs.readFileSync(
path.join(import.meta.dirname, "unit-test.yaml"),
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const lowerCaseVariable = "caseVar";
const upperCaseVariable = "CaseVar";
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const variableA = "a";
const variableB = "b";
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify creating and duplicating a global environment", async ({
user,
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const sharedVariable = "shared";
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const leafVariable = "leaf";
const midVariable = "mid";
@@ -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";
test("Verify the project and collection environment pickers open and close independently", async ({
user,
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import { Folder } from "@package/models/folder";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const sharedVariable = faker.string.alpha(8);
const subOnlyVariable = faker.string.alpha(9);
@@ -1,6 +1,4 @@
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 type {
@@ -9,6 +7,7 @@ import {
EnvironmentKvPairDataType,
} from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Environment Raw JSON Editor Reads Back And Persists Edits", 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 { test } from "@package/misc/fixtures";
import type {
@@ -9,6 +7,7 @@ import {
EnvironmentKvPairDataType,
} from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Environment Table Editor's Blank Row Is Not Persisted And Deleting A Row Leaves No Stale Text", async ({
user,
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const firstVariable = "a";
const secondVariable = "b";
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const leafVariable = "leaf";
const midVariable = "mid";
@@ -1,8 +1,6 @@
import * as crypto from "node:crypto";
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";
@@ -13,6 +11,7 @@ import {
EnvironmentKvPairDataType,
} from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const testWithVaultKey = test.extend({
vaultKey: async ({}, use) => {
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const selfVariable = "a";
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const sharedVariable = "shared";
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { HTTP_SERVER, test } from "@package/misc/fixtures";
@@ -8,6 +6,7 @@ import { Collection } from "@package/models/collection";
import { EnvironmentKvPairDataType } from "@package/models/environment";
import type { HttpRequest } from "@package/models/http-request";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const sharedVariable = "shared";
@@ -1,6 +1,4 @@
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 type {
@@ -9,6 +7,7 @@ import {
EnvironmentKvPairDataType,
} from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Disabling A Row In The Table Editor Is Reflected On Read-Back", async ({
user,
@@ -1,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
import { MOCK_API_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 variableName = "unlinked";
@@ -1,14 +1,13 @@
import path from "node:path";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import type { FlowManager } from "@package/flows/flow-manager";
import type { VariableSourceLanding } from "@package/flows/variable-source.flow";
import { test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const cascadeFixture = path.join(import.meta.dirname, "environment-cascade-collection.yaml");
const globalCollectionFixture = path.join(import.meta.dirname, "collection-for-global-environments.yaml");
@@ -1,12 +1,11 @@
import path from "node:path";
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";
test("Verify the tag modal's source follows the edited template and hides for non-variable content", async ({
user,
@@ -1,12 +1,11 @@
import path from "node:path";
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";
test("Verify hovering an undefined variable swaps the tooltip to the render error instead of vanishing", async ({
user,
@@ -1,12 +1,11 @@
import path from "node:path";
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 cascadeFixture = path.join(import.meta.dirname, "environment-cascade-collection.yaml");
const globalCollectionFixture = path.join(import.meta.dirname, "collection-for-global-environments.yaml");
@@ -2,8 +2,6 @@ import * as crypto from "node:crypto";
import path from "node:path";
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";
@@ -12,6 +10,7 @@ import {
EnvironmentKvPairDataType,
} from "@package/models/environment";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const testWithVaultKey = test.extend({
vaultKey: async ({}, use) => {
@@ -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,10 +1,9 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ProjectType } from '@package/enums/project-types';
import { buildCollectionFile, GIT_CREDENTIAL, pushServerFile, test } from '@package/misc/git-fixtures';
import { Collection } from '@package/models/collection';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify a branch that exists only on the remote is listed after Fetch and can be checked out', async ({ user }) => {
const { gitSyncFlow, preferencesFlow, workspaceFlow } = user.flowManager;
@@ -1,12 +1,11 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { HttpMethod } from '@package/enums/http-method';
import { ProjectType } from '@package/enums/project-types';
import { HTTP_SERVER } from '@package/misc/fixtures';
import { getServerCommits, GIT_CREDENTIAL, test } from '@package/misc/git-fixtures';
import { Collection } from '@package/models/collection';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify committing a new collection and then a new request in a Git Sync project appears in History', 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 { GIT_CREDENTIAL, test } from '@package/misc/git-fixtures';
import { Collection } from '@package/models/collection';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify committing with nothing staged prompts to stage all, and cancelling or omitting the message creates no commit', async ({
user,
@@ -1,9 +1,8 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ProjectType } from '@package/enums/project-types';
import { getServerBranches, GIT_CREDENTIAL, test } from '@package/misc/git-fixtures';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify creating a new branch in a Git Sync project switches to it', async ({ user }) => {
const { gitSyncFlow, preferencesFlow, workspaceFlow } = user.flowManager;
@@ -1,9 +1,8 @@
import { faker } from '@faker-js/faker';
import { expect } from "@playwright/test";
import { ProjectType } from '@package/enums/project-types';
import { GIT_CREDENTIAL, test } from '@package/misc/git-fixtures';
import { Project } from '@package/models/project';
import { expect } from "@playwright/test";
test('Verify creating a branch with a duplicate or invalid name shows an error and keeps the current branch', async ({
user,
Loaded 100 of 284 files, more files were not shown because too many files have changed in this diff. Show more