Skip to content

Commit

Permalink
test/cypress/support: fix import material-symbols-sharp icon set
Browse files Browse the repository at this point in the history
Error related with upgrade Quasar framework lib to 2.17.2 version

Fix run Cypress component tests.

Cypress component tests error:

```
 1) An uncaught error was detected outside of a test

  0 passing (92ms)
  1 failing

  1) An uncaught error was detected outside of a test:
     TypeError: The following error originated from your test code, not from Cypress.

  > window.Quasar is undefined

When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.

Cypress could not associate this error to any specific test.

We dynamically generated a new test to display this failure.
  at node_modules/quasar/dist/icon-set/material-symbols-sharp.umd.prod.js (http://localhost:9000/__cypress/src/node_modules/.q-cache/vite/spa/deps/quasar_dist_icon-set_material-symbols-sharp_umd_prod.js?v=9d544864:11:7)
  at node_modules/quasar/dist/icon-set/material-symbols-sharp.umd.prod.js (http://localhost:9000/__cypress/src/node_modules/.q-cache/vite/spa/deps/quasar_dist_icon-set_material-symbols-sharp_umd_prod.js?v=9d544864:12:7)
  at __init (http://localhost:9000/__cypress/src/node_modules/.q-cache/vite/spa/deps/chunk-J43GMYXM.js?v=c246f036:8:56)
  at <unknown> (http://localhost:9000/__cypress/src/node_modules/.q-cache/vite/spa/deps/quasar_dist_icon-set_material-symbols-sharp_umd_prod.js?v=9d544864:17:69)
```
  • Loading branch information
tmszi committed Nov 13, 2024
1 parent 7463bd0 commit 60674b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cypress/support/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import '@quasar/extras/ionicons-v4';
import '@quasar/extras/ionicons-v4/ionicons-v4.css';
import '@quasar/extras/fontawesome-v5';
import '@quasar/extras/fontawesome-v5/fontawesome-v5.css';
import 'quasar/dist/icon-set/material-symbols-sharp.umd.prod';
import '@quasar/extras/material-symbols-sharp';
import '@quasar/extras/material-symbols-sharp/material-symbols-sharp.css';

import { installQuasarPlugin } from '@quasar/quasar-app-extension-testing-e2e-cypress';
Expand Down

0 comments on commit 60674b4

Please sign in to comment.