WIP: #7220 - Component Unit Cypress Test #296

Draft
jsegarra wants to merge 33 commits from 7220_cypressUnitTest into dev
91 changed files with 182 additions and 203 deletions
Showing only changes of commit e18ae76820 - Show all commits

View File

@ -25,7 +25,7 @@ module.exports = {
// 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention) // 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability) 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead) // 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
'plugin:cypress/recommended',
// https://github.com/prettier/eslint-config-prettier#installation // https://github.com/prettier/eslint-config-prettier#installation
// usage with Prettier, provided by 'eslint-config-prettier'. // usage with Prettier, provided by 'eslint-config-prettier'.
'prettier', 'prettier',
@ -58,7 +58,7 @@ module.exports = {
rules: { rules: {
'prefer-promise-reject-errors': 'off', 'prefer-promise-reject-errors': 'off',
'no-unused-vars': 'warn', 'no-unused-vars': 'warn',
"vue/no-multiple-template-root": "off" , 'vue/no-multiple-template-root': 'off',
// allow debugger during development only // allow debugger during development only
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

View File

@ -25,7 +25,7 @@ function generateTest(type) {
const testFileContent = ` const testFileContent = `
import ${componentName} from 'src/components/${file}'; import ${componentName} from 'src/components/${file}';
describe('<${componentName} />', () => { describe.skip('<${componentName} />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(${componentName}); cy.vnMount(${componentName});

View File

@ -10,7 +10,8 @@
"lint": "eslint --ext .js,.vue ./", "lint": "eslint --ext .js,.vue ./",
"format": "prettier --write \"**/*.{js,vue,scss,html,md,json}\" --ignore-path .gitignore", "format": "prettier --write \"**/*.{js,vue,scss,html,md,json}\" --ignore-path .gitignore",
"test:e2e": "cypress open", "test:e2e": "cypress open",
"test:components": "cypress run -p 9000 --component", "test:e2e:unit": "cypress run --component",
"test:e2e:unit:ci": "cypress run -p 9000 --component",
"test:e2e:ci": "cd ../salix && gulp docker && cd ../salix-front && cypress run", "test:e2e:ci": "cd ../salix && gulp docker && cd ../salix-front && cypress run",
"test": "echo \"See package.json => scripts for available tests.\" && exit 0", "test": "echo \"See package.json => scripts for available tests.\" && exit 0",
"test:unit": "vitest", "test:unit": "vitest",
@ -41,6 +42,7 @@
"@pinia/testing": "^0.1.2", "@pinia/testing": "^0.1.2",
"@quasar/app-vite": "^1.7.3", "@quasar/app-vite": "^1.7.3",
"@quasar/quasar-app-extension-qcalendar": "4.0.0-beta.15", "@quasar/quasar-app-extension-qcalendar": "4.0.0-beta.15",
"@quasar/quasar-app-extension-testing-e2e-cypress": "^6.1.0",
"@quasar/quasar-app-extension-testing-unit-vitest": "^0.4.0", "@quasar/quasar-app-extension-testing-unit-vitest": "^0.4.0",
"@vitest/ui": "^1.6.0", "@vitest/ui": "^1.6.0",
"@vue/test-utils": "^2.4.4", "@vue/test-utils": "^2.4.4",

View File

@ -1,4 +1,3 @@
import CreateBankEntityForm from 'src/components/CreateBankEntityForm.vue'; import CreateBankEntityForm from 'src/components/CreateBankEntityForm.vue';
describe('<CreateBankEntityForm />', () => { describe('<CreateBankEntityForm />', () => {

View File

@ -1,7 +1,6 @@
import CreateManualInvoiceForm from 'src/components/CreateManualInvoiceForm.vue'; import CreateManualInvoiceForm from 'src/components/CreateManualInvoiceForm.vue';
describe('<CreateManualInvoiceForm />', () => { describe.skip('<CreateManualInvoiceForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(CreateManualInvoiceForm); cy.vnMount(CreateManualInvoiceForm);

View File

@ -1,7 +1,6 @@
import CreateNewCityForm from 'src/components/CreateNewCityForm.vue'; import CreateNewCityForm from 'src/components/CreateNewCityForm.vue';
describe('<CreateNewCityForm />', () => { describe.skip('<CreateNewCityForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(CreateNewCityForm); cy.vnMount(CreateNewCityForm);

View File

@ -1,7 +1,6 @@
import CreateNewExpenseForm from 'src/components/CreateNewExpenseForm.vue'; import CreateNewExpenseForm from 'src/components/CreateNewExpenseForm.vue';
describe('<CreateNewExpenseForm />', () => { describe.skip('<CreateNewExpenseForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(CreateNewExpenseForm); cy.vnMount(CreateNewExpenseForm);

View File

@ -1,7 +1,6 @@
import CreateNewPostcodeForm from 'src/components/CreateNewPostcodeForm.vue'; import CreateNewPostcodeForm from 'src/components/CreateNewPostcodeForm.vue';
describe('<CreateNewPostcodeForm />', () => { describe.skip('<CreateNewPostcodeForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(CreateNewPostcodeForm); cy.vnMount(CreateNewPostcodeForm);

View File

@ -1,7 +1,6 @@
import CreateNewProvinceForm from 'src/components/CreateNewProvinceForm.vue'; import CreateNewProvinceForm from 'src/components/CreateNewProvinceForm.vue';
describe('<CreateNewProvinceForm />', () => { describe.skip('<CreateNewProvinceForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(CreateNewProvinceForm); cy.vnMount(CreateNewProvinceForm);

View File

@ -1,7 +1,6 @@
import CreateThermographForm from 'src/components/CreateThermographForm.vue'; import CreateThermographForm from 'src/components/CreateThermographForm.vue';
describe('<CreateThermographForm />', () => { describe.skip('<CreateThermographForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(CreateThermographForm); cy.vnMount(CreateThermographForm);

View File

@ -1,7 +1,6 @@
import CrudModel from 'src/components/CrudModel.vue'; import CrudModel from 'src/components/CrudModel.vue';
describe('<CrudModel />', () => { describe.skip('<CrudModel />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(CrudModel); cy.vnMount(CrudModel);

View File

@ -1,7 +1,6 @@
import EditPictureForm from 'src/components/EditPictureForm.vue'; import EditPictureForm from 'src/components/EditPictureForm.vue';
describe('<EditPictureForm />', () => { describe.skip('<EditPictureForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(EditPictureForm); cy.vnMount(EditPictureForm);

View File

@ -1,7 +1,6 @@
import EditTableCellValueForm from 'src/components/EditTableCellValueForm.vue'; import EditTableCellValueForm from 'src/components/EditTableCellValueForm.vue';
describe('<EditTableCellValueForm />', () => { describe.skip('<EditTableCellValueForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(EditTableCellValueForm); cy.vnMount(EditTableCellValueForm);

View File

@ -1,7 +1,6 @@
import FetchData from 'src/components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
describe('<FetchData />', () => { describe.skip('<FetchData />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(FetchData); cy.vnMount(FetchData);

View File

@ -1,7 +1,6 @@
import FilterItemForm from 'src/components/FilterItemForm.vue'; import FilterItemForm from 'src/components/FilterItemForm.vue';
describe('<FilterItemForm />', () => { describe.skip('<FilterItemForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(FilterItemForm); cy.vnMount(FilterItemForm);

View File

@ -1,7 +1,6 @@
import FilterTravelForm from 'src/components/FilterTravelForm.vue'; import FilterTravelForm from 'src/components/FilterTravelForm.vue';
describe('<FilterTravelForm />', () => { describe.skip('<FilterTravelForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(FilterTravelForm); cy.vnMount(FilterTravelForm);

View File

@ -1,6 +1,6 @@
import FormModel from 'src/components/FormModel.vue'; import FormModel from 'src/components/FormModel.vue';
describe('<FormModel />', () => { describe.skip('<FormModel />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(FormModel, { props: {} }); cy.vnMount(FormModel, { props: {} });

View File

@ -1,7 +1,6 @@
import FormModelPopup from 'src/components/FormModelPopup.vue'; import FormModelPopup from 'src/components/FormModelPopup.vue';
describe('<FormModelPopup />', () => { describe.skip('<FormModelPopup />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(FormModelPopup); cy.vnMount(FormModelPopup);

View File

@ -1,7 +1,6 @@
import FormPopup from 'src/components/FormPopup.vue'; import FormPopup from 'src/components/FormPopup.vue';
describe('<FormPopup />', () => { describe.skip('<FormPopup />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(FormPopup); cy.vnMount(FormPopup);

View File

@ -1,7 +1,6 @@
import ItemsFilterPanel from 'src/components/ItemsFilterPanel.vue'; import ItemsFilterPanel from 'src/components/ItemsFilterPanel.vue';
describe('<ItemsFilterPanel />', () => { describe.skip('<ItemsFilterPanel />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(ItemsFilterPanel); cy.vnMount(ItemsFilterPanel);

View File

@ -1,7 +1,6 @@
import LeftMenu from 'src/components/LeftMenu.vue'; import LeftMenu from 'src/components/LeftMenu.vue';
describe('<LeftMenu />', () => { describe.skip('<LeftMenu />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(LeftMenu); cy.vnMount(LeftMenu);

View File

@ -1,7 +1,6 @@
import LeftMenuItem from 'src/components/LeftMenuItem.vue'; import LeftMenuItem from 'src/components/LeftMenuItem.vue';
describe('<LeftMenuItem />', () => { describe.skip('<LeftMenuItem />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(LeftMenuItem); cy.vnMount(LeftMenuItem);

View File

@ -1,7 +1,6 @@
import LeftMenuItemGroup from 'src/components/LeftMenuItemGroup.vue'; import LeftMenuItemGroup from 'src/components/LeftMenuItemGroup.vue';
describe('<LeftMenuItemGroup />', () => { describe.skip('<LeftMenuItemGroup />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(LeftMenuItemGroup); cy.vnMount(LeftMenuItemGroup);

View File

@ -1,6 +1,6 @@
import NavBar from 'src/components/NavBar.vue'; import NavBar from 'src/components/NavBar.vue';
describe('<NavBar />', () => { describe.skip('<NavBar />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(NavBar); cy.vnMount(NavBar);

View File

@ -1,7 +1,6 @@
import PinnedModules from 'src/components/PinnedModules.vue'; import PinnedModules from 'src/components/PinnedModules.vue';
describe('<PinnedModules />', () => { describe.skip('<PinnedModules />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(PinnedModules); cy.vnMount(PinnedModules);

View File

@ -1,7 +1,6 @@
import RefundInvoiceForm from 'src/components/RefundInvoiceForm.vue'; import RefundInvoiceForm from 'src/components/RefundInvoiceForm.vue';
describe('<RefundInvoiceForm />', () => { describe.skip('<RefundInvoiceForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(RefundInvoiceForm); cy.vnMount(RefundInvoiceForm);

View File

@ -1,7 +1,6 @@
import RegularizeStockForm from 'src/components/RegularizeStockForm.vue'; import RegularizeStockForm from 'src/components/RegularizeStockForm.vue';
describe('<RegularizeStockForm />', () => { describe.skip('<RegularizeStockForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(RegularizeStockForm); cy.vnMount(RegularizeStockForm);

View File

@ -1,7 +1,6 @@
import TransferInvoiceForm from 'src/components/TransferInvoiceForm.vue'; import TransferInvoiceForm from 'src/components/TransferInvoiceForm.vue';
describe('<TransferInvoiceForm />', () => { describe.skip('<TransferInvoiceForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(TransferInvoiceForm); cy.vnMount(TransferInvoiceForm);

View File

@ -1,7 +1,6 @@
import UserPanel from 'src/components/UserPanel.vue'; import UserPanel from 'src/components/UserPanel.vue';
describe('<UserPanel />', () => { describe.skip('<UserPanel />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(UserPanel); cy.vnMount(UserPanel);

View File

@ -1,17 +0,0 @@
import VnLocation from 'src/components/common/VnLocation.vue';
describe('<VnLocation />', () => {
it('renders', () => {
// see: https://on.cypress.io/mounting-vue
cy.vnMount(VnLocation, {
props: {
modelValue: 1234,
location: {
postcode: '46600',
city: ' Alz',
province: { name: 'as' },
country: { name: 'asdq' },
},
},
});
});
});

View File

@ -1,8 +0,0 @@
import VnSelect from 'src/components/common/VnSelect.vue';
describe('<VnSelect />', () => {
it('renders', () => {
// see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSelect);
});
});

View File

@ -1,9 +0,0 @@
import VnSelectProvince from 'src/components/VnSelectProvince.vue';
describe('<VnSelectProvince />', () => {
it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSelectProvince);
});
});

View File

@ -1,7 +1,6 @@
import RightMenu from 'src/components/common/RightMenu.vue'; import RightMenu from 'src/components/common/RightMenu.vue';
describe('<RightMenu />', () => { describe.skip('<RightMenu />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(RightMenu); cy.vnMount(RightMenu);

View File

@ -4,5 +4,6 @@ describe('<SendEmailDialog />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(SendEmailDialog, { props: { data: { address: '1234' } } }); cy.vnMount(SendEmailDialog, { props: { data: { address: '1234' } } });
cy.get('input').type('1234');
}); });
}); });

View File

@ -1,7 +1,6 @@
import SendSmsDialog from 'src/components/common/SendSmsDialog.vue'; import SendSmsDialog from 'src/components/common/SendSmsDialog.vue';
describe('<SendSmsDialog />', () => { describe.skip('<SendSmsDialog />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(SendSmsDialog); cy.vnMount(SendSmsDialog);

View File

@ -1,7 +1,6 @@
import TableVisibleColumns from 'src/components/common/TableVisibleColumns.vue'; import TableVisibleColumns from 'src/components/common/TableVisibleColumns.vue';
describe('<TableVisibleColumns />', () => { describe.skip('<TableVisibleColumns />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(TableVisibleColumns); cy.vnMount(TableVisibleColumns);

View File

@ -1,7 +1,6 @@
import VnAccountNumber from 'src/components/common/VnAccountNumber.vue'; import VnAccountNumber from 'src/components/common/VnAccountNumber.vue';
describe('<VnAccountNumber />', () => { describe.skip('<VnAccountNumber />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnAccountNumber); cy.vnMount(VnAccountNumber);

View File

@ -1,7 +1,6 @@
import VnBreadcrumbs from 'src/components/common/VnBreadcrumbs.vue'; import VnBreadcrumbs from 'src/components/common/VnBreadcrumbs.vue';
describe('<VnBreadcrumbs />', () => { describe.skip('<VnBreadcrumbs />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnBreadcrumbs); cy.vnMount(VnBreadcrumbs);

View File

@ -1,7 +1,6 @@
import VnCard from 'src/components/common/VnCard.vue'; import VnCard from 'src/components/common/VnCard.vue';
describe('<VnCard />', () => { describe.skip('<VnCard />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnCard); cy.vnMount(VnCard);

View File

@ -1,7 +1,6 @@
import VnComponent from 'src/components/common/VnComponent.vue'; import VnComponent from 'src/components/common/VnComponent.vue';
describe('<VnComponent />', () => { describe.skip('<VnComponent />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnComponent); cy.vnMount(VnComponent);

View File

@ -1,7 +1,6 @@
import VnDms from 'src/components/common/VnDms.vue'; import VnDms from 'src/components/common/VnDms.vue';
describe('<VnDms />', () => { describe.skip('<VnDms />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnDms); cy.vnMount(VnDms);

View File

@ -1,7 +1,6 @@
import VnDmsList from 'src/components/common/VnDmsList.vue'; import VnDmsList from 'src/components/common/VnDmsList.vue';
describe('<VnDmsList />', () => { describe.skip('<VnDmsList />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnDmsList); cy.vnMount(VnDmsList);

View File

@ -1,7 +1,6 @@
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
describe('<VnInput />', () => { describe.skip('<VnInput />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnInput); cy.vnMount(VnInput);

View File

@ -1,7 +1,6 @@
import VnInputDate from 'src/components/common/VnInputDate.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue';
describe('<VnInputDate />', () => { describe.skip('<VnInputDate />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnInputDate); cy.vnMount(VnInputDate);

View File

@ -1,7 +1,6 @@
import VnInputNumber from 'src/components/common/VnInputNumber.vue'; import VnInputNumber from 'src/components/common/VnInputNumber.vue';
describe('<VnInputNumber />', () => { describe.skip('<VnInputNumber />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnInputNumber); cy.vnMount(VnInputNumber);

View File

@ -1,7 +1,6 @@
import VnInputTime from 'src/components/common/VnInputTime.vue'; import VnInputTime from 'src/components/common/VnInputTime.vue';
describe('<VnInputTime />', () => { describe.skip('<VnInputTime />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnInputTime); cy.vnMount(VnInputTime);

View File

@ -1,7 +1,6 @@
import VnJsonValue from 'src/components/common/VnJsonValue.vue'; import VnJsonValue from 'src/components/common/VnJsonValue.vue';
describe('<VnJsonValue />', () => { describe.skip('<VnJsonValue />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnJsonValue); cy.vnMount(VnJsonValue);

View File

@ -1,9 +1,17 @@
import VnLocation from 'src/components/common/VnLocation.vue'; import VnLocation from 'src/components/common/VnLocation.vue';
describe.skip('<VnLocation />', () => {
describe('<VnLocation />', () => { it('renders', () => {
it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnLocation); cy.vnMount(VnLocation, {
props: {
modelValue: 1234,
location: {
postcode: '46600',
city: ' Alz',
province: { name: 'as' },
country: { name: 'asdq' },
},
},
});
}); });
}); });

View File

@ -1,7 +1,6 @@
import VnLog from 'src/components/common/VnLog.vue'; import VnLog from 'src/components/common/VnLog.vue';
describe('<VnLog />', () => { describe.skip('<VnLog />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnLog); cy.vnMount(VnLog);

View File

@ -1,7 +1,6 @@
import VnLogFilter from 'src/components/common/VnLogFilter.vue'; import VnLogFilter from 'src/components/common/VnLogFilter.vue';
describe('<VnLogFilter />', () => { describe.skip('<VnLogFilter />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnLogFilter); cy.vnMount(VnLogFilter);

View File

@ -1,7 +1,6 @@
import VnPopup from 'src/components/common/VnPopup.vue'; import VnPopup from 'src/components/common/VnPopup.vue';
describe('<VnPopup />', () => { describe.skip('<VnPopup />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnPopup); cy.vnMount(VnPopup);

View File

@ -1,7 +1,6 @@
import VnProgressModal from 'src/components/common/VnProgressModal.vue'; import VnProgressModal from 'src/components/common/VnProgressModal.vue';
describe('<VnProgressModal />', () => { describe.skip('<VnProgressModal />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnProgressModal); cy.vnMount(VnProgressModal);

View File

@ -1,7 +1,6 @@
import VnRadio from 'src/components/common/VnRadio.vue'; import VnRadio from 'src/components/common/VnRadio.vue';
describe('<VnRadio />', () => { describe.skip('<VnRadio />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnRadio); cy.vnMount(VnRadio);

View File

@ -1,6 +1,6 @@
import VnSectionMain from 'src/components/common/VnSectionMain.vue'; import VnSectionMain from 'src/components/common/VnSectionMain.vue';
describe('<VnSectionMain />', () => { describe.skip('<VnSectionMain />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSectionMain, { cy.vnMount(VnSectionMain, {

View File

@ -1,7 +1,6 @@
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
describe('<VnSelect />', () => { describe.skip('<VnSelect />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSelect); cy.vnMount(VnSelect);

View File

@ -1,7 +1,6 @@
import VnSelectCache from 'src/components/common/VnSelectCache.vue'; import VnSelectCache from 'src/components/common/VnSelectCache.vue';
describe('<VnSelectCache />', () => { describe.skip('<VnSelectCache />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSelectCache); cy.vnMount(VnSelectCache);

View File

@ -1,7 +1,6 @@
import VnSelectDialog from 'src/components/common/VnSelectDialog.vue'; import VnSelectDialog from 'src/components/common/VnSelectDialog.vue';
describe('<VnSelectDialog />', () => { describe.skip('<VnSelectDialog />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSelectDialog); cy.vnMount(VnSelectDialog);

View File

@ -1,7 +1,6 @@
import VnSelectEnum from 'src/components/common/VnSelectEnum.vue'; import VnSelectEnum from 'src/components/common/VnSelectEnum.vue';
describe('<VnSelectEnum />', () => { describe.skip('<VnSelectEnum />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSelectEnum); cy.vnMount(VnSelectEnum);

View File

@ -1,7 +1,6 @@
import VnSmsDialog from 'src/components/common/VnSmsDialog.vue'; import VnSmsDialog from 'src/components/common/VnSmsDialog.vue';
describe('<VnSmsDialog />', () => { describe.skip('<VnSmsDialog />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSmsDialog); cy.vnMount(VnSmsDialog);

View File

@ -1,7 +1,6 @@
import VnSummaryDialog from 'src/components/common/VnSummaryDialog.vue'; import VnSummaryDialog from 'src/components/common/VnSummaryDialog.vue';
describe('<VnSummaryDialog />', () => { describe.skip('<VnSummaryDialog />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSummaryDialog); cy.vnMount(VnSummaryDialog);

View File

@ -1,9 +1,87 @@
import VnTitle from 'src/components/common/VnTitle.vue'; import VnTitle from 'src/components/common/VnTitle.vue';
describe('<VnTitle />', () => { describe('<VnTitle />', () => {
it('TODO: boilerplate', () => { it('renders text with link', () => {
// see: https://on.cypress.io/mounting-vue cy.vnMount(VnTitle, {
cy.vnMount(VnTitle); props: {
url: 'https://example.com',
text: 'Example Link',
},
});
cy.get('a').should('exist');
cy.get('a').should('have.attr', 'href', 'https://example.com');
cy.get('a').should('contain.text', 'Example Link');
});
it('renders text without link', () => {
cy.vnMount(VnTitle, {
props: {
text: 'No Link',
},
});
cy.get('a').should('exist');
cy.get('a').should('not.have.attr', 'href');
cy.get('a').should('contain.text', 'No Link');
});
it('applies correct classes based on url prop', () => {
cy.vnMount(VnTitle, {
props: {
url: 'https://example.com',
},
});
cy.get('a').should('have.class', 'link');
cy.vnMount(VnTitle, {
props: {},
});
cy.get('a').should('have.class', 'color-vn-text');
});
it('displays icon when url is provided', () => {
cy.vnMount(VnTitle, {
props: {
url: 'https://example.com',
},
});
cy.get('.q-icon').should('exist');
});
it('does not display icon when url is not provided', () => {
cy.vnMount(VnTitle, {
props: {},
});
cy.get('.q-icon').should('not.exist');
});
it('applies correct cursor style based on url prop', () => {
cy.vnMount(VnTitle, {
props: {
url: 'https://example.com',
},
});
cy.get('.header-link').should('have.css', 'cursor', 'pointer');
cy.vnMount(VnTitle, {
props: {},
});
cy.get('.header-link').should('have.css', 'cursor', 'default');
});
it('renders default icon when no icon prop is provided', () => {
cy.vnMount(VnTitle, {
props: {
url: 'https://example.com',
},
});
cy.get('i').should('contain.text', 'open_in_new');
});
it('renders custom icon when icon prop is provided', () => {
cy.vnMount(VnTitle, {
props: {
url: 'https://example.com',
icon: 'custom_icon',
},
});
cy.get('i').should('contain.text', 'custom_icon');
}); });
}); });

View File

@ -1,7 +1,6 @@
import VnWeekdayPicker from 'src/components/common/VnWeekdayPicker.vue'; import VnWeekdayPicker from 'src/components/common/VnWeekdayPicker.vue';
describe('<VnWeekdayPicker />', () => { describe.skip('<VnWeekdayPicker />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnWeekdayPicker); cy.vnMount(VnWeekdayPicker);

View File

@ -1,7 +1,6 @@
import vnDiscount from 'src/components/common/vnDiscount.vue'; import vnDiscount from 'src/components/common/vnDiscount.vue';
describe('<vnDiscount />', () => { describe.skip('<vnDiscount />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(vnDiscount); cy.vnMount(vnDiscount);

View File

@ -1,7 +1,6 @@
import CardDescriptor from 'src/components/ui/CardDescriptor.vue'; import CardDescriptor from 'src/components/ui/CardDescriptor.vue';
describe('<CardDescriptor />', () => { describe.skip('<CardDescriptor />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(CardDescriptor); cy.vnMount(CardDescriptor);

View File

@ -1,7 +1,6 @@
import CardList from 'src/components/ui/CardList.vue'; import CardList from 'src/components/ui/CardList.vue';
describe('<CardList />', () => { describe.skip('<CardList />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(CardList); cy.vnMount(CardList);

View File

@ -1,7 +1,6 @@
import CardSummary from 'src/components/ui/CardSummary.vue'; import CardSummary from 'src/components/ui/CardSummary.vue';
describe('<CardSummary />', () => { describe.skip('<CardSummary />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(CardSummary); cy.vnMount(CardSummary);

View File

@ -1,7 +1,6 @@
import CatalogItem from 'src/components/ui/CatalogItem.vue'; import CatalogItem from 'src/components/ui/CatalogItem.vue';
describe('<CatalogItem />', () => { describe.skip('<CatalogItem />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(CatalogItem); cy.vnMount(CatalogItem);

View File

@ -1,7 +1,6 @@
import FetchedTags from 'src/components/ui/FetchedTags.vue'; import FetchedTags from 'src/components/ui/FetchedTags.vue';
describe('<FetchedTags />', () => { describe.skip('<FetchedTags />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(FetchedTags); cy.vnMount(FetchedTags);

View File

@ -1,7 +1,6 @@
import QCalendarMonthWrapper from 'src/components/ui/QCalendarMonthWrapper.vue'; import QCalendarMonthWrapper from 'src/components/ui/QCalendarMonthWrapper.vue';
describe('<QCalendarMonthWrapper />', () => { describe.skip('<QCalendarMonthWrapper />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(QCalendarMonthWrapper); cy.vnMount(QCalendarMonthWrapper);

View File

@ -1,7 +1,6 @@
import SkeletonDescriptor from 'src/components/ui/SkeletonDescriptor.vue'; import SkeletonDescriptor from 'src/components/ui/SkeletonDescriptor.vue';
describe('<SkeletonDescriptor />', () => { describe.skip('<SkeletonDescriptor />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(SkeletonDescriptor); cy.vnMount(SkeletonDescriptor);

View File

@ -1,7 +1,6 @@
import SkeletonForm from 'src/components/ui/SkeletonForm.vue'; import SkeletonForm from 'src/components/ui/SkeletonForm.vue';
describe('<SkeletonForm />', () => { describe.skip('<SkeletonForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(SkeletonForm); cy.vnMount(SkeletonForm);

View File

@ -1,7 +1,6 @@
import SkeletonSummary from 'src/components/ui/SkeletonSummary.vue'; import SkeletonSummary from 'src/components/ui/SkeletonSummary.vue';
describe('<SkeletonSummary />', () => { describe.skip('<SkeletonSummary />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(SkeletonSummary); cy.vnMount(SkeletonSummary);

View File

@ -1,7 +1,6 @@
import SkeletonTable from 'src/components/ui/SkeletonTable.vue'; import SkeletonTable from 'src/components/ui/SkeletonTable.vue';
describe('<SkeletonTable />', () => { describe.skip('<SkeletonTable />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(SkeletonTable); cy.vnMount(SkeletonTable);

View File

@ -1,7 +1,6 @@
import VnAvatar from 'src/components/ui/VnAvatar.vue'; import VnAvatar from 'src/components/ui/VnAvatar.vue';
describe('<VnAvatar />', () => { describe.skip('<VnAvatar />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnAvatar); cy.vnMount(VnAvatar);

View File

@ -1,7 +1,6 @@
import VnConfirm from 'src/components/ui/VnConfirm.vue'; import VnConfirm from 'src/components/ui/VnConfirm.vue';
describe('<VnConfirm />', () => { describe.skip('<VnConfirm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnConfirm); cy.vnMount(VnConfirm);

View File

@ -1,7 +1,6 @@
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
describe('<VnFilterPanel />', () => { describe.skip('<VnFilterPanel />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnFilterPanel); cy.vnMount(VnFilterPanel);

View File

@ -1,7 +1,6 @@
import VnFilterPanelChip from 'src/components/ui/VnFilterPanelChip.vue'; import VnFilterPanelChip from 'src/components/ui/VnFilterPanelChip.vue';
describe('<VnFilterPanelChip />', () => { describe.skip('<VnFilterPanelChip />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnFilterPanelChip); cy.vnMount(VnFilterPanelChip);

View File

@ -1,7 +1,6 @@
import VnImg from 'src/components/ui/VnImg.vue'; import VnImg from 'src/components/ui/VnImg.vue';
describe('<VnImg />', () => { describe.skip('<VnImg />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnImg); cy.vnMount(VnImg);

View File

@ -1,7 +1,6 @@
import VnLinkPhone from 'src/components/ui/VnLinkPhone.vue'; import VnLinkPhone from 'src/components/ui/VnLinkPhone.vue';
describe('<VnLinkPhone />', () => { describe.skip('<VnLinkPhone />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnLinkPhone); cy.vnMount(VnLinkPhone);

View File

@ -1,7 +1,6 @@
import VnLogo from 'src/components/ui/VnLogo.vue'; import VnLogo from 'src/components/ui/VnLogo.vue';
describe('<VnLogo />', () => { describe.skip('<VnLogo />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnLogo); cy.vnMount(VnLogo);

View File

@ -1,7 +1,6 @@
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
describe('<VnLv />', () => { describe.skip('<VnLv />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnLv); cy.vnMount(VnLv);

View File

@ -1,7 +1,6 @@
import VnNotes from 'src/components/ui/VnNotes.vue'; import VnNotes from 'src/components/ui/VnNotes.vue';
describe('<VnNotes />', () => { describe.skip('<VnNotes />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnNotes); cy.vnMount(VnNotes);

View File

@ -1,7 +1,6 @@
import VnOutForm from 'src/components/ui/VnOutForm.vue'; import VnOutForm from 'src/components/ui/VnOutForm.vue';
describe('<VnOutForm />', () => { describe.skip('<VnOutForm />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnOutForm); cy.vnMount(VnOutForm);

View File

@ -1,7 +1,6 @@
import VnPaginate from 'src/components/ui/VnPaginate.vue'; import VnPaginate from 'src/components/ui/VnPaginate.vue';
describe('<VnPaginate />', () => { describe.skip('<VnPaginate />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnPaginate); cy.vnMount(VnPaginate);

View File

@ -1,7 +1,6 @@
import VnRow from 'src/components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
describe('<VnRow />', () => { describe.skip('<VnRow />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnRow); cy.vnMount(VnRow);

View File

@ -1,7 +1,6 @@
import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
describe('<VnSearchbar />', () => { describe.skip('<VnSearchbar />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSearchbar); cy.vnMount(VnSearchbar);

View File

@ -1,7 +1,6 @@
import VnSms from 'src/components/ui/VnSms.vue'; import VnSms from 'src/components/ui/VnSms.vue';
describe('<VnSms />', () => { describe.skip('<VnSms />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSms); cy.vnMount(VnSms);

View File

@ -1,7 +1,6 @@
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
describe('<VnSubToolbar />', () => { describe.skip('<VnSubToolbar />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSubToolbar); cy.vnMount(VnSubToolbar);

View File

@ -1,7 +1,6 @@
import VnUserLink from 'src/components/ui/VnUserLink.vue'; import VnUserLink from 'src/components/ui/VnUserLink.vue';
describe('<VnUserLink />', () => { describe.skip('<VnUserLink />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnUserLink); cy.vnMount(VnUserLink);

View File

@ -75,5 +75,6 @@ Cypress.Commands.add('vnMount', (component, options = {}) => {
// app.use(i18n); // app.use(i18n);
// }, // },
// }); // });
console.log({ ...globalConfig, ...options });
return shallowMount(component, { ...globalConfig, ...options }); return shallowMount(component, { ...globalConfig, ...options });
}); });