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-05 14:18:21 +08:00
1 parent 93f4007da4
commit ad8101ceb6
62 files changed
+62 -124

No files matched your search

@@ -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,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,12 +1,11 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { HttpMethod } from "@package/enums/http-method";
import { MockBodyType } from "@package/enums/mock-body-type";
import { ProjectType } from "@package/enums/project-types";
import { MOCK_BIN_SERVER, test } from "@package/misc/fixtures";
import { MockServer } from "@package/models/mock-server";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Edited Mock Route Status And Body Are Pushed To The Mock Server Without Testing", 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 { MOCK_BIN_SERVER, test } from "@package/misc/fixtures";
import { MockServer } from "@package/models/mock-server";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Create Self-Hosted Mock Server", async ({ user }) => {
const { mockServerFlow, 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 { MOCK_BIN_SERVER, MOCK_BIN_SOURCE_RESPONSE, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { MockServer } from "@package/models/mock-server";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Creating A Mock Route From A Request Response", 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 { MOCK_BIN_SERVER, test } from "@package/misc/fixtures";
import { MockServer } from "@package/models/mock-server";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Duplicating A Mock Server Keeps Its Routes", async ({ user }) => {
const { mockServerFlow, workspaceFlow } = user.flowManager;
@@ -2,13 +2,12 @@ import * as os from "node:os";
import path from "node:path";
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { waitForExportedFile } from "@package/misc/export-file";
import { MOCK_BIN_SERVER, test } from "@package/misc/fixtures";
import { MockServer } from "@package/models/mock-server";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Exported Mock Server Can Be Imported Into Another Project", 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 { MockBodyType } from "@package/enums/mock-body-type";
import { ProjectType } from "@package/enums/project-types";
@@ -8,6 +6,7 @@ import { MOCK_BIN_SERVER, MOCK_BIN_SOURCE_RESPONSE, test } from "@package/misc/f
import { Collection } from "@package/models/collection";
import { MockServer } from "@package/models/mock-server";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Overwriting A Mock Route With A Request Response", 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 { MOCK_BIN_SERVER, test } from "@package/misc/fixtures";
import { MockServer } from "@package/models/mock-server";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Mock Route History Logs Each Tested Request", async ({ user }) => {
const { mockServerFlow, 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 { MockBodyType } from "@package/enums/mock-body-type";
import { ProjectType } from "@package/enums/project-types";
import { MOCK_BIN_SERVER, test } from "@package/misc/fixtures";
import { MockServer } from "@package/models/mock-server";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Mock Route Response Definition Is Returned By Test", 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 { MOCK_BIN_SERVER, test } from "@package/misc/fixtures";
import { MockServer } from "@package/models/mock-server";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Create, Edit and Delete Mock Routes", async ({ user }) => {
const { mockServerFlow, workspaceFlow } = user.flowManager;
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ProjectType } from "@package/enums/project-types";
import { MOCK_BIN_SERVER, test } from "@package/misc/fixtures";
import { MockServer } from "@package/models/mock-server";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Testing A Default Mock Route Returns 200 With No Body", async ({
user,
@@ -1,7 +1,6 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { MOCK_LLM_SERVER, test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test("Verify an LLM backend's config persists and can be activated then deactivated in AI Settings", async ({
user,
@@ -1,6 +1,5 @@
import { expect } from "@playwright/test";
import { test } from "@package/misc/fixtures";
import { expect } from "@playwright/test";
test("Verify the 'Filter responses by environment' preference persists across closing and reopening Preferences", 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";
test("Verify enabling an HTTP/HTTPS proxy routes outgoing requests through it", 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}/post`;
const brokenUrl = `${HTTP_SERVER}/post?x={% nosuchtag %}`;
@@ -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}/post`;
@@ -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 iterations = 5;
@@ -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}/post`;
@@ -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}/post`;
const delay = 1000;
@@ -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}/post`;
const unreachableUrl = "http://localhost:59999/nope";
@@ -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}/post`;
const iterations = 2;
@@ -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 { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/post`;
@@ -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 { Collection } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const url = `${HTTP_SERVER}/post`;
const dataFilePath = path.join(import.meta.dirname, "runner-data.json");
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContextMenuItem } from "@package/enums/context-menu-items";
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 adding a query parameter or header focuses the new row's Name cell", 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";
test("Verify command palette fuzzy-jumps between requests and collections", 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";
test("Verify collection/request create and delete persist correctly while offline", 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 { TreeNodeType } from '@package/enums/tree-node-types';
@@ -8,6 +6,7 @@ import { HTTP_SERVER } from '@package/misc/fixtures';
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 dragging a request between a Cloud project and a Git project moves it in both directions',
@@ -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 { TreeNodeType } from '@package/enums/tree-node-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";
test(
'Verify dragging a request between a Cloud project and a Local project moves it in both directions',
@@ -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 { TreeNodeType } from '@package/enums/tree-node-types';
@@ -8,6 +6,7 @@ import { HTTP_SERVER } from '@package/misc/fixtures';
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 dragging a request between a Local project and a Git project moves it in both directions',
@@ -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 { ScriptTab } from "@package/enums/script-tab";
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";
test("Verify the Docs editor keeps undo history across a Write/Preview toggle", 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 { TreeNodeType } from "@package/enums/tree-node-types";
import { test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Folder } from "@package/models/folder";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify arrow keys expand and collapse a sidebar folder", 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 { test } from "@package/misc/fixtures";
import { Collection, Info, Specification } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify creating, renaming, duplicating, and deleting collections", async ({
user,
@@ -1,10 +1,9 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContextMenuItem } from "@package/enums/context-menu-items";
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("Verify the project row's creation context menu offers API Collection but no separate Document option", 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 { test } from "@package/misc/fixtures";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify Renaming And Deleting A Project Via The Dashboard", async ({
user,
@@ -1,11 +1,10 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContextMenuItem } from "@package/enums/context-menu-items";
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 a freshly created request focuses the URL bar and Tab/arrow-key order flows through Send, its dropdown, and the request tabs", 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 { TreeNodeType } from "@package/enums/tree-node-types";
@@ -8,6 +6,7 @@ import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Folder } from "@package/models/folder";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify dragging an item beside a folder does not land it inside the folder", 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 { TreeNodeType } from "@package/enums/tree-node-types";
@@ -9,6 +7,7 @@ import { Collection } from "@package/models/collection";
import { Folder } from "@package/models/folder";
import { Project } from "@package/models/project";
import type { TreeNode } from "@package/pages/workspace.page";
import { expect } from "@playwright/test";
test("Verify dragging an item onto an empty folder's placeholder makes it that folder's child", 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 { TreeNodeType } from '@package/enums/tree-node-types';
@@ -9,6 +7,7 @@ import { Collection } from '@package/models/collection';
import { Folder } from '@package/models/folder';
import { Project } from '@package/models/project';
import type { TreeNode } from '@package/pages/workspace.page';
import { expect } from "@playwright/test";
const WINDOW_WIDTH = 1512;
const WINDOW_HEIGHT = 859;
@@ -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 { TreeNodeType } from "@package/enums/tree-node-types";
@@ -8,6 +6,7 @@ import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Folder } from "@package/models/folder";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify invalid drop targets are rejected and shown as invalid", 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 { TreeNodeType } from "@package/enums/tree-node-types";
@@ -8,6 +6,7 @@ import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Folder } from "@package/models/folder";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
const SCAN_OFFSETS_PX = [1, 5, 10, 20, 30, 45, 65, 90, 120, 160, 210, 270, 340];
@@ -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 { TreeNodeType } from "@package/enums/tree-node-types";
@@ -8,6 +6,7 @@ import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Folder } from "@package/models/folder";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify sidebar reorder behaves unchanged and persists across views when switching between the spec and request views", 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";
test("Verify sidebar filtering hides non-matching requests and pinning toggles from the context menu", 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, Info, Specification } from "@package/models/collection";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify the sidebar focus mode onboarding popover shows once and stays dismissed after a reload, and narrows/un-narrows the sidebar for a spec-carrying API Collection", async ({
user,
@@ -1,6 +1,4 @@
import { faker } from "@faker-js/faker";
import { expect } from "@playwright/test";
import { ContextMenuItem } from "@package/enums/context-menu-items";
import { HttpMethod } from "@package/enums/http-method";
import { ProjectType } from "@package/enums/project-types";
@@ -9,6 +7,7 @@ import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection } from "@package/models/collection";
import { Folder } from "@package/models/folder";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify per-node-type Settings dialogs and inline rename via the sidebar", 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 { TreeNodeType } from "@package/enums/tree-node-types";
@@ -8,6 +6,7 @@ import { HTTP_SERVER, test } from "@package/misc/fixtures";
import { Collection, Info, Specification } from "@package/models/collection";
import { Folder } from "@package/models/folder";
import { Project } from "@package/models/project";
import { expect } from "@playwright/test";
test("Verify requests and folders render as nested child rows under a spec-carrying API Collection", 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";
test("Verify a tab's label and method icon stay in sync with the underlying request, and its tab auto-closes when the request is deleted", 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";
test("Verify pinning, switching, closing, and adding tabs in the tab bar", 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";
test("Verify typing into the URL bar keeps focus and Cmd/Ctrl+Z undoes in place", 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";
test("Verify URL bar edits and undo history survive switching tabs away and back", async ({
user,