Repository navigation
Add a cypress test for testing project basic operations: create, edit, delete - #3881
lorenzo-cavazzi merged 7 commits into
Conversation
|
You can access the deployment of this PR at https://ci-renku-3881.dev.renku.ch |
| 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}` |
There was a problem hiding this comment.
Oh my, oh my, oh my, this is actually hard-coded 🙈 Ouch! 🤕
There was a problem hiding this comment.
There was a problem hiding this comment.
Please remove or comment this test.
There was a problem hiding this comment.
I am checking to ensure we are showing the correct expected URL.
What would be a reasonable alternative here? Perhaps just /${username}/${projectPath}?
There was a problem hiding this comment.
Maybe test that for now and have a comment. Also, that URL WILL be different at the end of this build cycle.
There was a problem hiding this comment.
Oh, true. I made this more resilient to the URL changes and, following your other suggestion on dropping the matcher for new-project-modal, I now match the URL element more precisely 2061f52
leafty
left a comment
There was a problem hiding this comment.
Thanks for adding this! 👏
Some comments below.
|
@leafty thank you for the review! |
| const username = user.username; | ||
| cy.getDataCy("navbar-new-entity").click(); | ||
| cy.getDataCy("navbar-project-new").click(); | ||
| cy.getDataCy("new-project-modal").should("exist"); |
There was a problem hiding this comment.
From the data-cy conversation, I think we should instead check against the presence of a new project form and not a modal. The fact that the form is presented inside a modal is not important and could change (a page, an off canvas, etc.) but there should always be a data-cy=new-project-form element presented to the user.
There was a problem hiding this comment.
Yes, this makes sense! I dropped the use of new-project-modal and match the form instead 2061f52
aa689e2 to
cbe29dc
Compare
2061f52 to
ac463a6
Compare
* Add prettier and update linter configuration * Fix setting up baseUrl when running on cli * Test project basic operations: create, edit, delete (#3881, #3908) * Test working on groups: create, edit, delete (#3883, #3908) * Test project resources -- code, data, environments (#3894) * Test search entities (#3904) * Test anonymous users navigation (#3906) * Test running sessions (#3912) * Update the cypress tests readme file (#3884) * Split v2 and legacy cypress tests, improve naming (#3926) --------- Co-authored-by: Tasko Olevski <[email protected]> Co-authored-by: Rok Roškar <[email protected]>
* chore: create release 0.65.0 * chore(ci): update renku actions to v1.14.0 (#3886) Co-authored-by: Lorenzo Cavazzi <[email protected]> * fix: update csi rclone to 0.3.6 (#3889) * chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in /cypress-tests (#3888) Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](micromatch/braces@3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump cross-spawn from 7.0.3 to 7.0.6 in /cypress-tests (#3840) Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6. - [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md) - [Commits](moxystudio/node-cross-spawn@v7.0.3...v7.0.6) --- updated-dependencies: - dependency-name: cross-spawn dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rok Roškar <[email protected]> Co-authored-by: Lorenzo Cavazzi <[email protected]> * Merge branch 'master' into release-0.65.0 (#3895) * feat(helm): Make Jena passwords optional in values file. This commit continues on the topic of making the definition of the secrets in the values files optional, to simplify CI deployments. As previous similar commits this change supports: - Existing deployments where the secret is defined will keep working as usual - New deployments where the secret is defined will keep working as they did before this change - New deployments where the secret is NOT defined will get 2 random passwords which will be persisted across upgrades/redeployments The three scenarios have been manually tested. * feat: Make Redis and OIDC client secrets optional. These are the last two secrets that were needed to be generated out-of-bands before deploying Renkulab. Thus the `generate-values` script is not really necessary anymore and in its place there is a `minimal-deployment` values file that in a future commit will also be used as a base for CI deployments. The documentation has been updated to reflect the removal of the script. Further cleanup and simplification of the Helm chart will result in a smaller and simpler minimum-deployment file, with the ultimate goal of being able to issue `helm install renku/renku` resulting in a functioning development deployment. * feat: Define some more sensible defaults. * feat: Configure data-services to connect to solr (#3918) * chore(ci): update renku actions to v1.14.1 (#3927) Co-authored-by: Lorenzo Cavazzi <[email protected]> * chore: update renku-ui to 3.47.0 (#3930) * revert: Configure data services to connect to solr Refs: e831264 * tests: add cypress tests for Renku 2.0 (#3879) * Add prettier and update linter configuration * Fix setting up baseUrl when running on cli * Test project basic operations: create, edit, delete (#3881, #3908) * Test working on groups: create, edit, delete (#3883, #3908) * Test project resources -- code, data, environments (#3894) * Test search entities (#3904) * Test anonymous users navigation (#3906) * Test running sessions (#3912) * Update the cypress tests readme file (#3884) * Split v2 and legacy cypress tests, improve naming (#3926) --------- Co-authored-by: Tasko Olevski <[email protected]> Co-authored-by: Rok Roškar <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Lorenzo Cavazzi <[email protected]> Co-authored-by: Tasko Olevski <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rok Roškar <[email protected]> Co-authored-by: Alessandro Degano <[email protected]> Co-authored-by: eikek <[email protected]> Co-authored-by: Chandrasekhar Ramakrishnan <[email protected]> Co-authored-by: Tasko Olevski <[email protected]>
* chore: create release 0.65.0 * chore(ci): update renku actions to v1.14.0 (#3886) Co-authored-by: Lorenzo Cavazzi <[email protected]> * fix: update csi rclone to 0.3.6 (#3889) * chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in /cypress-tests (#3888) Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](micromatch/braces@3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump cross-spawn from 7.0.3 to 7.0.6 in /cypress-tests (#3840) Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6. - [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md) - [Commits](moxystudio/node-cross-spawn@v7.0.3...v7.0.6) --- updated-dependencies: - dependency-name: cross-spawn dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rok Roškar <[email protected]> Co-authored-by: Lorenzo Cavazzi <[email protected]> * Merge branch 'master' into release-0.65.0 (#3895) * feat(helm): Make Jena passwords optional in values file. This commit continues on the topic of making the definition of the secrets in the values files optional, to simplify CI deployments. As previous similar commits this change supports: - Existing deployments where the secret is defined will keep working as usual - New deployments where the secret is defined will keep working as they did before this change - New deployments where the secret is NOT defined will get 2 random passwords which will be persisted across upgrades/redeployments The three scenarios have been manually tested. * feat: Make Redis and OIDC client secrets optional. These are the last two secrets that were needed to be generated out-of-bands before deploying Renkulab. Thus the `generate-values` script is not really necessary anymore and in its place there is a `minimal-deployment` values file that in a future commit will also be used as a base for CI deployments. The documentation has been updated to reflect the removal of the script. Further cleanup and simplification of the Helm chart will result in a smaller and simpler minimum-deployment file, with the ultimate goal of being able to issue `helm install renku/renku` resulting in a functioning development deployment. * feat: Define some more sensible defaults. * feat: Configure data-services to connect to solr (#3918) * chore(ci): update renku actions to v1.14.1 (#3927) Co-authored-by: Lorenzo Cavazzi <[email protected]> * chore: update renku-ui to 3.47.0 (#3930) * revert: Configure data services to connect to solr Refs: e831264 * tests: add cypress tests for Renku 2.0 (#3879) * Add prettier and update linter configuration * Fix setting up baseUrl when running on cli * Test project basic operations: create, edit, delete (#3881, #3908) * Test working on groups: create, edit, delete (#3883, #3908) * Test project resources -- code, data, environments (#3894) * Test search entities (#3904) * Test anonymous users navigation (#3906) * Test running sessions (#3912) * Update the cypress tests readme file (#3884) * Split v2 and legacy cypress tests, improve naming (#3926) --------- Co-authored-by: Tasko Olevski <[email protected]> Co-authored-by: Rok Roškar <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Lorenzo Cavazzi <[email protected]> Co-authored-by: Tasko Olevski <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rok Roškar <[email protected]> Co-authored-by: Alessandro Degano <[email protected]> Co-authored-by: eikek <[email protected]> Co-authored-by: Chandrasekhar Ramakrishnan <[email protected]> Co-authored-by: Tasko Olevski <[email protected]>
See title
/deploy renku-ui=lorenzo/cypress-renku-2.0-data-cy
fix #3880