-
Notifications
You must be signed in to change notification settings - Fork 41
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
data-test selectors are not stripped from colocated component templates #427
Comments
I honestly have no idea what to do about this. @chancancode @rwjblue any clues? |
I assume this is implanted as an AST transform? Sounds like that is not being run for some reason? What version of ember-cli-htmlbars? |
we're still on v3 of htmlbars since we haven't dropped Node 6 support yet 🤔 |
I would think that it’s the app’s ember-cli-htmlbars version that matters in this case, but I’m not totally sure. @rwjblue? |
I would assume that co-location wouldn't work at all then 🤔 |
@kpfefferle - What ember-cli-htmlbars version is your application using? There were a number of bugs in the implementation around AST plugins not running properly, but as far as I can tell all reported issues have been addressed and things are working properly with the latest release (v4.0.8 atm). If you are on the latest version, I'm happy to dig into a reproduction. |
@rwjblue Our application is using |
@kpfefferle any news on this? |
@Turbo87 I can confirm I'm still seeing this issue when building our app for production. I haven't had the bandwidth to try and reproduce in a new sharable Octane app yet. |
Please let us know, I'm very interested in figuring out what is going on here. There were absolutely bugs in the early 4.x series that caused AST plugins to not be ran properly, but as far as I can tell (from issues reported over there) they have all been addressed. |
ran into this issue. anything I can to to get this moving along or is someone already digging into it? |
a reproduction repository with instructions would be good :) |
@Turbo87 will this work? |
I am experiencing this as well. All packages are on latest possible versions, except maybe some transitive dependencies. |
This is still an issue with a brand new ember app today. I put some debuggers in @void-mAlex's reproduction (and a nearly identical one with a brand new app). All the options seem to be working, but https://github.com/simplabs/ember-test-selectors/blob/master/strip-test-selectors.js#L16 is never called. --edit-- |
I can confirm that @rwjblue any ideas? |
@Turbo87 Just wondering if there has been any progress on figuring this one out? |
not from my side. I think it's a bug in the build pipeline somewhere, but not related to the implementation here. |
ZOMG, I spent a while debugging this 😭, and have a fix. Basically, what is happen (in order) is:
Specifically, the babel config is already locked down before The simplest fix, is to ensure that |
FWIW, I'm working on adding some additional logging in ember-cli-htmlbars to make debugging things like this a bit easier: ember-cli/ember-cli-htmlbars#547. |
I noticed that not all
data-test-*
selectors are being stripped from my production build. It seems that the commonality among those that remain is that the selectors that remain are all from component templates that are using the new colocated component file structure (i.e. having thecomponent.hbs
file inside theapp/component
directory alongside the correspondingcomponent.js
file.The text was updated successfully, but these errors were encountered: