Skip to content

Commit

Permalink
avoid relying on new-project-modal and match more specific elements
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-cavazzi committed Jan 31, 2025
1 parent 38bc119 commit ac463a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress-tests/cypress/e2e/v2/projectBasics.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ describe("Project - create, edit and delete", () => {
const username = user.username;
cy.getDataCy("navbar-new-entity").click();
cy.getDataCy("navbar-project-new").click();
cy.getDataCy("new-project-modal").should("exist");
cy.getDataCy("project-creation-form").should("exist");
cy.getDataCy("project-name-input").type(projectName);
cy.getDataCy("project-slug-toggle").click();
cy.getDataCy("project-slug-input").should("have.value", projectPath);
cy.getDataCy("project-visibility-public").click();
cy.getDataCy("project-description-input").type(projectDescription);
cy.getDataCy("new-project-modal").contains(
`The URL for this project will be renkulab.io/v2/projects/${username}/${projectPath}`
cy.getDataCy("project-url-preview").contains(
`/${username}/${projectPath}`
);
cy.intercept("POST", /(?:\/ui-server)?\/api\/data\/projects/).as("createProject");
cy.getDataCy("project-create-button").click();
Expand Down

0 comments on commit ac463a6

Please sign in to comment.