From 4ba8efaf807a64d686f2ff776e16da227e5ccc51 Mon Sep 17 00:00:00 2001 From: Bob Qiu Date: Wed, 4 Nov 2026 10:45:11 +0800 Subject: [PATCH] test(insomnia-test): align 4-workspace with pruned e2e-1 base Co-Authored-By: Claude Sonnet 5.5 --- .../tests/document/spectral-lint-errors.spec.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/insomnia-test/tests/document/spectral-lint-errors.spec.ts b/packages/insomnia-test/tests/document/spectral-lint-errors.spec.ts index 8ca6a7e85d..0049c8d902 100644 --- a/packages/insomnia-test/tests/document/spectral-lint-errors.spec.ts +++ b/packages/insomnia-test/tests/document/spectral-lint-errors.spec.ts @@ -1,6 +1,7 @@ import { faker } from "@faker-js/faker"; import { LintSeverity } from "@package/enums/lint-severity"; 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 { Project } from "@package/models/project"; @@ -16,6 +17,19 @@ test("Verify Spectral Lint Errors Surface With A Line Reference", async ({ new Project(faker.string.alphanumeric(10), ProjectType.Local), ); + const projectNode = (await workspacePage.findItemNode( + project, + TreeNodeType.Project, + ))!; + await workspacePage.expand(projectNode); + const projectChildren = (await workspacePage.getTree()) + .flatten() + .find((node) => node._id === projectNode._id)!.children; + expect(projectChildren.map((node) => node._id)).toEqual([ + `empty-project-${projectNode._id}`, + ]); + expect(projectChildren[0].type).toBe(TreeNodeType.Empty); + await workspaceFlow.createInEmptyState( project, new Collection(faker.string.alphanumeric(10)),