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

chore: Add more e2e Sub-Workflow Input testing #12308

Merged
merged 17 commits into from
Dec 19, 2024

Conversation

CharlieKolb
Copy link
Contributor

Summary

Test json mode and add WIP test for type option flags and resourceMapper fields.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/ADO-2915/add-tests-for-the-feature

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Dec 19, 2024
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@MiloradFilipovic MiloradFilipovic left a comment

Choose a reason for hiding this comment

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

Looks, good. Left a comment to consider.

@@ -83,6 +93,21 @@ function navigateWorkflowSelectionDropdown(index: number, expectedText: string)
.click();
}

function populateMapperFields(values: readonly string[], offset: number) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to move these local functions to actions (maybe here)? I know these pages are getting out of hand (we can maybe create a new one just for RMC), so feel free to push back, but I am worried about mixing actions and utli functions to do the same thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, strongly agree with this needing a refactor before (maybe master) merge, I'm defining them as I'm iterating for now. I'm also not happy with the sub-functions I'm defining in the big test case.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, we have it in few other places, it's not a bad pattern to be honest it's just about consistency. But, looks like a big push to get e2e tests in order is around the corner so good to go like this

@CharlieKolb CharlieKolb marked this pull request as ready for review December 19, 2024 14:54
@CharlieKolb CharlieKolb merged commit 4b5b5f8 into feature-sub-workflow-inputs Dec 19, 2024
44 checks passed
@CharlieKolb CharlieKolb deleted the subworkflow_e2e_2 branch December 19, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants