Course lesson

Setup Global CSS Properties for Cypress Component Tests

Importing styles is going to be essential for all of our components to render properly. We will do this similarly as we do in our application - at top level. component.ts file is the proper file for this, as this is the one that gets loaded before running our...

Duration
1 min
Access
Included
Transcript
Retained from source evidence

Importing styles is going to be essential for all of our components to render properly. We will do this similarly as we do in our application - at top level. component.ts file is the proper file for this, as this is the one that gets loaded before running our specs. Importing our index.css file here will make all of our components render with the correct styles.