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
#3831 Add validation support for sub pipelines #3832
Changes from 7 commits
d391fa4
2abf181
422e069
9d3f648
d1c063d
134fd16
93524fa
21880be
f45bfbf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1443,7 +1443,49 @@ exports[`renders an extension with sub pipeline 1`] = ` | |
> | ||
<ul | ||
style="padding: 0px; margin: 0px; list-style: none;" | ||
/> | ||
> | ||
<li | ||
style="padding-top: 0.25em; padding-right: 0px; margin-left: 0.875em; word-wrap: break-word; padding-left: 1.25em; text-indent: -0.5em; word-break: break-all; white-space: pre-wrap;" | ||
> | ||
<label | ||
style="display: inline-block; color: rgb(66, 122, 245); margin: 0px 0.5em 0px 0px;" | ||
> | ||
<div> | ||
<span> | ||
@input | ||
</span> | ||
: | ||
<a | ||
aria-label="copy path" | ||
class="copyPath p-0 btn btn-text" | ||
href="#" | ||
role="button" | ||
> | ||
<svg | ||
aria-hidden="true" | ||
class="svg-inline--fa fa-copy fa-w-14 " | ||
data-icon="copy" | ||
data-prefix="fas" | ||
focusable="false" | ||
role="img" | ||
viewBox="0 0 448 512" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
</a> | ||
</div> | ||
</label> | ||
<span | ||
style="color: rgb(241, 89, 80);" | ||
> | ||
undefined | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it supposed to print There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep, in the test. this is the @input of the extension reported to the Data Panel. normally it is the HTML document meta data, but in the test there's no document and we get |
||
</span> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
|
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.
Does this work for you? I think I tried this before and it didn't work. Doesn't it have to be top-level in the file? Also it just applies to the current file so I don't think you have to "clean it up" and set it back to the previous value? I may be wrong here but this is exactly what I tried to do at first and it wasn't working.
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.
It works for me, yes. Maybe it was failing for you because of jest cache. You can clear it with jest flag:
--clearCache
. With npm it is:npm run test -- --clearCache
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.
As long as this works locally and on CI, then I'm fine with it. Just surprising since it wasn't working when I tried it like that.
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.
Never mind, I've reverted this change