mirror of
https://github.com/Kong/insomnia.git
synced 2026-11-04 20:13:48 -05:00
test(insomnia-test): align 4-workspace with pruned e2e-1 base
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
020120c88c
commit
ce28b31c38
1 file changed
+14
@@ -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)),
|
||||
|
||||
Reference in new issue
Block a user