-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
fix(editor): Fix workflow initilisation for test definition routes & add unit tests #12507
Conversation
…ditView and remove tooltips
…for test definitions, make sure to initialize workflow on the root route
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Only one minor comment, feel free to disregard
|
||
async function initWorkflow() { | ||
const workflowId = router.currentRoute.value.params.name as string; | ||
const isAlreadyInitialized = workflowStore.workflow.id === workflowId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be already in the process of fetching workflow at this point? isAlreadyInitialized
will still be false in that case and the second request will be triggered.
✅ All Cypress E2E specs passed |
n8n Run #8663
Run Properties:
|
Project |
n8n
|
Branch Review |
ai-567-update-ui-copy
|
Run status |
Passed #8663
|
Run duration | 04m 55s |
Commit |
034d247ae7: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 OlegIvaniv 🗃️ e2e/*
|
Committer | Oleg Ivaniv |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
489
|
View all changes introduced in this branch ↗︎ |
Summary
This PR improves the Test Definition UI by:
TestDefinitionRootView
component to properly initialize workflows and handle nested routingNodesPinning
andTestDefinitionRootView
componentsRelated Linear tickets, Github issues, and Community forum posts
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)