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

fix: Remove #ember-testing ID from cloned DOM #206

Merged
merged 2 commits into from
May 13, 2020

Conversation

Robdel12
Copy link
Contributor

What is this?

This will be a much better method of removing the styles Ember adds to distort/shrink the app into the smaller test container.

The previous way would set inline !important styles which can cause issues. It's just better to rip that attribute out that's setting the styles.

This will be a much better method of removing the styles Ember adds to
distort/shrink the app into the smaller test container.
@Robdel12 Robdel12 requested a review from wwilsman May 13, 2020 20:47
Copy link
Contributor

@wwilsman wwilsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎮

@Robdel12 Robdel12 merged commit 61dae7e into master May 13, 2020
@delete-merged-branch delete-merged-branch bot deleted the rd/remove-ember-testing-id-in-clone branch May 13, 2020 21:06
@ijlee2
Copy link

ijlee2 commented May 20, 2020

Another approach may be to add .full-screen to the #ember-testing-container. This let me get correct snapshots when I looked at running tests at various resolutions.

https://github.com/emberjs/ember-qunit/blob/master/vendor/ember-qunit/test-container-styles.css#L32-L44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants