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

No styles in integration tests #935

Open
mydea opened this issue May 10, 2022 · 0 comments
Open

No styles in integration tests #935

mydea opened this issue May 10, 2022 · 0 comments

Comments

@mydea
Copy link
Contributor

mydea commented May 10, 2022

I noticed that in our app (running latest ember-cli & embroider), in integration tests no styles are loaded. You can see in the preview window that everything is just using the default browser CSS. In application tests, CSS is loaded & applied correctly.

So basically, I have a setupRenderingTest() test rendering a single component, that is rendered with no styles.

I am not 100% sure, but I think this used to be different? I looked but couldn't really find anything if that has changed, or if there is a way to change this. Maybe it was just my imagination that is used to be different, but either way, it would be nice to at least have the possibility to render a component with styles, I guess?

Basically, I am currently trying to write a test for some more complicated UI components that resize in certain ways, and it is kind of impossible to do that properly without the CSS being applied to them 😅

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

No branches or pull requests

1 participant