From d00354553dd7b7224f6c82f81e8ab67a4d87a113 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 17 Oct 2024 11:59:28 +0200 Subject: [PATCH] feat: refs #7220 updates --- generate-tests.js | 2 +- .../components/CreateBankEntityForm.spec.js | 2 +- .../CreateManualInvoiceForm.spec.js | 2 +- .../components/CreateNewCityForm.spec.js | 2 +- .../components/CreateNewExpenseForm.spec.js | 2 +- .../components/CreateNewPostcodeForm.spec.js | 2 +- .../components/CreateNewProvinceForm.spec.js | 2 +- .../components/CreateThermographForm.spec.js | 2 +- test/cypress/components/CrudModel.spec.js | 2 +- .../components/EditPictureForm.spec.js | 2 +- .../components/EditTableCellValueForm.spec.js | 2 +- test/cypress/components/FetchData.spec.js | 2 +- .../cypress/components/FilterItemForm.spec.js | 2 +- .../components/FilterTravelForm.spec.js | 2 +- test/cypress/components/FormModel.spec.js | 2 +- .../cypress/components/FormModelPopup.spec.js | 2 +- test/cypress/components/FormPopup.spec.js | 2 +- .../components/ItemsFilterPanel.spec.js | 2 +- test/cypress/components/LeftMenu.spec.js | 2 +- test/cypress/components/LeftMenuItem.spec.js | 2 +- .../components/LeftMenuItemGroup.spec.js | 2 +- test/cypress/components/NavBar.spec.js | 2 +- test/cypress/components/PinnedModules.spec.js | 2 +- .../components/RefundInvoiceForm.spec.js | 2 +- .../components/RegularizeStockForm.spec.js | 2 +- .../components/TransferInvoiceForm.spec.js | 2 +- test/cypress/components/UserPanel.spec.js | 2 +- test/cypress/components/VnTitle.spec.js | 87 ------------------- .../components/common/RightMenu.spec.js | 2 +- .../components/common/SendEmailDialog.spec.js | 2 +- .../components/common/SendSmsDialog.spec.js | 2 +- .../common/TableVisibleColumns.spec.js | 2 +- .../components/common/VnAccountNumber.spec.js | 2 +- .../components/common/VnBreadcrumbs.spec.js | 2 +- test/cypress/components/common/VnCard.spec.js | 2 +- .../components/common/VnComponent.spec.js | 2 +- test/cypress/components/common/VnDms.spec.js | 2 +- .../components/common/VnDmsList.spec.js | 2 +- .../cypress/components/common/VnInput.spec.js | 2 +- .../components/common/VnInputDate.spec.js | 2 +- .../components/common/VnInputNumber.spec.js | 2 +- .../components/common/VnInputTime.spec.js | 2 +- .../components/common/VnJsonValue.spec.js | 2 +- .../components/common/VnLocation.spec.js | 2 +- test/cypress/components/common/VnLog.spec.js | 2 +- .../components/common/VnLogFilter.spec.js | 2 +- .../cypress/components/common/VnPopup.spec.js | 2 +- .../components/common/VnProgressModal.spec.js | 2 +- .../cypress/components/common/VnRadio.spec.js | 2 +- .../components/common/VnSectionMain.spec.js | 2 +- .../components/common/VnSelect.spec.js | 2 +- .../components/common/VnSelectCache.spec.js | 2 +- .../components/common/VnSelectDialog.spec.js | 2 +- .../components/common/VnSelectEnum.spec.js | 2 +- .../components/common/VnSmsDialog.spec.js | 2 +- .../components/common/VnSummaryDialog.spec.js | 2 +- .../cypress/components/common/VnTitle.spec.js | 20 ++--- .../components/common/VnWeekdayPicker.spec.js | 2 +- .../components/common/vnDiscount.spec.js | 2 +- .../components/ui/CardDescriptor.spec.js | 2 +- test/cypress/components/ui/CardList.spec.js | 2 +- .../cypress/components/ui/CardSummary.spec.js | 2 +- .../cypress/components/ui/CatalogItem.spec.js | 2 +- .../cypress/components/ui/FetchedTags.spec.js | 2 +- .../ui/QCalendarMonthWrapper.spec.js | 2 +- .../components/ui/SkeletonDescriptor.spec.js | 2 +- .../components/ui/SkeletonForm.spec.js | 2 +- .../components/ui/SkeletonSummary.spec.js | 2 +- .../components/ui/SkeletonTable.spec.js | 2 +- test/cypress/components/ui/VnAvatar.spec.js | 2 +- test/cypress/components/ui/VnConfirm.spec.js | 2 +- .../components/ui/VnFilterPanel.spec.js | 2 +- .../components/ui/VnFilterPanelChip.spec.js | 2 +- test/cypress/components/ui/VnImg.spec.js | 2 +- .../cypress/components/ui/VnLinkPhone.spec.js | 2 +- test/cypress/components/ui/VnLogo.spec.js | 2 +- test/cypress/components/ui/VnLv.spec.js | 2 +- test/cypress/components/ui/VnNotes.spec.js | 2 +- test/cypress/components/ui/VnOutForm.spec.js | 2 +- test/cypress/components/ui/VnPaginate.spec.js | 2 +- test/cypress/components/ui/VnRow.spec.js | 2 +- .../cypress/components/ui/VnSearchbar.spec.js | 2 +- test/cypress/components/ui/VnSms.spec.js | 2 +- .../components/ui/VnSubToolbar.spec.js | 2 +- test/cypress/components/ui/VnUserLink.spec.js | 2 +- test/cypress/support/component.js | 34 +------- 86 files changed, 95 insertions(+), 212 deletions(-) delete mode 100644 test/cypress/components/VnTitle.spec.js diff --git a/generate-tests.js b/generate-tests.js index 00da60230..4a3fca408 100644 --- a/generate-tests.js +++ b/generate-tests.js @@ -28,7 +28,7 @@ import ${componentName} from 'src/components/${file}'; describe.skip('<${componentName} />', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(${componentName}); + cy.createWrapper(${componentName}); }); }); `; diff --git a/test/cypress/components/CreateBankEntityForm.spec.js b/test/cypress/components/CreateBankEntityForm.spec.js index 3300e4f10..f639799e3 100644 --- a/test/cypress/components/CreateBankEntityForm.spec.js +++ b/test/cypress/components/CreateBankEntityForm.spec.js @@ -3,6 +3,6 @@ import CreateBankEntityForm from 'src/components/CreateBankEntityForm.vue'; describe('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CreateBankEntityForm); + cy.createWrapper(CreateBankEntityForm); }); }); diff --git a/test/cypress/components/CreateManualInvoiceForm.spec.js b/test/cypress/components/CreateManualInvoiceForm.spec.js index 0ea075955..83d963ff0 100644 --- a/test/cypress/components/CreateManualInvoiceForm.spec.js +++ b/test/cypress/components/CreateManualInvoiceForm.spec.js @@ -3,6 +3,6 @@ import CreateManualInvoiceForm from 'src/components/CreateManualInvoiceForm.vue' describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CreateManualInvoiceForm); + cy.createWrapper(CreateManualInvoiceForm); }); }); diff --git a/test/cypress/components/CreateNewCityForm.spec.js b/test/cypress/components/CreateNewCityForm.spec.js index 087696074..43c97a8a1 100644 --- a/test/cypress/components/CreateNewCityForm.spec.js +++ b/test/cypress/components/CreateNewCityForm.spec.js @@ -3,6 +3,6 @@ import CreateNewCityForm from 'src/components/CreateNewCityForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CreateNewCityForm); + cy.createWrapper(CreateNewCityForm); }); }); diff --git a/test/cypress/components/CreateNewExpenseForm.spec.js b/test/cypress/components/CreateNewExpenseForm.spec.js index 0addea4d1..e42ebe9f4 100644 --- a/test/cypress/components/CreateNewExpenseForm.spec.js +++ b/test/cypress/components/CreateNewExpenseForm.spec.js @@ -3,6 +3,6 @@ import CreateNewExpenseForm from 'src/components/CreateNewExpenseForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CreateNewExpenseForm); + cy.createWrapper(CreateNewExpenseForm); }); }); diff --git a/test/cypress/components/CreateNewPostcodeForm.spec.js b/test/cypress/components/CreateNewPostcodeForm.spec.js index 3b5d0da6a..f3f8c9ce1 100644 --- a/test/cypress/components/CreateNewPostcodeForm.spec.js +++ b/test/cypress/components/CreateNewPostcodeForm.spec.js @@ -3,6 +3,6 @@ import CreateNewPostcodeForm from 'src/components/CreateNewPostcodeForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CreateNewPostcodeForm); + cy.createWrapper(CreateNewPostcodeForm); }); }); diff --git a/test/cypress/components/CreateNewProvinceForm.spec.js b/test/cypress/components/CreateNewProvinceForm.spec.js index 00041c2f1..507e72aaa 100644 --- a/test/cypress/components/CreateNewProvinceForm.spec.js +++ b/test/cypress/components/CreateNewProvinceForm.spec.js @@ -3,6 +3,6 @@ import CreateNewProvinceForm from 'src/components/CreateNewProvinceForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CreateNewProvinceForm); + cy.createWrapper(CreateNewProvinceForm); }); }); diff --git a/test/cypress/components/CreateThermographForm.spec.js b/test/cypress/components/CreateThermographForm.spec.js index d6df3cb3e..8e5c89f17 100644 --- a/test/cypress/components/CreateThermographForm.spec.js +++ b/test/cypress/components/CreateThermographForm.spec.js @@ -3,6 +3,6 @@ import CreateThermographForm from 'src/components/CreateThermographForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CreateThermographForm); + cy.createWrapper(CreateThermographForm); }); }); diff --git a/test/cypress/components/CrudModel.spec.js b/test/cypress/components/CrudModel.spec.js index 2af8870fb..a2a6dc14c 100644 --- a/test/cypress/components/CrudModel.spec.js +++ b/test/cypress/components/CrudModel.spec.js @@ -3,6 +3,6 @@ import CrudModel from 'src/components/CrudModel.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CrudModel); + cy.createWrapper(CrudModel); }); }); diff --git a/test/cypress/components/EditPictureForm.spec.js b/test/cypress/components/EditPictureForm.spec.js index 72a5d07fa..c2f73f3a4 100644 --- a/test/cypress/components/EditPictureForm.spec.js +++ b/test/cypress/components/EditPictureForm.spec.js @@ -3,6 +3,6 @@ import EditPictureForm from 'src/components/EditPictureForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(EditPictureForm); + cy.createWrapper(EditPictureForm); }); }); diff --git a/test/cypress/components/EditTableCellValueForm.spec.js b/test/cypress/components/EditTableCellValueForm.spec.js index 4a8dffe1e..602278f84 100644 --- a/test/cypress/components/EditTableCellValueForm.spec.js +++ b/test/cypress/components/EditTableCellValueForm.spec.js @@ -3,6 +3,6 @@ import EditTableCellValueForm from 'src/components/EditTableCellValueForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(EditTableCellValueForm); + cy.createWrapper(EditTableCellValueForm); }); }); diff --git a/test/cypress/components/FetchData.spec.js b/test/cypress/components/FetchData.spec.js index d656c8700..efc7a49cb 100644 --- a/test/cypress/components/FetchData.spec.js +++ b/test/cypress/components/FetchData.spec.js @@ -3,6 +3,6 @@ import FetchData from 'src/components/FetchData.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(FetchData); + cy.createWrapper(FetchData); }); }); diff --git a/test/cypress/components/FilterItemForm.spec.js b/test/cypress/components/FilterItemForm.spec.js index 33692c11e..1a4976eb2 100644 --- a/test/cypress/components/FilterItemForm.spec.js +++ b/test/cypress/components/FilterItemForm.spec.js @@ -3,6 +3,6 @@ import FilterItemForm from 'src/components/FilterItemForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(FilterItemForm); + cy.createWrapper(FilterItemForm); }); }); diff --git a/test/cypress/components/FilterTravelForm.spec.js b/test/cypress/components/FilterTravelForm.spec.js index bf796426c..110e1d5ea 100644 --- a/test/cypress/components/FilterTravelForm.spec.js +++ b/test/cypress/components/FilterTravelForm.spec.js @@ -3,6 +3,6 @@ import FilterTravelForm from 'src/components/FilterTravelForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(FilterTravelForm); + cy.createWrapper(FilterTravelForm); }); }); diff --git a/test/cypress/components/FormModel.spec.js b/test/cypress/components/FormModel.spec.js index 18c6adc54..859c1f9a1 100644 --- a/test/cypress/components/FormModel.spec.js +++ b/test/cypress/components/FormModel.spec.js @@ -3,6 +3,6 @@ import FormModel from 'src/components/FormModel.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(FormModel, { props: {} }); + cy.createWrapper(FormModel, { props: {} }); }); }); diff --git a/test/cypress/components/FormModelPopup.spec.js b/test/cypress/components/FormModelPopup.spec.js index 814f8e635..a2a5ab572 100644 --- a/test/cypress/components/FormModelPopup.spec.js +++ b/test/cypress/components/FormModelPopup.spec.js @@ -3,6 +3,6 @@ import FormModelPopup from 'src/components/FormModelPopup.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(FormModelPopup); + cy.createWrapper(FormModelPopup); }); }); diff --git a/test/cypress/components/FormPopup.spec.js b/test/cypress/components/FormPopup.spec.js index 6a82e172d..d5b49ec43 100644 --- a/test/cypress/components/FormPopup.spec.js +++ b/test/cypress/components/FormPopup.spec.js @@ -3,6 +3,6 @@ import FormPopup from 'src/components/FormPopup.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(FormPopup); + cy.createWrapper(FormPopup); }); }); diff --git a/test/cypress/components/ItemsFilterPanel.spec.js b/test/cypress/components/ItemsFilterPanel.spec.js index 511a65445..763f4b3ea 100644 --- a/test/cypress/components/ItemsFilterPanel.spec.js +++ b/test/cypress/components/ItemsFilterPanel.spec.js @@ -3,6 +3,6 @@ import ItemsFilterPanel from 'src/components/ItemsFilterPanel.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(ItemsFilterPanel); + cy.createWrapper(ItemsFilterPanel); }); }); diff --git a/test/cypress/components/LeftMenu.spec.js b/test/cypress/components/LeftMenu.spec.js index ca2424181..ee13c09a6 100644 --- a/test/cypress/components/LeftMenu.spec.js +++ b/test/cypress/components/LeftMenu.spec.js @@ -3,6 +3,6 @@ import LeftMenu from 'src/components/LeftMenu.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(LeftMenu); + cy.createWrapper(LeftMenu); }); }); diff --git a/test/cypress/components/LeftMenuItem.spec.js b/test/cypress/components/LeftMenuItem.spec.js index a394f1aaa..6355548f9 100644 --- a/test/cypress/components/LeftMenuItem.spec.js +++ b/test/cypress/components/LeftMenuItem.spec.js @@ -3,6 +3,6 @@ import LeftMenuItem from 'src/components/LeftMenuItem.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(LeftMenuItem); + cy.createWrapper(LeftMenuItem); }); }); diff --git a/test/cypress/components/LeftMenuItemGroup.spec.js b/test/cypress/components/LeftMenuItemGroup.spec.js index bbddb3eb1..28393f20f 100644 --- a/test/cypress/components/LeftMenuItemGroup.spec.js +++ b/test/cypress/components/LeftMenuItemGroup.spec.js @@ -3,6 +3,6 @@ import LeftMenuItemGroup from 'src/components/LeftMenuItemGroup.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(LeftMenuItemGroup); + cy.createWrapper(LeftMenuItemGroup); }); }); diff --git a/test/cypress/components/NavBar.spec.js b/test/cypress/components/NavBar.spec.js index 719a18bc8..38ad6b95e 100644 --- a/test/cypress/components/NavBar.spec.js +++ b/test/cypress/components/NavBar.spec.js @@ -3,6 +3,6 @@ import NavBar from 'src/components/NavBar.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(NavBar); + cy.createWrapper(NavBar); }); }); diff --git a/test/cypress/components/PinnedModules.spec.js b/test/cypress/components/PinnedModules.spec.js index 230518463..1932ecfc1 100644 --- a/test/cypress/components/PinnedModules.spec.js +++ b/test/cypress/components/PinnedModules.spec.js @@ -3,6 +3,6 @@ import PinnedModules from 'src/components/PinnedModules.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(PinnedModules); + cy.createWrapper(PinnedModules); }); }); diff --git a/test/cypress/components/RefundInvoiceForm.spec.js b/test/cypress/components/RefundInvoiceForm.spec.js index 976230fa5..04bc7fdbe 100644 --- a/test/cypress/components/RefundInvoiceForm.spec.js +++ b/test/cypress/components/RefundInvoiceForm.spec.js @@ -3,6 +3,6 @@ import RefundInvoiceForm from 'src/components/RefundInvoiceForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(RefundInvoiceForm); + cy.createWrapper(RefundInvoiceForm); }); }); diff --git a/test/cypress/components/RegularizeStockForm.spec.js b/test/cypress/components/RegularizeStockForm.spec.js index f5a4770a8..1810018bf 100644 --- a/test/cypress/components/RegularizeStockForm.spec.js +++ b/test/cypress/components/RegularizeStockForm.spec.js @@ -3,6 +3,6 @@ import RegularizeStockForm from 'src/components/RegularizeStockForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(RegularizeStockForm); + cy.createWrapper(RegularizeStockForm); }); }); diff --git a/test/cypress/components/TransferInvoiceForm.spec.js b/test/cypress/components/TransferInvoiceForm.spec.js index 4d962c456..2c4bb276b 100644 --- a/test/cypress/components/TransferInvoiceForm.spec.js +++ b/test/cypress/components/TransferInvoiceForm.spec.js @@ -3,6 +3,6 @@ import TransferInvoiceForm from 'src/components/TransferInvoiceForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(TransferInvoiceForm); + cy.createWrapper(TransferInvoiceForm); }); }); diff --git a/test/cypress/components/UserPanel.spec.js b/test/cypress/components/UserPanel.spec.js index d4754d915..b6fa73283 100644 --- a/test/cypress/components/UserPanel.spec.js +++ b/test/cypress/components/UserPanel.spec.js @@ -3,6 +3,6 @@ import UserPanel from 'src/components/UserPanel.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(UserPanel); + cy.createWrapper(UserPanel); }); }); diff --git a/test/cypress/components/VnTitle.spec.js b/test/cypress/components/VnTitle.spec.js deleted file mode 100644 index e00f60583..000000000 --- a/test/cypress/components/VnTitle.spec.js +++ /dev/null @@ -1,87 +0,0 @@ -import VnTitle from 'src/components/common/VnTitle.vue'; - -describe('', () => { - it('renders text with link', () => { - 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'); - }); -}); diff --git a/test/cypress/components/common/RightMenu.spec.js b/test/cypress/components/common/RightMenu.spec.js index 6d568fcd2..049941ede 100644 --- a/test/cypress/components/common/RightMenu.spec.js +++ b/test/cypress/components/common/RightMenu.spec.js @@ -3,6 +3,6 @@ import RightMenu from 'src/components/common/RightMenu.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(RightMenu); + cy.createWrapper(RightMenu); }); }); diff --git a/test/cypress/components/common/SendEmailDialog.spec.js b/test/cypress/components/common/SendEmailDialog.spec.js index db79eea86..04bcafffc 100644 --- a/test/cypress/components/common/SendEmailDialog.spec.js +++ b/test/cypress/components/common/SendEmailDialog.spec.js @@ -3,7 +3,7 @@ import SendEmailDialog from 'src/components/common/SendEmailDialog.vue'; describe('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(SendEmailDialog, { props: { data: { address: '1234' } } }); + cy.createWrapper(SendEmailDialog, { props: { data: { address: '1234' } } }); cy.get('input').type('1234'); }); }); diff --git a/test/cypress/components/common/SendSmsDialog.spec.js b/test/cypress/components/common/SendSmsDialog.spec.js index 75f83356a..6a53f3b85 100644 --- a/test/cypress/components/common/SendSmsDialog.spec.js +++ b/test/cypress/components/common/SendSmsDialog.spec.js @@ -3,6 +3,6 @@ import SendSmsDialog from 'src/components/common/SendSmsDialog.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(SendSmsDialog); + cy.createWrapper(SendSmsDialog); }); }); diff --git a/test/cypress/components/common/TableVisibleColumns.spec.js b/test/cypress/components/common/TableVisibleColumns.spec.js index 2ff946ee4..4a96e603a 100644 --- a/test/cypress/components/common/TableVisibleColumns.spec.js +++ b/test/cypress/components/common/TableVisibleColumns.spec.js @@ -3,6 +3,6 @@ import TableVisibleColumns from 'src/components/common/TableVisibleColumns.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(TableVisibleColumns); + cy.createWrapper(TableVisibleColumns); }); }); diff --git a/test/cypress/components/common/VnAccountNumber.spec.js b/test/cypress/components/common/VnAccountNumber.spec.js index ace77bcda..3bf3db78d 100644 --- a/test/cypress/components/common/VnAccountNumber.spec.js +++ b/test/cypress/components/common/VnAccountNumber.spec.js @@ -3,6 +3,6 @@ import VnAccountNumber from 'src/components/common/VnAccountNumber.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnAccountNumber); + cy.createWrapper(VnAccountNumber); }); }); diff --git a/test/cypress/components/common/VnBreadcrumbs.spec.js b/test/cypress/components/common/VnBreadcrumbs.spec.js index c590fb3d0..80eefc32c 100644 --- a/test/cypress/components/common/VnBreadcrumbs.spec.js +++ b/test/cypress/components/common/VnBreadcrumbs.spec.js @@ -3,6 +3,6 @@ import VnBreadcrumbs from 'src/components/common/VnBreadcrumbs.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnBreadcrumbs); + cy.createWrapper(VnBreadcrumbs); }); }); diff --git a/test/cypress/components/common/VnCard.spec.js b/test/cypress/components/common/VnCard.spec.js index f3d51b0c3..26c131ec3 100644 --- a/test/cypress/components/common/VnCard.spec.js +++ b/test/cypress/components/common/VnCard.spec.js @@ -3,6 +3,6 @@ import VnCard from 'src/components/common/VnCard.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnCard); + cy.createWrapper(VnCard); }); }); diff --git a/test/cypress/components/common/VnComponent.spec.js b/test/cypress/components/common/VnComponent.spec.js index 42a2aa109..9262615fa 100644 --- a/test/cypress/components/common/VnComponent.spec.js +++ b/test/cypress/components/common/VnComponent.spec.js @@ -3,6 +3,6 @@ import VnComponent from 'src/components/common/VnComponent.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnComponent); + cy.createWrapper(VnComponent); }); }); diff --git a/test/cypress/components/common/VnDms.spec.js b/test/cypress/components/common/VnDms.spec.js index 14a7d06f6..501a1cb1b 100644 --- a/test/cypress/components/common/VnDms.spec.js +++ b/test/cypress/components/common/VnDms.spec.js @@ -3,6 +3,6 @@ import VnDms from 'src/components/common/VnDms.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnDms); + cy.createWrapper(VnDms); }); }); diff --git a/test/cypress/components/common/VnDmsList.spec.js b/test/cypress/components/common/VnDmsList.spec.js index 8c0d09a44..1293b7061 100644 --- a/test/cypress/components/common/VnDmsList.spec.js +++ b/test/cypress/components/common/VnDmsList.spec.js @@ -3,6 +3,6 @@ import VnDmsList from 'src/components/common/VnDmsList.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnDmsList); + cy.createWrapper(VnDmsList); }); }); diff --git a/test/cypress/components/common/VnInput.spec.js b/test/cypress/components/common/VnInput.spec.js index b17eae882..3b58dde55 100644 --- a/test/cypress/components/common/VnInput.spec.js +++ b/test/cypress/components/common/VnInput.spec.js @@ -3,6 +3,6 @@ import VnInput from 'src/components/common/VnInput.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnInput); + cy.createWrapper(VnInput); }); }); diff --git a/test/cypress/components/common/VnInputDate.spec.js b/test/cypress/components/common/VnInputDate.spec.js index a0cf6dbe3..c3e128c65 100644 --- a/test/cypress/components/common/VnInputDate.spec.js +++ b/test/cypress/components/common/VnInputDate.spec.js @@ -3,6 +3,6 @@ import VnInputDate from 'src/components/common/VnInputDate.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnInputDate); + cy.createWrapper(VnInputDate); }); }); diff --git a/test/cypress/components/common/VnInputNumber.spec.js b/test/cypress/components/common/VnInputNumber.spec.js index 23ee3080e..a4035e5b1 100644 --- a/test/cypress/components/common/VnInputNumber.spec.js +++ b/test/cypress/components/common/VnInputNumber.spec.js @@ -3,6 +3,6 @@ import VnInputNumber from 'src/components/common/VnInputNumber.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnInputNumber); + cy.createWrapper(VnInputNumber); }); }); diff --git a/test/cypress/components/common/VnInputTime.spec.js b/test/cypress/components/common/VnInputTime.spec.js index 9c003d1c9..25e97ef0f 100644 --- a/test/cypress/components/common/VnInputTime.spec.js +++ b/test/cypress/components/common/VnInputTime.spec.js @@ -3,6 +3,6 @@ import VnInputTime from 'src/components/common/VnInputTime.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnInputTime); + cy.createWrapper(VnInputTime); }); }); diff --git a/test/cypress/components/common/VnJsonValue.spec.js b/test/cypress/components/common/VnJsonValue.spec.js index c8c7ebb2f..2a135aa8c 100644 --- a/test/cypress/components/common/VnJsonValue.spec.js +++ b/test/cypress/components/common/VnJsonValue.spec.js @@ -3,6 +3,6 @@ import VnJsonValue from 'src/components/common/VnJsonValue.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnJsonValue); + cy.createWrapper(VnJsonValue); }); }); diff --git a/test/cypress/components/common/VnLocation.spec.js b/test/cypress/components/common/VnLocation.spec.js index f2a9e319f..aee7b2087 100644 --- a/test/cypress/components/common/VnLocation.spec.js +++ b/test/cypress/components/common/VnLocation.spec.js @@ -2,7 +2,7 @@ import VnLocation from 'src/components/common/VnLocation.vue'; describe.skip('', () => { it('renders', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnLocation, { + cy.createWrapper(VnLocation, { props: { modelValue: 1234, location: { diff --git a/test/cypress/components/common/VnLog.spec.js b/test/cypress/components/common/VnLog.spec.js index 2a22dd45c..b9907fbeb 100644 --- a/test/cypress/components/common/VnLog.spec.js +++ b/test/cypress/components/common/VnLog.spec.js @@ -3,6 +3,6 @@ import VnLog from 'src/components/common/VnLog.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnLog); + cy.createWrapper(VnLog); }); }); diff --git a/test/cypress/components/common/VnLogFilter.spec.js b/test/cypress/components/common/VnLogFilter.spec.js index f5df4c3b1..288e0a604 100644 --- a/test/cypress/components/common/VnLogFilter.spec.js +++ b/test/cypress/components/common/VnLogFilter.spec.js @@ -3,6 +3,6 @@ import VnLogFilter from 'src/components/common/VnLogFilter.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnLogFilter); + cy.createWrapper(VnLogFilter); }); }); diff --git a/test/cypress/components/common/VnPopup.spec.js b/test/cypress/components/common/VnPopup.spec.js index bb8e6db10..34a88393d 100644 --- a/test/cypress/components/common/VnPopup.spec.js +++ b/test/cypress/components/common/VnPopup.spec.js @@ -3,6 +3,6 @@ import VnPopup from 'src/components/common/VnPopup.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnPopup); + cy.createWrapper(VnPopup); }); }); diff --git a/test/cypress/components/common/VnProgressModal.spec.js b/test/cypress/components/common/VnProgressModal.spec.js index 4616b032b..8d755acf7 100644 --- a/test/cypress/components/common/VnProgressModal.spec.js +++ b/test/cypress/components/common/VnProgressModal.spec.js @@ -3,6 +3,6 @@ import VnProgressModal from 'src/components/common/VnProgressModal.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnProgressModal); + cy.createWrapper(VnProgressModal); }); }); diff --git a/test/cypress/components/common/VnRadio.spec.js b/test/cypress/components/common/VnRadio.spec.js index 4060c781f..c22dbf1e3 100644 --- a/test/cypress/components/common/VnRadio.spec.js +++ b/test/cypress/components/common/VnRadio.spec.js @@ -3,6 +3,6 @@ import VnRadio from 'src/components/common/VnRadio.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnRadio); + cy.createWrapper(VnRadio); }); }); diff --git a/test/cypress/components/common/VnSectionMain.spec.js b/test/cypress/components/common/VnSectionMain.spec.js index dfb6cb069..46e178e2d 100644 --- a/test/cypress/components/common/VnSectionMain.spec.js +++ b/test/cypress/components/common/VnSectionMain.spec.js @@ -3,7 +3,7 @@ import VnSectionMain from 'src/components/common/VnSectionMain.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnSectionMain, { + cy.createWrapper(VnSectionMain, { props: { leftDrawer: true, }, diff --git a/test/cypress/components/common/VnSelect.spec.js b/test/cypress/components/common/VnSelect.spec.js index 218a271a4..6488728d0 100644 --- a/test/cypress/components/common/VnSelect.spec.js +++ b/test/cypress/components/common/VnSelect.spec.js @@ -3,6 +3,6 @@ import VnSelect from 'src/components/common/VnSelect.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnSelect); + cy.createWrapper(VnSelect); }); }); diff --git a/test/cypress/components/common/VnSelectCache.spec.js b/test/cypress/components/common/VnSelectCache.spec.js index ca271bea5..c10514879 100644 --- a/test/cypress/components/common/VnSelectCache.spec.js +++ b/test/cypress/components/common/VnSelectCache.spec.js @@ -3,6 +3,6 @@ import VnSelectCache from 'src/components/common/VnSelectCache.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnSelectCache); + cy.createWrapper(VnSelectCache); }); }); diff --git a/test/cypress/components/common/VnSelectDialog.spec.js b/test/cypress/components/common/VnSelectDialog.spec.js index def2c129a..73966aef2 100644 --- a/test/cypress/components/common/VnSelectDialog.spec.js +++ b/test/cypress/components/common/VnSelectDialog.spec.js @@ -3,6 +3,6 @@ import VnSelectDialog from 'src/components/common/VnSelectDialog.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnSelectDialog); + cy.createWrapper(VnSelectDialog); }); }); diff --git a/test/cypress/components/common/VnSelectEnum.spec.js b/test/cypress/components/common/VnSelectEnum.spec.js index 1260660e3..119e35d80 100644 --- a/test/cypress/components/common/VnSelectEnum.spec.js +++ b/test/cypress/components/common/VnSelectEnum.spec.js @@ -3,6 +3,6 @@ import VnSelectEnum from 'src/components/common/VnSelectEnum.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnSelectEnum); + cy.createWrapper(VnSelectEnum); }); }); diff --git a/test/cypress/components/common/VnSmsDialog.spec.js b/test/cypress/components/common/VnSmsDialog.spec.js index a5a302485..e3ffaf95f 100644 --- a/test/cypress/components/common/VnSmsDialog.spec.js +++ b/test/cypress/components/common/VnSmsDialog.spec.js @@ -3,6 +3,6 @@ import VnSmsDialog from 'src/components/common/VnSmsDialog.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnSmsDialog); + cy.createWrapper(VnSmsDialog); }); }); diff --git a/test/cypress/components/common/VnSummaryDialog.spec.js b/test/cypress/components/common/VnSummaryDialog.spec.js index d83e15a53..5896631fb 100644 --- a/test/cypress/components/common/VnSummaryDialog.spec.js +++ b/test/cypress/components/common/VnSummaryDialog.spec.js @@ -3,6 +3,6 @@ import VnSummaryDialog from 'src/components/common/VnSummaryDialog.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnSummaryDialog); + cy.createWrapper(VnSummaryDialog); }); }); diff --git a/test/cypress/components/common/VnTitle.spec.js b/test/cypress/components/common/VnTitle.spec.js index e00f60583..30bf268d4 100644 --- a/test/cypress/components/common/VnTitle.spec.js +++ b/test/cypress/components/common/VnTitle.spec.js @@ -2,7 +2,7 @@ import VnTitle from 'src/components/common/VnTitle.vue'; describe('', () => { it('renders text with link', () => { - cy.vnMount(VnTitle, { + cy.createWrapper(VnTitle, { props: { url: 'https://example.com', text: 'Example Link', @@ -13,7 +13,7 @@ describe('', () => { cy.get('a').should('contain.text', 'Example Link'); }); it('renders text without link', () => { - cy.vnMount(VnTitle, { + cy.createWrapper(VnTitle, { props: { text: 'No Link', }, @@ -24,21 +24,21 @@ describe('', () => { }); it('applies correct classes based on url prop', () => { - cy.vnMount(VnTitle, { + cy.createWrapper(VnTitle, { props: { url: 'https://example.com', }, }); cy.get('a').should('have.class', 'link'); - cy.vnMount(VnTitle, { + cy.createWrapper(VnTitle, { props: {}, }); cy.get('a').should('have.class', 'color-vn-text'); }); it('displays icon when url is provided', () => { - cy.vnMount(VnTitle, { + cy.createWrapper(VnTitle, { props: { url: 'https://example.com', }, @@ -47,27 +47,27 @@ describe('', () => { }); it('does not display icon when url is not provided', () => { - cy.vnMount(VnTitle, { + cy.createWrapper(VnTitle, { props: {}, }); cy.get('.q-icon').should('not.exist'); }); it('applies correct cursor style based on url prop', () => { - cy.vnMount(VnTitle, { + cy.createWrapper(VnTitle, { props: { url: 'https://example.com', }, }); cy.get('.header-link').should('have.css', 'cursor', 'pointer'); - cy.vnMount(VnTitle, { + cy.createWrapper(VnTitle, { props: {}, }); cy.get('.header-link').should('have.css', 'cursor', 'default'); }); it('renders default icon when no icon prop is provided', () => { - cy.vnMount(VnTitle, { + cy.createWrapper(VnTitle, { props: { url: 'https://example.com', }, @@ -76,7 +76,7 @@ describe('', () => { }); it('renders custom icon when icon prop is provided', () => { - cy.vnMount(VnTitle, { + cy.createWrapper(VnTitle, { props: { url: 'https://example.com', icon: 'custom_icon', diff --git a/test/cypress/components/common/VnWeekdayPicker.spec.js b/test/cypress/components/common/VnWeekdayPicker.spec.js index fbe588a46..46363e8e8 100644 --- a/test/cypress/components/common/VnWeekdayPicker.spec.js +++ b/test/cypress/components/common/VnWeekdayPicker.spec.js @@ -3,6 +3,6 @@ import VnWeekdayPicker from 'src/components/common/VnWeekdayPicker.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnWeekdayPicker); + cy.createWrapper(VnWeekdayPicker); }); }); diff --git a/test/cypress/components/common/vnDiscount.spec.js b/test/cypress/components/common/vnDiscount.spec.js index fd5648df9..990c5121d 100644 --- a/test/cypress/components/common/vnDiscount.spec.js +++ b/test/cypress/components/common/vnDiscount.spec.js @@ -3,6 +3,6 @@ import vnDiscount from 'src/components/common/vnDiscount.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(vnDiscount); + cy.createWrapper(vnDiscount); }); }); diff --git a/test/cypress/components/ui/CardDescriptor.spec.js b/test/cypress/components/ui/CardDescriptor.spec.js index 086a1fd6f..bfa793580 100644 --- a/test/cypress/components/ui/CardDescriptor.spec.js +++ b/test/cypress/components/ui/CardDescriptor.spec.js @@ -3,6 +3,6 @@ import CardDescriptor from 'src/components/ui/CardDescriptor.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CardDescriptor); + cy.createWrapper(CardDescriptor); }); }); diff --git a/test/cypress/components/ui/CardList.spec.js b/test/cypress/components/ui/CardList.spec.js index b180f9f9c..dbb3dc89b 100644 --- a/test/cypress/components/ui/CardList.spec.js +++ b/test/cypress/components/ui/CardList.spec.js @@ -3,6 +3,6 @@ import CardList from 'src/components/ui/CardList.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CardList); + cy.createWrapper(CardList); }); }); diff --git a/test/cypress/components/ui/CardSummary.spec.js b/test/cypress/components/ui/CardSummary.spec.js index f9f78685c..62c60b86b 100644 --- a/test/cypress/components/ui/CardSummary.spec.js +++ b/test/cypress/components/ui/CardSummary.spec.js @@ -3,6 +3,6 @@ import CardSummary from 'src/components/ui/CardSummary.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CardSummary); + cy.createWrapper(CardSummary); }); }); diff --git a/test/cypress/components/ui/CatalogItem.spec.js b/test/cypress/components/ui/CatalogItem.spec.js index 4b9896928..ae3159cdd 100644 --- a/test/cypress/components/ui/CatalogItem.spec.js +++ b/test/cypress/components/ui/CatalogItem.spec.js @@ -3,6 +3,6 @@ import CatalogItem from 'src/components/ui/CatalogItem.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(CatalogItem); + cy.createWrapper(CatalogItem); }); }); diff --git a/test/cypress/components/ui/FetchedTags.spec.js b/test/cypress/components/ui/FetchedTags.spec.js index d148f6784..9cb11e165 100644 --- a/test/cypress/components/ui/FetchedTags.spec.js +++ b/test/cypress/components/ui/FetchedTags.spec.js @@ -3,6 +3,6 @@ import FetchedTags from 'src/components/ui/FetchedTags.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(FetchedTags); + cy.createWrapper(FetchedTags); }); }); diff --git a/test/cypress/components/ui/QCalendarMonthWrapper.spec.js b/test/cypress/components/ui/QCalendarMonthWrapper.spec.js index e21df9112..7bdd1e046 100644 --- a/test/cypress/components/ui/QCalendarMonthWrapper.spec.js +++ b/test/cypress/components/ui/QCalendarMonthWrapper.spec.js @@ -3,6 +3,6 @@ import QCalendarMonthWrapper from 'src/components/ui/QCalendarMonthWrapper.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(QCalendarMonthWrapper); + cy.createWrapper(QCalendarMonthWrapper); }); }); diff --git a/test/cypress/components/ui/SkeletonDescriptor.spec.js b/test/cypress/components/ui/SkeletonDescriptor.spec.js index ad863140a..e3876d38b 100644 --- a/test/cypress/components/ui/SkeletonDescriptor.spec.js +++ b/test/cypress/components/ui/SkeletonDescriptor.spec.js @@ -3,6 +3,6 @@ import SkeletonDescriptor from 'src/components/ui/SkeletonDescriptor.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(SkeletonDescriptor); + cy.createWrapper(SkeletonDescriptor); }); }); diff --git a/test/cypress/components/ui/SkeletonForm.spec.js b/test/cypress/components/ui/SkeletonForm.spec.js index 787372979..7547b79b1 100644 --- a/test/cypress/components/ui/SkeletonForm.spec.js +++ b/test/cypress/components/ui/SkeletonForm.spec.js @@ -3,6 +3,6 @@ import SkeletonForm from 'src/components/ui/SkeletonForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(SkeletonForm); + cy.createWrapper(SkeletonForm); }); }); diff --git a/test/cypress/components/ui/SkeletonSummary.spec.js b/test/cypress/components/ui/SkeletonSummary.spec.js index 6a0fed75e..5e06e35c6 100644 --- a/test/cypress/components/ui/SkeletonSummary.spec.js +++ b/test/cypress/components/ui/SkeletonSummary.spec.js @@ -3,6 +3,6 @@ import SkeletonSummary from 'src/components/ui/SkeletonSummary.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(SkeletonSummary); + cy.createWrapper(SkeletonSummary); }); }); diff --git a/test/cypress/components/ui/SkeletonTable.spec.js b/test/cypress/components/ui/SkeletonTable.spec.js index 78ca4d962..cebd421a7 100644 --- a/test/cypress/components/ui/SkeletonTable.spec.js +++ b/test/cypress/components/ui/SkeletonTable.spec.js @@ -3,6 +3,6 @@ import SkeletonTable from 'src/components/ui/SkeletonTable.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(SkeletonTable); + cy.createWrapper(SkeletonTable); }); }); diff --git a/test/cypress/components/ui/VnAvatar.spec.js b/test/cypress/components/ui/VnAvatar.spec.js index cee78ed9e..375c66104 100644 --- a/test/cypress/components/ui/VnAvatar.spec.js +++ b/test/cypress/components/ui/VnAvatar.spec.js @@ -3,6 +3,6 @@ import VnAvatar from 'src/components/ui/VnAvatar.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnAvatar); + cy.createWrapper(VnAvatar); }); }); diff --git a/test/cypress/components/ui/VnConfirm.spec.js b/test/cypress/components/ui/VnConfirm.spec.js index 7a1439ff5..111770197 100644 --- a/test/cypress/components/ui/VnConfirm.spec.js +++ b/test/cypress/components/ui/VnConfirm.spec.js @@ -3,6 +3,6 @@ import VnConfirm from 'src/components/ui/VnConfirm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnConfirm); + cy.createWrapper(VnConfirm); }); }); diff --git a/test/cypress/components/ui/VnFilterPanel.spec.js b/test/cypress/components/ui/VnFilterPanel.spec.js index fe6cfbda2..ea5f5aaa2 100644 --- a/test/cypress/components/ui/VnFilterPanel.spec.js +++ b/test/cypress/components/ui/VnFilterPanel.spec.js @@ -3,6 +3,6 @@ import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnFilterPanel); + cy.createWrapper(VnFilterPanel); }); }); diff --git a/test/cypress/components/ui/VnFilterPanelChip.spec.js b/test/cypress/components/ui/VnFilterPanelChip.spec.js index ad68b3480..fa8979f77 100644 --- a/test/cypress/components/ui/VnFilterPanelChip.spec.js +++ b/test/cypress/components/ui/VnFilterPanelChip.spec.js @@ -3,6 +3,6 @@ import VnFilterPanelChip from 'src/components/ui/VnFilterPanelChip.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnFilterPanelChip); + cy.createWrapper(VnFilterPanelChip); }); }); diff --git a/test/cypress/components/ui/VnImg.spec.js b/test/cypress/components/ui/VnImg.spec.js index 34969f1d9..e0efefa84 100644 --- a/test/cypress/components/ui/VnImg.spec.js +++ b/test/cypress/components/ui/VnImg.spec.js @@ -3,6 +3,6 @@ import VnImg from 'src/components/ui/VnImg.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnImg); + cy.createWrapper(VnImg); }); }); diff --git a/test/cypress/components/ui/VnLinkPhone.spec.js b/test/cypress/components/ui/VnLinkPhone.spec.js index cf1b484f4..478ada35b 100644 --- a/test/cypress/components/ui/VnLinkPhone.spec.js +++ b/test/cypress/components/ui/VnLinkPhone.spec.js @@ -3,6 +3,6 @@ import VnLinkPhone from 'src/components/ui/VnLinkPhone.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnLinkPhone); + cy.createWrapper(VnLinkPhone); }); }); diff --git a/test/cypress/components/ui/VnLogo.spec.js b/test/cypress/components/ui/VnLogo.spec.js index 1f6dbdc5b..02df1c3e3 100644 --- a/test/cypress/components/ui/VnLogo.spec.js +++ b/test/cypress/components/ui/VnLogo.spec.js @@ -3,6 +3,6 @@ import VnLogo from 'src/components/ui/VnLogo.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnLogo); + cy.createWrapper(VnLogo); }); }); diff --git a/test/cypress/components/ui/VnLv.spec.js b/test/cypress/components/ui/VnLv.spec.js index 342c59610..8c9e01927 100644 --- a/test/cypress/components/ui/VnLv.spec.js +++ b/test/cypress/components/ui/VnLv.spec.js @@ -3,6 +3,6 @@ import VnLv from 'src/components/ui/VnLv.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnLv); + cy.createWrapper(VnLv); }); }); diff --git a/test/cypress/components/ui/VnNotes.spec.js b/test/cypress/components/ui/VnNotes.spec.js index 3966f54c2..7e3768997 100644 --- a/test/cypress/components/ui/VnNotes.spec.js +++ b/test/cypress/components/ui/VnNotes.spec.js @@ -3,6 +3,6 @@ import VnNotes from 'src/components/ui/VnNotes.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnNotes); + cy.createWrapper(VnNotes); }); }); diff --git a/test/cypress/components/ui/VnOutForm.spec.js b/test/cypress/components/ui/VnOutForm.spec.js index ffc3f98d1..dfdaeea9a 100644 --- a/test/cypress/components/ui/VnOutForm.spec.js +++ b/test/cypress/components/ui/VnOutForm.spec.js @@ -3,6 +3,6 @@ import VnOutForm from 'src/components/ui/VnOutForm.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnOutForm); + cy.createWrapper(VnOutForm); }); }); diff --git a/test/cypress/components/ui/VnPaginate.spec.js b/test/cypress/components/ui/VnPaginate.spec.js index 73cb34ca0..a986f5ca7 100644 --- a/test/cypress/components/ui/VnPaginate.spec.js +++ b/test/cypress/components/ui/VnPaginate.spec.js @@ -3,6 +3,6 @@ import VnPaginate from 'src/components/ui/VnPaginate.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnPaginate); + cy.createWrapper(VnPaginate); }); }); diff --git a/test/cypress/components/ui/VnRow.spec.js b/test/cypress/components/ui/VnRow.spec.js index 6cc01f41d..89ba138db 100644 --- a/test/cypress/components/ui/VnRow.spec.js +++ b/test/cypress/components/ui/VnRow.spec.js @@ -3,6 +3,6 @@ import VnRow from 'src/components/ui/VnRow.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnRow); + cy.createWrapper(VnRow); }); }); diff --git a/test/cypress/components/ui/VnSearchbar.spec.js b/test/cypress/components/ui/VnSearchbar.spec.js index b66012270..fd2ccb627 100644 --- a/test/cypress/components/ui/VnSearchbar.spec.js +++ b/test/cypress/components/ui/VnSearchbar.spec.js @@ -3,6 +3,6 @@ import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnSearchbar); + cy.createWrapper(VnSearchbar); }); }); diff --git a/test/cypress/components/ui/VnSms.spec.js b/test/cypress/components/ui/VnSms.spec.js index 39b17b2e3..2a3ab6240 100644 --- a/test/cypress/components/ui/VnSms.spec.js +++ b/test/cypress/components/ui/VnSms.spec.js @@ -3,6 +3,6 @@ import VnSms from 'src/components/ui/VnSms.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnSms); + cy.createWrapper(VnSms); }); }); diff --git a/test/cypress/components/ui/VnSubToolbar.spec.js b/test/cypress/components/ui/VnSubToolbar.spec.js index 232e45a45..1fcc17f34 100644 --- a/test/cypress/components/ui/VnSubToolbar.spec.js +++ b/test/cypress/components/ui/VnSubToolbar.spec.js @@ -3,6 +3,6 @@ import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnSubToolbar); + cy.createWrapper(VnSubToolbar); }); }); diff --git a/test/cypress/components/ui/VnUserLink.spec.js b/test/cypress/components/ui/VnUserLink.spec.js index edb93d08b..d7e0c016d 100644 --- a/test/cypress/components/ui/VnUserLink.spec.js +++ b/test/cypress/components/ui/VnUserLink.spec.js @@ -3,6 +3,6 @@ import VnUserLink from 'src/components/ui/VnUserLink.vue'; describe.skip('', () => { it('TODO: boilerplate', () => { // see: https://on.cypress.io/mounting-vue - cy.vnMount(VnUserLink); + cy.createWrapper(VnUserLink); }); }); diff --git a/test/cypress/support/component.js b/test/cypress/support/component.js index 103f4d055..f3ca76ed1 100644 --- a/test/cypress/support/component.js +++ b/test/cypress/support/component.js @@ -1,7 +1,7 @@ import { createTestingPinia } from '@pinia/testing'; import { mount } from 'cypress/vue'; import { i18n } from 'src/boot/i18n'; - +import { Quasar } from 'quasar'; const pinia = createTestingPinia({ createSpy: () => {}, stubActions: false }); // // Run this code before each *test*. @@ -16,7 +16,7 @@ const pinia = createTestingPinia({ createSpy: () => {}, stubActions: false }); function createWrapper(component, options) { const defaultOptions = { global: { - plugins: [i18n, pinia], + plugins: [Quasar, i18n, pinia], }, mocks: { t: (tKey) => tKey, @@ -48,33 +48,3 @@ function createWrapper(component, options) { // } Cypress.Commands.add('createWrapper', createWrapper); -// Cypress.Commands.add('mount', mount); -import { shallowMount } from '@vue/test-utils'; -import { Quasar } from 'quasar'; - -Cypress.Commands.add('vnMount', (component, options = {}) => { - const globalConfig = { - global: { - stubs: ['router-view', 'vue-i18n'], - plugins: [Quasar, i18n, pinia], - mocks: { t: (key) => key }, - }, - }; - // options.global = options.global || {}; - // options.global.stubs = options.global.stubs || {}; - // options.global.stubs.transition = false; - // options.global.components = options.global.components || {}; - // options.global.plugins = options.global.plugins || []; - - // Use store passed in from options, or initialize a new one - // const { /* store = getStore(), */ ...mountOptions } = options; - - // Add plugins here - // options.global.plugins.push({ - // install(app) { - // app.use(i18n); - // }, - // }); - console.log({ ...globalConfig, ...options }); - return shallowMount(component, { ...globalConfig, ...options }); -});