Skip to content
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

Detect row count test selector to enable observers #893

Merged
merged 1 commit into from
Jul 23, 2021

Conversation

mixonic
Copy link
Member

@mixonic mixonic commented Jul 23, 2021

These observers were installed based on runInDebug. As ember-test-selectors uses its own configuable logic for when to strip test selectors, the two systems of "debug" mode can get out of sync.

For example, if you build Ember in a "test" environment but with a production Ember.js asset, then runInDebug is a no-op despite the test selectors being in place. You may configure Ember CLI this way if you want to ensure your application tests run in a mode similar to production.

Swap them to detect the attribute binding presence, which should not be there when ember-test-selectors is stripping selectors/bindings.

@mixonic mixonic force-pushed the mixonic/detect-test-selector-for-debug branch 2 times, most recently from 8ef0ffb to a90cadd Compare July 23, 2021 15:57
These observers were installed based on `runInDebug`. As
ember-test-selectors uses its own configuable logic for when to strip
test selectors, the two systems of "debug" mode can get out of sync.

For example, if you build Ember in a "test" environment but with a
production Ember.js asset, then `runInDebug` is a no-op despite the test
selectors being in place. You may configure Ember CLI this way if you
want to ensure your application tests run in a mode similar to
production.

Swap them to detect the attribute binding presence, which should not be
there when ember-test-selectors is stripping selectors/bindings.
@mixonic mixonic force-pushed the mixonic/detect-test-selector-for-debug branch from a90cadd to 1e8fddd Compare July 23, 2021 16:00
@mixonic mixonic marked this pull request as ready for review July 23, 2021 16:09
@mixonic mixonic merged commit e87992b into master Jul 23, 2021
@mixonic mixonic deleted the mixonic/detect-test-selector-for-debug branch July 23, 2021 16:14
Arijit-Roy pushed a commit to xomaczar/ember-table that referenced this pull request Sep 6, 2021
These observers were installed based on `runInDebug`. As
ember-test-selectors uses its own configuable logic for when to strip
test selectors, the two systems of "debug" mode can get out of sync.

For example, if you build Ember in a "test" environment but with a
production Ember.js asset, then `runInDebug` is a no-op despite the test
selectors being in place. You may configure Ember CLI this way if you
want to ensure your application tests run in a mode similar to
production.

Swap them to detect the attribute binding presence, which should not be
there when ember-test-selectors is stripping selectors/bindings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant