MCPcopy Create free account
hub / github.com/Kong/insomnia / createProject

Method createProject

packages/insomnia-test/flows/workspace.flow.ts:47–59  ·  view source on GitHub ↗
(item: Project)

Source from the content-addressed store, hash-verified

45 */
46 @step()
47 async createProject(item: Project): Promise<Project> {
48 const workspace = this.pageManager.workspacePage;
49 const projectPage = this.pageManager.projectPage;
50 await projectPage.clickNewProject();
51 await workspace.setNewItemName(item.name);
52 await projectPage.setNewProjectType(item.type);
53 // Project creation also provisions the project's NeDB records before
54 // the dialog closes, which has been observed to run past the default
55 // UI-only timeout under CI load — give it the same extra room as a
56 // Git-backed collection's create dialog.
57 await workspace.clickCreate(DEFAULT_TIMEOUT * 2);
58 return this.assertCreated(await this.getProject(item.name), item.name);
59 }
60
61 /**
62 * Creates a Collection under `parent`. If it carries a `spec`, authors

Calls 5

getProjectMethod · 0.95
setNewItemNameMethod · 0.80
setNewProjectTypeMethod · 0.80
clickCreateMethod · 0.80
clickNewProjectMethod · 0.45

Tested by

no test coverage detected