I have a vue-cli project. I've set successfully the cypress component test runner using the official documentation: https://docs.cypress.io/guides/component-testing/introduction. Now I have a problem using icon fonts that are delivered in my app through CDN links (namely fontawesome and mdi icons), included in my index.html. One of these links, for ex.:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css" />
Since the component test runner does not load the index.html
, the icons are missing and some functionalities cannot be tested. And I haven't found a place were I can include these links (Importing them in every <component>.vue
file is not a solution).
Does anyone have a solution to this problem?
NB: I don't want to install npm packages of those frameworks. I need to use the CDN delivered versions.