-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Snippets support angle bracket invocation #421
Snippets support angle bracket invocation #421
Conversation
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.
LGTM! @dfreeman do these tests thoroughly test what you were looking for?
let demo = '[data-test-id="your-angle-bracket-snippet-name.hbs"] ~ *:not([data-test-id])'; | ||
let secondDemo = `${demo}:last-child`; |
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.
Let me note that I wanted to use the examples from the docs (or I'm just lazy) and the <DocsDemo />
components don't provide with data-test-id
s and I couldn't quickly find a better way to target them.
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.
Yes, this is fantastic! Thank you so much for knocking this out, @abel-n 🎉
I think this commit has introduced a test failure in master. Running The issue seems to be something to do with the |
I think I found the source of the issue, it's in the commit before this merge commit and the Copy button actually doesn't work in |
Opened a PR for that. |
Thanks man! |
Notes
Fixes #420
Closes #342
Based on info in nosloush's PR, especially dfreeman's suggestion
Demo