Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shape Up #1 - e2e tests #2099

Merged
merged 2 commits into from
Nov 4, 2022
Merged

Conversation

lorenzo-cavazzi
Copy link
Member

@lorenzo-cavazzi lorenzo-cavazzi commented Oct 27, 2022

Covering the basic workflows functionalities with e2e tests
/deploy renku-core=develop renku=000-fix-acceptance-tests-after-changing-gitlab-url #persist extra-values=gateway.gitlabUrl=https://gitlab.dev.renku.ch/

@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2099 October 27, 2022 15:43 Inactive
@RenkuBot
Copy link
Contributor

You can access the deployment of this PR at https://renku-ci-ui-2099.dev.renku.ch

Base automatically changed from shapeup1-fixes5 to shapeup1-workflows-ui October 28, 2022 09:21
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2099 October 31, 2022 16:44 Inactive
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2099 November 1, 2022 17:27 Inactive
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2099 November 2, 2022 16:58 Inactive
@lorenzo-cavazzi lorenzo-cavazzi marked this pull request as ready for review November 2, 2022 16:58
@lorenzo-cavazzi lorenzo-cavazzi requested a review from a team as a code owner November 2, 2022 16:58
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2099 November 2, 2022 22:06 Inactive
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2099 November 2, 2022 22:25 Inactive
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2099 November 3, 2022 15:57 Inactive
Copy link
Contributor

@andre-code andre-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for covering all those cases 🙌, I see almost everything covered, the only case missing would be filtering by disabled workflows. I see the code fine, I only found two small suggestions for changes.

@@ -574,7 +577,7 @@ function WorkflowDetailVisualizer({
return (<div className="workflows-detail-table">
<Row>
<WorkflowVisualizerSimpleBox title="Inputs">
<VisualizerCommandEntities data={details.inputs} expanded={expanded}
<VisualizerCommandEntities data-cy="AAA" data={details.inputs} expanded={expanded}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What means AAA? could we use a more intuitive variable here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that slipped in! It was a test I forgot to clean up 🤦 Thanks for spotting it!

getWorkflows(resultFile = "workflows/workflows-list-links-mappings.json") {
cy.intercept(
"/ui-server/api/renku/*/workflow_plans.list?*",
{ fixture: resultFile }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please use this.useMockedData to indicate if the mocked file is used or not, so far we have not implemented the switch between mocked or not but we prefer to write the test including that variable to ease the transition.

const fixture = this.useMockedData ? { fixture: resultFile } : undefined;

@lorenzo-cavazzi
Copy link
Member Author

Thank you for the review! I fixed the 2 points you pointed out

@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2099 November 3, 2022 16:16 Inactive
Copy link
Contributor

@andre-code andre-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@lorenzo-cavazzi lorenzo-cavazzi merged commit 9ddc1a3 into shapeup1-workflows-ui Nov 4, 2022
@lorenzo-cavazzi lorenzo-cavazzi deleted the shapeup1-tests branch November 4, 2022 09:39
@RenkuBot
Copy link
Contributor

RenkuBot commented Nov 4, 2022

Tearing down the temporary RenkuLab deplyoment for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants