Skip to content

No styles in integration tests #935

Description

@mydea

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 😅

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions