mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
test: Migrate 3 specs from Cypress - Playwright (#19269)
This commit is contained in:
@@ -26,9 +26,9 @@ export class TestEntryComposer {
|
||||
}
|
||||
|
||||
/**
|
||||
* Start UI test from a workflow in a new project
|
||||
* Start UI test from a workflow in a new project on a new canvas
|
||||
*/
|
||||
async fromNewProject() {
|
||||
async fromNewProjectBlankCanvas() {
|
||||
// Enable features to allow us to create a new project
|
||||
await this.n8n.api.enableFeature('projectRole:admin');
|
||||
await this.n8n.api.enableFeature('projectRole:editor');
|
||||
@@ -43,6 +43,20 @@ export class TestEntryComposer {
|
||||
return projectId;
|
||||
}
|
||||
|
||||
async fromNewProject() {
|
||||
// Enable features to allow us to create a new project
|
||||
await this.n8n.api.enableFeature('projectRole:admin');
|
||||
await this.n8n.api.enableFeature('projectRole:editor');
|
||||
await this.n8n.api.setMaxTeamProjectsQuota(-1);
|
||||
|
||||
// Create a project using the API
|
||||
const response = await this.n8n.api.projectApi.createProject();
|
||||
|
||||
const projectId = response.id;
|
||||
await this.n8n.navigate.toProject(projectId);
|
||||
return projectId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Start UI test from the canvas of an imported workflow
|
||||
* Returns the workflow import result for use in the test
|
||||
|
||||
Reference in New Issue
Block a user