bahmutov / cypress-svelte-unit-test

Unit testing Svelte components in Cypress E2E test runner
162 stars 21 forks source link

CSS files are loaded after creating component #220

Open bielinskim opened 3 years ago

bielinskim commented 3 years ago

Hello,

the issue concerns order of code execution. As i understand CSS files should be loaded before creating component. Actually they are loaded after(code after injectStylesBeforeElement(index file) function is executed before cy.readFile from insertSingleCssFile function(utils file)). It sometimes causes incorrect elements view.

JohnnyFun commented 3 years ago

Can you provide a more detailed example?