diff --git a/cypress.config.js b/cypress.config.js
index 2388d293a..251b18758 100644
--- a/cypress.config.js
+++ b/cypress.config.js
@@ -22,6 +22,7 @@ module.exports = defineConfig({
},
component: {
+ specPattern: 'test/cypress/components/*.spec.js',
devServer: {
framework: 'vue',
bundler: 'vite',
diff --git a/src/components/CreateBankEntityForm.vue b/src/components/CreateBankEntityForm.vue
index b2c5226e6..038a8f2df 100644
--- a/src/components/CreateBankEntityForm.vue
+++ b/src/components/CreateBankEntityForm.vue
@@ -4,8 +4,8 @@ import { useI18n } from 'vue-i18n';
import VnInput from 'src/components/common/VnInput.vue';
import VnSelect from 'src/components/common/VnSelect.vue';
-import FetchData from 'components/FetchData.vue';
-import VnRow from 'components/ui/VnRow.vue';
+import FetchData from 'src/components/FetchData.vue';
+import VnRow from 'src/components/ui/VnRow.vue';
import FormModelPopup from './FormModelPopup.vue';
defineProps({ showEntityField: { type: Boolean, default: true } });
diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue
index 2c2acb61c..b8e97bf36 100644
--- a/src/components/FormModel.vue
+++ b/src/components/FormModel.vue
@@ -5,10 +5,10 @@ import { onBeforeRouteLeave } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { useQuasar } from 'quasar';
import { useState } from 'src/composables/useState';
-import { useStateStore } from 'stores/useStateStore';
+import { useStateStore } from 'src/stores/useStateStore';
import { useValidator } from 'src/composables/useValidator';
import useNotify from 'src/composables/useNotify.js';
-import SkeletonForm from 'components/ui/SkeletonForm.vue';
+import SkeletonForm from 'src/components/ui/SkeletonForm.vue';
import VnConfirm from './ui/VnConfirm.vue';
import { tMobile } from 'src/composables/tMobile';
diff --git a/src/components/FormModelPopup.vue b/src/components/FormModelPopup.vue
index 25213a8b7..0ce702ff7 100644
--- a/src/components/FormModelPopup.vue
+++ b/src/components/FormModelPopup.vue
@@ -2,7 +2,7 @@
import { ref, computed } from 'vue';
import { useI18n } from 'vue-i18n';
-import FormModel from 'components/FormModel.vue';
+import FormModel from 'src/components/FormModel.vue';
const emit = defineEmits(['onDataSaved']);
diff --git a/test/cypress/components/CreateBankEntityForm.spec.js b/test/cypress/components/CreateBankEntityForm.spec.js
new file mode 100644
index 000000000..0248c9546
--- /dev/null
+++ b/test/cypress/components/CreateBankEntityForm.spec.js
@@ -0,0 +1,8 @@
+import CreateBankEntityForm from 'src/components/CreateBankEntityForm.vue';
+
+describe('', () => {
+ it('renders', () => {
+ // see: https://on.cypress.io/mounting-vue
+ cy.mount(CreateBankEntityForm);
+ });
+});
diff --git a/test/cypress/components/VnSelect.spec.js b/test/cypress/components/VnSelect.spec.js
new file mode 100644
index 000000000..ec0eebec9
--- /dev/null
+++ b/test/cypress/components/VnSelect.spec.js
@@ -0,0 +1,8 @@
+import VnSelect from 'src/components/common/VnSelect.vue';
+
+describe('', () => {
+ it('renders', () => {
+ // see: https://on.cypress.io/mounting-vue
+ cy.mount(VnSelect);
+ });
+});
diff --git a/test/cypress/integration/common/VnTitle.js b/test/cypress/components/VnTitle.spec.js
similarity index 56%
rename from test/cypress/integration/common/VnTitle.js
rename to test/cypress/components/VnTitle.spec.js
index 45a49a698..72154348e 100644
--- a/test/cypress/integration/common/VnTitle.js
+++ b/test/cypress/components/VnTitle.spec.js
@@ -1,14 +1,13 @@
-import VnTitle from '@/components/common/VnTitle.vue';
+import VnTitle from 'src/components/common/VnTitle.vue';
describe('', () => {
it('renders', () => {
// see: https://on.cypress.io/mounting-vue
- cy.mount(VnTitle,{
- props:{
- url:'url',
+ cy.mount(VnTitle, {
+ props: {
+ url: 'url',
title: 'title',
-
- }
+ },
});
console.log(VnTitle);
});
diff --git a/vite.config.js b/vite.config.js
index 69726edd9..be4fba284 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -8,7 +8,7 @@ export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url)),
+ src: fileURLToPath(new URL('./src', import.meta.url)),
},
},
});