GavinJoyce / ember-headlessui

https://gavinjoyce.github.io/ember-headlessui/
Other
92 stars 34 forks source link

Re-enable embroider testing #34, #33, #72 #93

Open NullVoxPopuli opened 3 years ago

NullVoxPopuli commented 3 years ago

Supersedes #72

NullVoxPopuli commented 3 years ago

ah, we have to resolve this:

- Global error: Uncaught ReferenceError: Ember is not defined at 
NullVoxPopuli commented 3 years ago

looks like we have to remove ember-test-selectors: image

(or PR to them and block this PR)

NullVoxPopuli commented 3 years ago

@GavinJoyce + @alexlafroscia + @achambers do ya'll have thoughts on leaving the test selectors in, and then providing a (fractal) page object in addon-test-support for enabling easier interaction with these components in consuming apps? so that way consumers don't all need to write their own test helpers. (or they could, and just ignore what is provided, like if they don't like fractal for whatever reason (I only mention fractal, because ember-cli-page-object does not work well with typescript, and is generally too dynamic)). Another option is go page-object agnostic, and "just use the js apis" (but then we don't have any integrated query selector nesting, which is mostly what the page object patterns are for anyway (I mean, secondary to providing a humanized API for component interaction, and abstracting away the DOM)

GavinJoyce commented 3 years ago

I'm all for providing useful test helpers to consuming apps. I've no experience with fractal page objects, but happy to use them if they provide consuming apps a nice test API

NullVoxPopuli commented 3 years ago

alright, next blocker: https://github.com/mixonic/ember-cli-deprecation-workflow/issues/133

alexlafroscia commented 3 years ago

My perspective on the test helpers: