(item: Project)
| 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 |
no test coverage detected