mirror of
https://github.com/Kong/insomnia.git
synced 2026-11-04 20:13:48 -05:00
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:
1 parent
be02a51622
commit
94875be0b1
73 files changed
+74
-147
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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
-2
@@ -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
-2
@@ -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
-2
@@ -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
-2
@@ -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
-2
@@ -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
-2
@@ -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
-2
@@ -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
-2
@@ -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
-2
@@ -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");
|
||||
|
||||
+1
-2
@@ -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
-2
@@ -1,12 +1,11 @@
|
||||
import { faker } from '@faker-js/faker';
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContentType } from '@package/enums/content-type';
|
||||
import { HttpMethod } from '@package/enums/http-method';
|
||||
import { ProjectType } from '@package/enums/project-types';
|
||||
import { 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 url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
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";
|
||||
@@ -10,6 +8,7 @@ import { HTTP_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
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 uploadFilePath = path.join(
|
||||
|
||||
@@ -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";
|
||||
|
||||
test("Verify Cancelling an In-Flight HTTP Request Shows a Cancellation Message and a Later Request Still Succeeds", async ({
|
||||
user,
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContentType } from "@package/enums/content-type";
|
||||
import { HttpMethod } from "@package/enums/http-method";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
import { HTTP_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
const bodyJsonPathFilter = "b64::JC5kYXRh::46b";
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
|
||||
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 { certPath } from "@package/misc/certs";
|
||||
import { DEFAULT_TIMEOUT, HTTP_SERVER_CUSTOM_CA_HTTPS, 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_CUSTOM_CA_HTTPS}/post`;
|
||||
|
||||
|
||||
@@ -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 { DEFAULT_TIMEOUT, 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 url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
+1
-2
@@ -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}/get`;
|
||||
|
||||
|
||||
@@ -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 { 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 Import from URL Moves Query String Into Params and Preserves It on Send", async ({
|
||||
user,
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContentType } from "@package/enums/content-type";
|
||||
import { HttpMethod } from "@package/enums/http-method";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
import { 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://[::1]:4060/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";
|
||||
|
||||
test("Verify Trailing Blank Row In Headers And Params Is Not Persisted Until Typed Into", async ({
|
||||
user,
|
||||
|
||||
@@ -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 { 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 url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
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 { certPath } from "@package/misc/certs";
|
||||
import { DEFAULT_TIMEOUT, HTTP_SERVER_MTLS, 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_MTLS}/post`;
|
||||
|
||||
|
||||
@@ -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, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import type { AuthTypeOAuth1 } from "@package/models/http-request";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
test("Verify OAuth 1.0 auth fields persist and sign the sent request", 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 { OAUTH2_CLIENT_ID, OAUTH2_CLIENT_SECRET, OAUTH2_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import type { AuthTypeOAuth2 } from "@package/models/http-request";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
for (const pkceMethod of ["S256", "plain"] as const) {
|
||||
test(`Verify Authorization Code grant with PKCE (${pkceMethod}) is verified server-side and authorizes the sent request`, async ({
|
||||
|
||||
@@ -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 { OAUTH2_CLIENT_ID, OAUTH2_CLIENT_SECRET, OAUTH2_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import type { AuthTypeOAuth2 } from "@package/models/http-request";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
test("Verify Authorization Code grant fetches tokens via a popup and authorizes the sent request", 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 { OAUTH2_CLIENT_ID, OAUTH2_CLIENT_SECRET, OAUTH2_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import type { AuthTypeOAuth2 } from "@package/models/http-request";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
test("Verify Client Credentials grant fetches tokens with no popup and authorizes the sent request", async ({
|
||||
user,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { AuthType } from "@package/enums/auth-type";
|
||||
import { HttpMethod } from "@package/enums/http-method";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
@@ -8,6 +6,7 @@ import { OAUTH2_CLIENT_ID, OAUTH2_CLIENT_SECRET, OAUTH2_SERVER, test } from "@pa
|
||||
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 a request set to Inherit from parent picks up its folder's OAuth 2.0 authentication", 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 { OAUTH2_CLIENT_ID, OAUTH2_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import type { AuthTypeOAuth2 } from "@package/models/http-request";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
test("Verify Implicit grant with response type ID Token fetches only an identity token", 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 { OAUTH2_CLIENT_ID, OAUTH2_CLIENT_SECRET, OAUTH2_PASSWORD, OAUTH2_SERVER, OAUTH2_USERNAME, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import type { AuthTypeOAuth2 } from "@package/models/http-request";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
test("Verify Resource Owner Password Credentials grant fetches tokens with no popup and authorizes the sent request", 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 { OAUTH2_CLIENT_ID, OAUTH2_CLIENT_SECRET, OAUTH2_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import type { AuthTypeOAuth2 } from "@package/models/http-request";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
test("Verify refreshing an existing OAuth 2.0 token issues a new access token without reopening the authorization window", async ({
|
||||
user,
|
||||
|
||||
+1
-2
@@ -1,12 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContentType } from "@package/enums/content-type";
|
||||
import { HttpMethod } from "@package/enums/http-method";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
import { HTTP_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
+1
-2
@@ -1,14 +1,13 @@
|
||||
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 { certPath } from "@package/misc/certs";
|
||||
import { DEFAULT_TIMEOUT, HTTP_SERVER_MTLS, 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_MTLS}/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";
|
||||
|
||||
test('Verify pre-request script manages cookies via insomnia.cookies.jar() and they are sent with the request', 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 url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
+1
-2
@@ -1,12 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContentType } from "@package/enums/content-type";
|
||||
import { HttpMethod } from "@package/enums/http-method";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
import { HTTP_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
+1
-2
@@ -1,12 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContentType } from "@package/enums/content-type";
|
||||
import { HttpMethod } from "@package/enums/http-method";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
import { HTTP_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
const url = `${HTTP_SERVER}/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 { 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 url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
+1
-2
@@ -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
-2
@@ -1,12 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContentType } from "@package/enums/content-type";
|
||||
import { HttpMethod } from "@package/enums/http-method";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
import { HTTP_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
const url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
@@ -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 body = `{"title": "${faker.string.alphanumeric(8)}"}`;
|
||||
|
||||
+1
-2
@@ -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, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import { EnvironmentKvPairDataType } from "@package/models/environment";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
test("Verify query params from the URL, template tags, and the Parameters tab are merged and special characters are escaped correctly", 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 url = `${HTTP_SERVER}/post`;
|
||||
|
||||
|
||||
@@ -3,14 +3,13 @@ import os from "node:os";
|
||||
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 { ResponseExportOption } from "@package/enums/response-export-option";
|
||||
import { DEFAULT_TIMEOUT, HTTP_SERVER, LONG_TIMEOUT, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
const LARGE_RESPONSE_BYTES = 5 * 1024 * 1024;
|
||||
|
||||
|
||||
@@ -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 the cookie Tag Reads a Value from a Linked Cookie", 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 Switching an Existing Tag's Argument Updates its Live Preview", async ({
|
||||
user,
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
import type { AWSCredentialType, HashiCorpCredentialType, HashiCorpVaultAuthMethod } from "insomnia-data";
|
||||
|
||||
import { ContentType } from "@package/enums/content-type";
|
||||
import { HttpMethod } from "@package/enums/http-method";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
@@ -9,6 +6,8 @@ import { HTTP_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import type { HttpRequest } from "@package/models/http-request";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
import type { AWSCredentialType, HashiCorpCredentialType, HashiCorpVaultAuthMethod } from "insomnia-data";
|
||||
|
||||
test("Verify AWS/GCP/HashiCorp Cloud Credentials Resolve via the Vault Template Tag", async ({
|
||||
user,
|
||||
|
||||
+1
-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 { test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
const filePath = path.join(import.meta.dirname, "fixture.txt");
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
test("Verify Inserting a Template Tag and Reading its Live Preview", 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 Header With a Templated Name Resolves and Sends Correctly", 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`;
|
||||
|
||||
|
||||
+1
-2
@@ -1,12 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContentType } from "@package/enums/content-type";
|
||||
import { HttpMethod } from "@package/enums/http-method";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
import { HTTP_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
test("Verify a prompt Tag Caches its Value Under the Storage Key Until it is Cleared", async ({
|
||||
user,
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { ContentType } from "@package/enums/content-type";
|
||||
import { HttpMethod } from "@package/enums/http-method";
|
||||
import { ProjectType } from "@package/enums/project-types";
|
||||
import { HTTP_SERVER, test } from "@package/misc/fixtures";
|
||||
import { Collection } from "@package/models/collection";
|
||||
import { Project } from "@package/models/project";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
test("Verify the response Tag's Trigger Behavior Controls When its Dependency Request is Resent", async ({
|
||||
user,
|
||||
|
||||
Reference in new issue
Block a user