mirror of
https://github.com/Kong/insomnia.git
synced 2026-11-05 12:33:40 -05:00
refactor(insomnia-test): use @package alias for cross-directory imports
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7aac35e988
commit
8bca5f4794
64 files changed
+317
-317
No files matched your search
@@ -1,12 +1,12 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { RequestState } from "../../enums/request-state";
|
||||
import { DEFAULT_TIMEOUT, HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
const LONG_DELAY_PRE_REQUEST_SCRIPT = `
|
||||
function delay(ms) {
|
||||
|
||||
@@ -3,7 +3,7 @@ import path from "node:path";
|
||||
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { test } from "@package/misc/fixtures";
|
||||
|
||||
test("Verify Main Process Backs Up NeDB Files On Launch", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { DEFAULT_TIMEOUT, HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
const LONG_DELAY_AFTER_RESPONSE_SCRIPT = `
|
||||
function delay(ms) {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { DEFAULT_TIMEOUT, HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
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,6 @@
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { test } from "@package/misc/fixtures";
|
||||
|
||||
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,6 @@
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { test } from "@package/misc/fixtures";
|
||||
|
||||
test("Verify Main Process Survives An Async EPIPE Error On stdout", async ({
|
||||
user,
|
||||
|
||||
+5
-5
@@ -3,11 +3,11 @@ import path from "node:path";
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../../enums/project-types";
|
||||
import { RulesetType } from "../../../enums/ruleset-type";
|
||||
import { test } from "../../../misc/fixtures";
|
||||
import { Collection } from "../../../models/collection";
|
||||
import { Project } from "../../../models/project";
|
||||
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";
|
||||
|
||||
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,10 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Deleting A Test Suite Via Its Confirm Modal", async ({ user }) => {
|
||||
const { workspaceFlow } = user.flowManager;
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { DEFAULT_TIMEOUT, SOCKET_SERVER, test } from "../../misc/fixtures";
|
||||
import { HttpMethod } from "@package/enums/http-method";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
import { DEFAULT_TIMEOUT, SOCKET_SERVER, test } from "@package/misc/fixtures";
|
||||
import {
|
||||
Collection,
|
||||
Info,
|
||||
License,
|
||||
Specification,
|
||||
} from "../../models/collection";
|
||||
import { EnvironmentKvPairDataType } from "../../models/environment";
|
||||
import { Project } from "../../models/project";
|
||||
import type { SocketIORequest } from "../../models/socket-io-request";
|
||||
} from "@package/models/collection";
|
||||
import { EnvironmentKvPairDataType } from "@package/models/environment";
|
||||
import { Project } from "@package/models/project";
|
||||
import type { SocketIORequest } from "@package/models/socket-io-request";
|
||||
|
||||
const socketIoUrl = SOCKET_SERVER;
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
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,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { SpecFormat } from "../../enums/spec-format";
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Spec Editor Toolbar's Generate Menu, Format Switch, And Preview Toggle", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
const buildSpec = () => ({
|
||||
title: faker.commerce.productName(),
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { LintSeverity } from "../../enums/lint-severity";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Spectral Lint Errors Surface With A Line Reference", async ({
|
||||
user,
|
||||
|
||||
@@ -4,9 +4,9 @@ import path from "node:path";
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../../enums/project-types";
|
||||
import { test } from "../../../misc/fixtures";
|
||||
import { Project } from "../../../models/project";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
import { test } from "@package/misc/fixtures";
|
||||
import { Project } from "@package/models/project";
|
||||
|
||||
const UNIT_TEST_FIXTURE = fs.readFileSync(
|
||||
path.join(import.meta.dirname, "unit-test.yaml"),
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { MockBodyType } from "../../enums/mock-body-type";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { MOCK_BIN_SERVER, test } from "../../misc/fixtures";
|
||||
import { MockServer } from "../../models/mock-server";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Edited Mock Route Status And Body Are Pushed To The Mock Server Without Testing", async ({
|
||||
user,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { MOCK_BIN_SERVER, test } from "../../misc/fixtures";
|
||||
import { MockServer } from "../../models/mock-server";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Create Self-Hosted Mock Server", async ({ user }) => {
|
||||
const { mockServerFlow, workspaceFlow } = user.flowManager;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { MOCK_BIN_SERVER, MOCK_BIN_SOURCE_RESPONSE, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { MockServer } from "../../models/mock-server";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Creating A Mock Route From A Request Response", async ({
|
||||
user,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { MOCK_BIN_SERVER, test } from "../../misc/fixtures";
|
||||
import { MockServer } from "../../models/mock-server";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Duplicating A Mock Server Keeps Its Routes", async ({ user }) => {
|
||||
const { mockServerFlow, workspaceFlow } = user.flowManager;
|
||||
|
||||
@@ -4,11 +4,11 @@ import path from "node:path";
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { waitForExportedFile } from "../../misc/export-file";
|
||||
import { MOCK_BIN_SERVER, test } from "../../misc/fixtures";
|
||||
import { MockServer } from "../../models/mock-server";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Exported Mock Server Can Be Imported Into Another Project", async ({
|
||||
user,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { MockBodyType } from "../../enums/mock-body-type";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { MOCK_BIN_SERVER, MOCK_BIN_SOURCE_RESPONSE, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { MockServer } from "../../models/mock-server";
|
||||
import { Project } from "../../models/project";
|
||||
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, 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";
|
||||
|
||||
test("Verify Overwriting A Mock Route With A Request Response", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { MOCK_BIN_SERVER, test } from "../../misc/fixtures";
|
||||
import { MockServer } from "../../models/mock-server";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Mock Route History Logs Each Tested Request", async ({ user }) => {
|
||||
const { mockServerFlow, workspaceFlow } = user.flowManager;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { MockBodyType } from "../../enums/mock-body-type";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { MOCK_BIN_SERVER, test } from "../../misc/fixtures";
|
||||
import { MockServer } from "../../models/mock-server";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Mock Route Response Definition Is Returned By Test", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { MOCK_BIN_SERVER, test } from "../../misc/fixtures";
|
||||
import { MockServer } from "../../models/mock-server";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Create, Edit and Delete Mock Routes", async ({ user }) => {
|
||||
const { mockServerFlow, workspaceFlow } = user.flowManager;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { MOCK_BIN_SERVER, test } from "../../misc/fixtures";
|
||||
import { MockServer } from "../../models/mock-server";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify Testing A Default Mock Route Returns 200 With No Body", async ({
|
||||
user,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { MOCK_LLM_SERVER, test } from "../../misc/fixtures";
|
||||
import { MOCK_LLM_SERVER, test } from "@package/misc/fixtures";
|
||||
|
||||
test("Verify an LLM backend's config persists and can be activated then deactivated in AI Settings", async ({
|
||||
user,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { test } from "@package/misc/fixtures";
|
||||
|
||||
test("Verify the 'Filter responses by environment' preference persists across closing and reopening Preferences", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify enabling an HTTP/HTTPS proxy routes outgoing requests through it", async ({
|
||||
user,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { test } from "@package/misc/fixtures";
|
||||
|
||||
test("Verify a new vault key can be generated and persists across reopening Preferences", async ({
|
||||
user,
|
||||
|
||||
@@ -2,7 +2,7 @@ import * as crypto from "node:crypto";
|
||||
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { test } from "@package/misc/fixtures";
|
||||
|
||||
const testWithVaultSalt = test.extend({
|
||||
vaultSalt: async ({}, use) => {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from '@faker-js/faker';
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from '../../enums/http-method';
|
||||
import { ProjectType } from '../../enums/project-types';
|
||||
import { HTTP_SERVER, test } from '../../misc/fixtures';
|
||||
import { Collection } from '../../models/collection';
|
||||
import { Project } from '../../models/project';
|
||||
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';
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
const brokenUrl = `${HTTP_SERVER}/post?x={% nosuchtag %}`;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from '@faker-js/faker';
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from '../../enums/http-method';
|
||||
import { ProjectType } from '../../enums/project-types';
|
||||
import { HTTP_SERVER, test } from '../../misc/fixtures';
|
||||
import { Collection } from '../../models/collection';
|
||||
import { Project } from '../../models/project';
|
||||
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';
|
||||
|
||||
const iterations = 5;
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from '@faker-js/faker';
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from '../../enums/http-method';
|
||||
import { ProjectType } from '../../enums/project-types';
|
||||
import { HTTP_SERVER, test } from '../../misc/fixtures';
|
||||
import { Collection } from '../../models/collection';
|
||||
import { Project } from '../../models/project';
|
||||
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';
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
const delay = 1000;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
const unreachableUrl = "http://localhost:59999/nope";
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
const iterations = 2;
|
||||
|
||||
+5
-5
@@ -3,11 +3,11 @@ import path from "node:path";
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../../enums/http-method";
|
||||
import { ProjectType } from "../../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../../misc/fixtures";
|
||||
import { Collection } from "../../../models/collection";
|
||||
import { Project } from "../../../models/project";
|
||||
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";
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
+5
-5
@@ -3,11 +3,11 @@ import path from "node:path";
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../../enums/http-method";
|
||||
import { ProjectType } from "../../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../../misc/fixtures";
|
||||
import { Collection } from "../../../models/collection";
|
||||
import { Project } from "../../../models/project";
|
||||
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";
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
const dataFilePath = path.join(import.meta.dirname, "runner-data.json");
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContextMenuItem } from "../../enums/context-menu-items";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify adding a query parameter or header focuses the new row's Name cell", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify command palette fuzzy-jumps between requests and collections", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify collection/request create and delete persist correctly while offline", async ({
|
||||
user,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { faker } from '@faker-js/faker';
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from '../../enums/http-method';
|
||||
import { ProjectType } from '../../enums/project-types';
|
||||
import { TreeNodeType } from '../../enums/tree-node-types';
|
||||
import { HTTP_SERVER } from '../../misc/fixtures';
|
||||
import { GIT_CREDENTIAL, test } from '../../misc/git-fixtures';
|
||||
import { Collection } from '../../models/collection';
|
||||
import { Project } from '../../models/project';
|
||||
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 } 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';
|
||||
|
||||
test(
|
||||
'Verify dragging a request between a Cloud project and a Git project moves it in both directions',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { faker } from '@faker-js/faker';
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from '../../enums/http-method';
|
||||
import { ProjectType } from '../../enums/project-types';
|
||||
import { TreeNodeType } from '../../enums/tree-node-types';
|
||||
import { HTTP_SERVER, test } from '../../misc/fixtures';
|
||||
import { Collection } from '../../models/collection';
|
||||
import { Project } from '../../models/project';
|
||||
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';
|
||||
|
||||
test(
|
||||
'Verify dragging a request between a Cloud project and a Local project moves it in both directions',
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { faker } from '@faker-js/faker';
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from '../../enums/http-method';
|
||||
import { ProjectType } from '../../enums/project-types';
|
||||
import { TreeNodeType } from '../../enums/tree-node-types';
|
||||
import { HTTP_SERVER } from '../../misc/fixtures';
|
||||
import { GIT_CREDENTIAL, test } from '../../misc/git-fixtures';
|
||||
import { Collection } from '../../models/collection';
|
||||
import { Project } from '../../models/project';
|
||||
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 } 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';
|
||||
|
||||
test(
|
||||
'Verify dragging a request between a Local project and a Git project moves it in both directions',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { ScriptTab } from "../../enums/script-tab";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify the Docs editor keeps undo history across a Write/Preview toggle", async ({
|
||||
user,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { TreeNodeType } from "../../enums/tree-node-types";
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Folder } from "../../models/folder";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify arrow keys expand and collapse a sidebar folder", async ({
|
||||
user,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { Collection, Info, Specification } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify creating, renaming, duplicating, and deleting collections", async ({
|
||||
user,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContextMenuItem } from "../../enums/context-menu-items";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify the project row's creation context menu offers API Collection but no separate Document option", async ({
|
||||
user,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { Project } from "../../models/project";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
import { test } from "@package/misc/fixtures";
|
||||
import { Project } from "@package/models/project";
|
||||
|
||||
test("Verify Renaming And Deleting A Project Via The Dashboard", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContextMenuItem } from "../../enums/context-menu-items";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
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,13 +1,13 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { TreeNodeType } from "../../enums/tree-node-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Folder } from "../../models/folder";
|
||||
import { Project } from "../../models/project";
|
||||
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 { Folder } from "@package/models/folder";
|
||||
import { Project } from "@package/models/project";
|
||||
|
||||
test("Verify dragging an item beside a folder does not land it inside the folder", async ({
|
||||
user,
|
||||
|
||||
+8
-8
@@ -1,14 +1,14 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { TreeNodeType } from "../../enums/tree-node-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Folder } from "../../models/folder";
|
||||
import { Project } from "../../models/project";
|
||||
import type { TreeNode } from "../../pages/workspace.page";
|
||||
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 { Folder } from "@package/models/folder";
|
||||
import { Project } from "@package/models/project";
|
||||
import type { TreeNode } from "@package/pages/workspace.page";
|
||||
|
||||
test("Verify dragging an item onto an empty folder's placeholder makes it that folder's child", async ({
|
||||
user,
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { faker } from '@faker-js/faker';
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from '../../enums/http-method';
|
||||
import { ProjectType } from '../../enums/project-types';
|
||||
import { TreeNodeType } from '../../enums/tree-node-types';
|
||||
import { HTTP_SERVER, test } from '../../misc/fixtures';
|
||||
import { Collection } from '../../models/collection';
|
||||
import { Folder } from '../../models/folder';
|
||||
import { Project } from '../../models/project';
|
||||
import type { TreeNode } from '../../pages/workspace.page';
|
||||
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 { Folder } from '@package/models/folder';
|
||||
import { Project } from '@package/models/project';
|
||||
import type { TreeNode } from '@package/pages/workspace.page';
|
||||
|
||||
const WINDOW_WIDTH = 1512;
|
||||
const WINDOW_HEIGHT = 859;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { TreeNodeType } from "../../enums/tree-node-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Folder } from "../../models/folder";
|
||||
import { Project } from "../../models/project";
|
||||
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 { Folder } from "@package/models/folder";
|
||||
import { Project } from "@package/models/project";
|
||||
|
||||
test("Verify invalid drop targets are rejected and shown as invalid", async ({
|
||||
user,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { TreeNodeType } from "../../enums/tree-node-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Folder } from "../../models/folder";
|
||||
import { Project } from "../../models/project";
|
||||
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 { Folder } from "@package/models/folder";
|
||||
import { Project } from "@package/models/project";
|
||||
|
||||
const SCAN_OFFSETS_PX = [1, 5, 10, 20, 30, 45, 65, 90, 120, 160, 210, 270, 340];
|
||||
|
||||
|
||||
+7
-7
@@ -1,13 +1,13 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { TreeNodeType } from "../../enums/tree-node-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Folder } from "../../models/folder";
|
||||
import { Project } from "../../models/project";
|
||||
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 { Folder } from "@package/models/folder";
|
||||
import { Project } from "@package/models/project";
|
||||
|
||||
test("Verify sidebar reorder behaves unchanged and persists across views when switching between the spec and request views", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify sidebar filtering hides non-matching requests and pinning toggles from the context menu", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection, Info, Specification } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
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,14 +1,14 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContextMenuItem } from "../../enums/context-menu-items";
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { TreeNodeType } from "../../enums/tree-node-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Folder } from "../../models/folder";
|
||||
import { Project } from "../../models/project";
|
||||
import { ContextMenuItem } from "@package/enums/context-menu-items";
|
||||
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 { Folder } from "@package/models/folder";
|
||||
import { Project } from "@package/models/project";
|
||||
|
||||
test("Verify per-node-type Settings dialogs and inline rename via the sidebar", async ({
|
||||
user,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { TreeNodeType } from "../../enums/tree-node-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection, Info, Specification } from "../../models/collection";
|
||||
import { Folder } from "../../models/folder";
|
||||
import { Project } from "../../models/project";
|
||||
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, Info, Specification } from "@package/models/collection";
|
||||
import { Folder } from "@package/models/folder";
|
||||
import { Project } from "@package/models/project";
|
||||
|
||||
test("Verify requests and folders render as nested child rows under a spec-carrying API Collection", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
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,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify pinning, switching, closing, and adding tabs in the tab bar", async ({
|
||||
user,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { EnvironmentKvPairDataType } from "../../models/environment";
|
||||
import type { HttpRequest } from "../../models/http-request";
|
||||
import { Project } from "../../models/project";
|
||||
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 { EnvironmentKvPairDataType } from "@package/models/environment";
|
||||
import type { HttpRequest } from "@package/models/http-request";
|
||||
import { Project } from "@package/models/project";
|
||||
|
||||
test("Verify typing into the URL bar keeps focus and Cmd/Ctrl+Z undoes in place", async ({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { HttpMethod } from "../../enums/http-method";
|
||||
import { ProjectType } from "../../enums/project-types";
|
||||
import { HTTP_SERVER, test } from "../../misc/fixtures";
|
||||
import { Collection } from "../../models/collection";
|
||||
import { Project } from "../../models/project";
|
||||
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";
|
||||
|
||||
test("Verify URL bar edits and undo history survive switching tabs away and back", async ({
|
||||
user,
|
||||
|
||||
Reference in new issue
Block a user