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

Clean up tests ahead of offset fixes #950

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

mixonic
Copy link
Member

@mixonic mixonic commented May 6, 2022

In many places across ember-table's test suite, the idea of an element's logical size (they width according to styles) and the element's rendered size (for example after scaling in the test container) is confused. This is further entangled with mouse operations like drag, which should emit cursor position atop rendered coordinates although the test may be written with logical units in mind.

This PR refactors the header/column reorder and resize tests to use helpers with clearer names and improved implementations. It should improve compatibility of the test suite with upcoming changes to how scale is calculated.

Largely, these are the test changes needed to get #948 closer to green.

@mixonic mixonic force-pushed the mixonic/tests-ahead-of-offset-fix branch 3 times, most recently from 38c1853 to db65823 Compare May 6, 2022 20:26
Base automatically changed from 4.0-beta to master May 18, 2022 13:34
@mixonic mixonic force-pushed the mixonic/tests-ahead-of-offset-fix branch 2 times, most recently from e63c773 to b898634 Compare May 19, 2022 20:35
@mixonic mixonic force-pushed the mixonic/tests-ahead-of-offset-fix branch from b898634 to 955b8b9 Compare May 19, 2022 21:04
@mixonic mixonic marked this pull request as ready for review May 19, 2022 21:13
@mixonic mixonic merged commit cafec13 into master Jul 22, 2022
@mixonic mixonic deleted the mixonic/tests-ahead-of-offset-fix branch July 22, 2022 16:35
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.

1 participant