parent
be8cc201c1
commit
f5218dc844
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import { createTestingPinia } from '@pinia/testing';
|
import { createTestingPinia } from '@pinia/testing';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { setActivePinia } from 'pinia';
|
import { setActivePinia } from 'pinia';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import CreateManualInvoiceForm from 'src/components/CreateManualInvoiceForm.vue';
|
import CreateManualInvoiceForm from 'src/components/CreateManualInvoiceForm.vue';
|
||||||
|
|
||||||
describe.skip('<CreateManualInvoiceForm />', () => {
|
describe.skip('<CreateManualInvoiceForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import CreateNewCityForm from 'src/components/CreateNewCityForm.vue';
|
import CreateNewCityForm from 'src/components/CreateNewCityForm.vue';
|
||||||
|
|
||||||
describe.skip('<CreateNewCityForm />', () => {
|
describe.skip('<CreateNewCityForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import CreateNewExpenseForm from 'src/components/CreateNewExpenseForm.vue';
|
import CreateNewExpenseForm from 'src/components/CreateNewExpenseForm.vue';
|
||||||
|
|
||||||
describe.skip('<CreateNewExpenseForm />', () => {
|
describe.skip('<CreateNewExpenseForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import CreateNewPostcodeForm from 'src/components/CreateNewPostcodeForm.vue';
|
import CreateNewPostcodeForm from 'src/components/CreateNewPostcodeForm.vue';
|
||||||
|
|
||||||
describe.skip('<CreateNewPostcodeForm />', () => {
|
describe.skip('<CreateNewPostcodeForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import CreateNewProvinceForm from 'src/components/CreateNewProvinceForm.vue';
|
import CreateNewProvinceForm from 'src/components/CreateNewProvinceForm.vue';
|
||||||
|
|
||||||
describe.skip('<CreateNewProvinceForm />', () => {
|
describe.skip('<CreateNewProvinceForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import CreateThermographForm from 'src/components/CreateThermographForm.vue';
|
import CreateThermographForm from 'src/components/CreateThermographForm.vue';
|
||||||
|
|
||||||
describe.skip('<CreateThermographForm />', () => {
|
describe.skip('<CreateThermographForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import CrudModel from 'src/components/CrudModel.vue';
|
import CrudModel from 'src/components/CrudModel.vue';
|
||||||
|
|
||||||
describe.skip('<CrudModel />', () => {
|
describe.skip('<CrudModel />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import EditPictureForm from 'src/components/EditPictureForm.vue';
|
import EditPictureForm from 'src/components/EditPictureForm.vue';
|
||||||
|
|
||||||
describe.skip('<EditPictureForm />', () => {
|
describe.skip('<EditPictureForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import EditTableCellValueForm from 'src/components/EditTableCellValueForm.vue';
|
import EditTableCellValueForm from 'src/components/EditTableCellValueForm.vue';
|
||||||
|
|
||||||
describe.skip('<EditTableCellValueForm />', () => {
|
describe.skip('<EditTableCellValueForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import FetchData from 'src/components/FetchData.vue';
|
import FetchData from 'src/components/FetchData.vue';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import FilterItemForm from 'src/components/FilterItemForm.vue';
|
import FilterItemForm from 'src/components/FilterItemForm.vue';
|
||||||
|
|
||||||
describe.skip('<FilterItemForm />', () => {
|
describe.skip('<FilterItemForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import FilterTravelForm from 'src/components/FilterTravelForm.vue';
|
import FilterTravelForm from 'src/components/FilterTravelForm.vue';
|
||||||
|
|
||||||
describe.skip('<FilterTravelForm />', () => {
|
describe.skip('<FilterTravelForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import { Notify } from 'quasar';
|
import { Notify } from 'quasar';
|
||||||
import FormModel from 'src/components/FormModel.vue';
|
import FormModel from 'src/components/FormModel.vue';
|
||||||
import { useState } from 'src/composables/useState';
|
import { useState } from 'src/composables/useState';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import FormModelPopup from 'src/components/FormModelPopup.vue';
|
import FormModelPopup from 'src/components/FormModelPopup.vue';
|
||||||
|
|
||||||
describe.skip('<FormModelPopup />', () => {
|
describe.skip('<FormModelPopup />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import FormPopup from 'src/components/FormPopup.vue';
|
import FormPopup from 'src/components/FormPopup.vue';
|
||||||
|
|
||||||
describe.skip('<FormPopup />', () => {
|
describe.skip('<FormPopup />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import ItemsFilterPanel from 'src/components/ItemsFilterPanel.vue';
|
import ItemsFilterPanel from 'src/components/ItemsFilterPanel.vue';
|
||||||
|
|
||||||
describe.skip('<ItemsFilterPanel />', () => {
|
describe.skip('<ItemsFilterPanel />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import LeftMenu from 'src/components/LeftMenu.vue';
|
import LeftMenu from 'src/components/LeftMenu.vue';
|
||||||
|
|
||||||
describe.skip('<LeftMenu />', () => {
|
describe.skip('<LeftMenu />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import LeftMenuItem from 'src/components/LeftMenuItem.vue';
|
import LeftMenuItem from 'src/components/LeftMenuItem.vue';
|
||||||
|
|
||||||
describe.skip('<LeftMenuItem />', () => {
|
describe.skip('<LeftMenuItem />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import LeftMenuItemGroup from 'src/components/LeftMenuItemGroup.vue';
|
import LeftMenuItemGroup from 'src/components/LeftMenuItemGroup.vue';
|
||||||
|
|
||||||
describe.skip('<LeftMenuItemGroup />', () => {
|
describe.skip('<LeftMenuItemGroup />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import NavBar from 'src/components/NavBar.vue';
|
import NavBar from 'src/components/NavBar.vue';
|
||||||
|
|
||||||
describe.skip('<NavBar />', () => {
|
describe.skip('<NavBar />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import PinnedModules from 'src/components/PinnedModules.vue';
|
import PinnedModules from 'src/components/PinnedModules.vue';
|
||||||
|
|
||||||
describe.skip('<PinnedModules />', () => {
|
describe.skip('<PinnedModules />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import RefundInvoiceForm from 'src/components/RefundInvoiceForm.vue';
|
import RefundInvoiceForm from 'src/components/RefundInvoiceForm.vue';
|
||||||
|
|
||||||
describe.skip('<RefundInvoiceForm />', () => {
|
describe.skip('<RefundInvoiceForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import RegularizeStockForm from 'src/components/RegularizeStockForm.vue';
|
import RegularizeStockForm from 'src/components/RegularizeStockForm.vue';
|
||||||
|
|
||||||
describe.skip('<RegularizeStockForm />', () => {
|
describe.skip('<RegularizeStockForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import TransferInvoiceForm from 'src/components/TransferInvoiceForm.vue';
|
import TransferInvoiceForm from 'src/components/TransferInvoiceForm.vue';
|
||||||
|
|
||||||
describe.skip('<TransferInvoiceForm />', () => {
|
describe.skip('<TransferInvoiceForm />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import UserPanel from 'src/components/UserPanel.vue';
|
import UserPanel from 'src/components/UserPanel.vue';
|
||||||
|
|
||||||
describe.skip('<UserPanel />', () => {
|
describe.skip('<UserPanel />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import RightMenu from 'src/components/common/RightMenu.vue';
|
import RightMenu from 'src/components/common/RightMenu.vue';
|
||||||
|
|
||||||
describe.skip('<RightMenu />', () => {
|
describe.skip('<RightMenu />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import SendEmailDialog from 'src/components/common/SendEmailDialog.vue';
|
import SendEmailDialog from 'src/components/common/SendEmailDialog.vue';
|
||||||
|
|
||||||
describe('<SendEmailDialog />', () => {
|
describe('<SendEmailDialog />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import SendSmsDialog from 'src/components/common/SendSmsDialog.vue';
|
import SendSmsDialog from 'src/components/common/SendSmsDialog.vue';
|
||||||
|
|
||||||
describe.skip('<SendSmsDialog />', () => {
|
describe.skip('<SendSmsDialog />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import TableVisibleColumns from 'src/components/common/TableVisibleColumns.vue';
|
import TableVisibleColumns from 'src/components/common/TableVisibleColumns.vue';
|
||||||
|
|
||||||
describe.skip('<TableVisibleColumns />', () => {
|
describe.skip('<TableVisibleColumns />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnAccountNumber from 'src/components/common/VnAccountNumber.vue';
|
import VnAccountNumber from 'src/components/common/VnAccountNumber.vue';
|
||||||
|
|
||||||
describe.skip('<VnAccountNumber />', () => {
|
describe.skip('<VnAccountNumber />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnBreadcrumbs from 'src/components/common/VnBreadcrumbs.vue';
|
import VnBreadcrumbs from 'src/components/common/VnBreadcrumbs.vue';
|
||||||
|
|
||||||
describe.skip('<VnBreadcrumbs />', () => {
|
describe.skip('<VnBreadcrumbs />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnCard from 'src/components/common/VnCard.vue';
|
import VnCard from 'src/components/common/VnCard.vue';
|
||||||
|
|
||||||
describe.skip('<VnCard />', () => {
|
describe.skip('<VnCard />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnComponent from 'src/components/common/VnComponent.vue';
|
import VnComponent from 'src/components/common/VnComponent.vue';
|
||||||
|
|
||||||
describe.skip('<VnComponent />', () => {
|
describe.skip('<VnComponent />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnDms from 'src/components/common/VnDms.vue';
|
import VnDms from 'src/components/common/VnDms.vue';
|
||||||
|
|
||||||
describe.skip('<VnDms />', () => {
|
describe.skip('<VnDms />', () => {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnDmsList from 'src/components/common/VnDmsList.vue';
|
import VnDmsList from 'src/components/common/VnDmsList.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnDmsList />', () => {
|
describe.skip('<VnDmsList />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnInput from 'src/components/common/VnInput.vue';
|
import VnInput from 'src/components/common/VnInput.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnInput />', () => {
|
describe.skip('<VnInput />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnInputDate from 'src/components/common/VnInputDate.vue';
|
import VnInputDate from 'src/components/common/VnInputDate.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnInputDate />', () => {
|
describe.skip('<VnInputDate />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnInputNumber from 'src/components/common/VnInputNumber.vue';
|
import VnInputNumber from 'src/components/common/VnInputNumber.vue';
|
||||||
|
|
||||||
describe.skip('<VnInputNumber />', () => {
|
describe.skip('<VnInputNumber />', () => {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnInputTime from 'src/components/common/VnInputTime.vue';
|
import VnInputTime from 'src/components/common/VnInputTime.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnInputTime />', () => {
|
describe.skip('<VnInputTime />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnJsonValue from 'src/components/common/VnJsonValue.vue';
|
import VnJsonValue from 'src/components/common/VnJsonValue.vue';
|
||||||
|
|
||||||
describe('<VnJsonValue />', () => {
|
describe('<VnJsonValue />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnLocation from 'src/components/common/VnLocation.vue';
|
import VnLocation from 'src/components/common/VnLocation.vue';
|
||||||
describe.skip('<VnLocation />', () => {
|
describe.skip('<VnLocation />', () => {
|
||||||
const location = {
|
const location = {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnLog from 'src/components/common/VnLog.vue';
|
import VnLog from 'src/components/common/VnLog.vue';
|
||||||
|
|
||||||
describe('<VnLog />', () => {
|
describe('<VnLog />', () => {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnLogFilter from 'src/components/common/VnLogFilter.vue';
|
import VnLogFilter from 'src/components/common/VnLogFilter.vue';
|
||||||
|
|
||||||
describe.skip('<VnLogFilter />', () => {
|
describe.skip('<VnLogFilter />', () => {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnPopup from 'src/components/common/VnPopup.vue';
|
import VnPopup from 'src/components/common/VnPopup.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnPopup />', () => {
|
describe.skip('<VnPopup />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,9 +1,94 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnProgressModal from 'src/components/common/VnProgressModal.vue';
|
import VnProgressModal from 'src/components/common/VnProgressModal.vue';
|
||||||
|
|
||||||
describe.skip('<VnProgressModal />', () => {
|
describe.skip('<VnProgressModal />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
const mountComponent = (opt) => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
cy.createWrapper(VnProgressModal, opt);
|
||||||
cy.createWrapper(VnProgressModal);
|
};
|
||||||
|
|
||||||
|
it('should display progress and close button', () => {
|
||||||
|
mountComponent({
|
||||||
|
props: {
|
||||||
|
progress: 0.5,
|
||||||
|
showDialog: true,
|
||||||
|
cancelled: false,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
// Verifica que el diálogo esté visible
|
||||||
|
cy.get('.q-dialog').should('be.visible');
|
||||||
|
|
||||||
|
// Verifica el texto de progreso en el componente
|
||||||
|
cy.contains('50%');
|
||||||
|
|
||||||
|
// Verifica que el botón de cerrar esté presente
|
||||||
|
cy.get('.q-btn[icon="close"]').should('exist');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should emit close event when close button is clicked', () => {
|
||||||
|
// Espía el evento de cierre
|
||||||
|
const onClose = cy.spy().as('closeEvent');
|
||||||
|
mountComponent({
|
||||||
|
props: {
|
||||||
|
progress: 0.5,
|
||||||
|
showDialog: true,
|
||||||
|
},
|
||||||
|
listeners: {
|
||||||
|
close: onClose,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// Clic en el botón de cerrar
|
||||||
|
cy.get('.q-btn[icon="close"]').click();
|
||||||
|
|
||||||
|
// Asegúrate de que el evento se haya emitido
|
||||||
|
cy.get('@closeEvent').should('have.been.calledOnce');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should display cancelled badge if cancelled prop is true', () => {
|
||||||
|
// Montar el componente con `cancelled` en `true`
|
||||||
|
mountComponent({
|
||||||
|
props: {
|
||||||
|
progress: 0.5,
|
||||||
|
showDialog: true,
|
||||||
|
cancelled: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// Verifica que la etiqueta de cancelación esté visible
|
||||||
|
cy.contains('Cancelado').should('be.visible');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should emit cancel event when cancel button is clicked', () => {
|
||||||
|
// Espía el evento de cancelación
|
||||||
|
const onCancel = cy.spy().as('cancelEvent');
|
||||||
|
mountComponent({
|
||||||
|
props: {
|
||||||
|
progress: 0.5,
|
||||||
|
showDialog: true,
|
||||||
|
cancelled: false,
|
||||||
|
},
|
||||||
|
listeners: {
|
||||||
|
cancel: onCancel,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// Clic en el botón de cancelar
|
||||||
|
cy.contains('Cancelar').click();
|
||||||
|
|
||||||
|
// Asegúrate de que el evento se haya emitido
|
||||||
|
cy.get('@cancelEvent').should('have.been.calledOnce');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should hide cancel button when progress is 100%', () => {
|
||||||
|
// Montar el componente con `progress` en `1` (100%)
|
||||||
|
mountComponent({
|
||||||
|
props: {
|
||||||
|
progress: 1,
|
||||||
|
showDialog: true,
|
||||||
|
cancelled: false,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// Verificar que el botón de cancelar no esté presente
|
||||||
|
cy.contains('Cancelar').should('not.exist');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnRadio from 'src/components/common/VnRadio.vue';
|
import VnRadio from 'src/components/common/VnRadio.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnRadio />', () => {
|
describe.skip('<VnRadio />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnSectionMain from 'src/components/common/VnSectionMain.vue';
|
import VnSectionMain from 'src/components/common/VnSectionMain.vue';
|
||||||
|
|
||||||
describe.skip('<VnSectionMain />', () => {
|
describe.skip('<VnSectionMain />', () => {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnSelect from 'src/components/common/VnSelect.vue';
|
import VnSelect from 'src/components/common/VnSelect.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnSelect />', () => {
|
describe.skip('<VnSelect />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnSelectCache from 'src/components/common/VnSelectCache.vue';
|
import VnSelectCache from 'src/components/common/VnSelectCache.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnSelectCache />', () => {
|
describe.skip('<VnSelectCache />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnSelectDialog from 'src/components/common/VnSelectDialog.vue';
|
import VnSelectDialog from 'src/components/common/VnSelectDialog.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnSelectDialog />', () => {
|
describe.skip('<VnSelectDialog />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnSelectEnum from 'src/components/common/VnSelectEnum.vue';
|
import VnSelectEnum from 'src/components/common/VnSelectEnum.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnSelectEnum />', () => {
|
describe.skip('<VnSelectEnum />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,9 +1,79 @@
|
||||||
|
/* eslint-disable cypress/unsafe-to-chain-command */
|
||||||
|
/* eslint-disable cypress/no-assigning-return-values */
|
||||||
import VnSmsDialog from 'src/components/common/VnSmsDialog.vue';
|
import VnSmsDialog from 'src/components/common/VnSmsDialog.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnSmsDialog />', () => {
|
describe.skip('<VnSmsDialog />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
const defaultProps = {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
phone: '123456789',
|
||||||
cy.createWrapper(VnSmsDialog);
|
subject: 'Test Subject',
|
||||||
|
template: 'pendingPayment',
|
||||||
|
locale: 'es',
|
||||||
|
promise: cy.stub().resolves(),
|
||||||
|
};
|
||||||
|
|
||||||
|
const mountComponent = (opt) => {
|
||||||
|
cy.mount(VnSmsDialog, {
|
||||||
|
props: defaultProps,
|
||||||
|
...opt,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
it('renders dialog with all elements', () => {
|
||||||
|
mountComponent();
|
||||||
|
cy.get('.text-h6').should('contain', 'Send SMS');
|
||||||
|
cy.get('.q-select').should('exist');
|
||||||
|
cy.get('input[type="text"]').should('have.length', 2);
|
||||||
|
cy.get('textarea').should('exist');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('shows character counter and updates color based on length', () => {
|
||||||
|
mountComponent();
|
||||||
|
const longMessage = 'a'.repeat(150);
|
||||||
|
cy.get('textarea').clear().type(longMessage);
|
||||||
|
cy.get('.q-chip').should('have.class', 'bg-warning');
|
||||||
|
cy.get('.q-chip').should('contain', '150/160');
|
||||||
|
|
||||||
|
const maxMessage = 'a'.repeat(160);
|
||||||
|
cy.get('textarea').clear().type(maxMessage);
|
||||||
|
cy.get('.q-chip').should('have.class', 'bg-negative');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('updates message when changing language', () => {
|
||||||
|
mountComponent();
|
||||||
|
const initialMessage = cy.get('textarea').invoke('val');
|
||||||
|
cy.get('.q-select').click();
|
||||||
|
cy.get('.q-item').contains('English').click();
|
||||||
|
cy.get('textarea').invoke('val').should('not.equal', initialMessage);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('handles SMS sending', () => {
|
||||||
|
const promiseSpy = cy.spy(defaultProps.promise);
|
||||||
|
mountComponent({
|
||||||
|
props: { ...defaultProps, promise: promiseSpy },
|
||||||
|
});
|
||||||
|
|
||||||
|
cy.get('button').contains('confirm').click();
|
||||||
|
cy.wrap(promiseSpy).should('have.been.calledOnce');
|
||||||
|
cy.get('button').contains('confirm').should('have.class', 'loading');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('clears message with clear icon', () => {
|
||||||
|
mountComponent();
|
||||||
|
cy.get('textarea').type('Test message');
|
||||||
|
cy.get('.q-icon').contains('close').click();
|
||||||
|
cy.get('textarea').should('have.value', '');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('shows tooltip on info icon hover', () => {
|
||||||
|
mountComponent();
|
||||||
|
cy.get('.q-icon').contains('info').trigger('mouseover');
|
||||||
|
cy.get('.q-tooltip').should('be.visible');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('validates message length', () => {
|
||||||
|
mountComponent();
|
||||||
|
const tooLongMessage = 'a'.repeat(161);
|
||||||
|
cy.get('textarea').type(tooLongMessage);
|
||||||
|
cy.get('.q-field').should('have.class', 'q-field--error');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnSummaryDialog from 'src/components/common/VnSummaryDialog.vue';
|
import VnSummaryDialog from 'src/components/common/VnSummaryDialog.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnSummaryDialog />', () => {
|
describe.skip('<VnSummaryDialog />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnTitle from 'src/components/common/VnTitle.vue';
|
import VnTitle from 'src/components/common/VnTitle.vue';
|
||||||
|
|
||||||
describe('<VnTitle />', () => {
|
describe('<VnTitle />', () => {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnWeekdayPicker from 'src/components/common/VnWeekdayPicker.vue';
|
import VnWeekdayPicker from 'src/components/common/VnWeekdayPicker.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnWeekdayPicker />', () => {
|
describe.skip('<VnWeekdayPicker />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import vnDiscount from 'src/components/common/vnDiscount.vue';
|
import vnDiscount from 'src/components/common/vnDiscount.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<vnDiscount />', () => {
|
describe.skip('<vnDiscount />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import CardDescriptor from 'src/components/ui/CardDescriptor.vue';
|
import CardDescriptor from 'src/components/ui/CardDescriptor.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<CardDescriptor />', () => {
|
describe.skip('<CardDescriptor />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,9 +1,92 @@
|
||||||
import CardList from 'src/components/ui/CardList.vue';
|
import CardList from 'src/components/ui/CardList.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
describe('<CardList />', () => {
|
||||||
describe.skip('<CardList />', () => {
|
const mountComponent = (opt) => {
|
||||||
it('TODO: boilerplate', () => {
|
const defaultProps = {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
element: { name: 'Item' },
|
||||||
cy.createWrapper(CardList);
|
id: 1,
|
||||||
|
isSelected: false,
|
||||||
|
title: 'Card Title',
|
||||||
|
showCheckbox: true,
|
||||||
|
hasInfoIcons: true,
|
||||||
|
};
|
||||||
|
cy.createWrapper(CardList, {
|
||||||
|
props: defaultProps,
|
||||||
|
...opt,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
it('should display title and ID chip', () => {
|
||||||
|
mountComponent();
|
||||||
|
// Verificar que el título esté presente
|
||||||
|
cy.contains('Card Title').should('be.visible');
|
||||||
|
|
||||||
|
// Verificar que la etiqueta ID esté presente y visible
|
||||||
|
cy.contains('ID: 1').should('be.visible');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should display checkbox when showCheckbox is true', () => {
|
||||||
|
mountComponent();
|
||||||
|
// Verificar que el checkbox esté visible cuando showCheckbox es verdadero
|
||||||
|
cy.get('.q-checkbox').should('exist');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should emit toggleCardCheck event when checkbox is clicked', () => {
|
||||||
|
mountComponent(); // Espiar el evento `toggleCardCheck`
|
||||||
|
const onToggleCardCheck = cy.spy().as('toggleCardCheckEvent');
|
||||||
|
mountComponent({
|
||||||
|
props: {
|
||||||
|
element: { name: 'Item' },
|
||||||
|
showCheckbox: true,
|
||||||
|
},
|
||||||
|
listeners: {
|
||||||
|
toggleCardCheck: onToggleCardCheck,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// Hacer clic en el checkbox
|
||||||
|
cy.get('.q-checkbox').click();
|
||||||
|
|
||||||
|
// Asegurarse de que el evento `toggleCardCheck` se emitió
|
||||||
|
cy.get('@toggleCardCheckEvent').should('have.been.calledOnce');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should display info-icons slot content when hasInfoIcons is true', () => {
|
||||||
|
// Montar el componente con el slot info-icons
|
||||||
|
mountComponent({
|
||||||
|
props: {
|
||||||
|
hasInfoIcons: true,
|
||||||
|
},
|
||||||
|
slots: {
|
||||||
|
'info-icons': `<div class="info-icon-slot">Info Icon</div>`,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// Verificar que el contenido del slot `info-icons` esté visible
|
||||||
|
cy.get('.info-icon-slot').should('be.visible');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should display list-items slot content', () => {
|
||||||
|
// Montar el componente con el slot `list-items`
|
||||||
|
mountComponent({
|
||||||
|
slots: {
|
||||||
|
'list-items': `<div class="list-item-slot">List Item</div>`,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// Verificar que el contenido del slot `list-items` esté visible
|
||||||
|
cy.get('.list-item-slot').should('be.visible');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should display actions slot content', () => {
|
||||||
|
// Montar el componente con el slot `actions`
|
||||||
|
mountComponent({
|
||||||
|
slots: {
|
||||||
|
actions: `<button class="action-button">Action</button>`,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// Verificar que el contenido del slot `actions` esté visible
|
||||||
|
cy.get('.action-button').should('be.visible');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,9 +1,98 @@
|
||||||
import CardSummary from 'src/components/ui/CardSummary.vue';
|
import CardSummary from 'src/components/ui/CardSummary.vue';
|
||||||
|
import { createRouter, createWebHistory } from 'vue-router';
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<CardSummary />', () => {
|
describe.skip('<CardSummary />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
let router, wrapper;
|
||||||
// see: https://on.cypress.io/mounting-vue
|
|
||||||
cy.createWrapper(CardSummary);
|
beforeEach(() => {
|
||||||
|
router = createRouter({
|
||||||
|
history: createWebHistory(),
|
||||||
|
routes: [
|
||||||
|
{
|
||||||
|
path: '/test',
|
||||||
|
name: 'test',
|
||||||
|
meta: { moduleName: 'test' },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/test/summary',
|
||||||
|
name: 'testSummary',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
const mountComponent = (opt) => {
|
||||||
|
opt = {
|
||||||
|
props: {
|
||||||
|
url: 'test-url',
|
||||||
|
dataKey: 'test-key',
|
||||||
|
...opt,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
cy.createWrapper(CardSummary, opt);
|
||||||
|
};
|
||||||
|
|
||||||
|
it('shows skeleton while loading', () => {
|
||||||
|
mountComponent();
|
||||||
|
cy.get('.cardSummary').find('SkeletonSummary').should('exist');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('displays entity data correctly', () => {
|
||||||
|
const mockEntity = {
|
||||||
|
id: 1,
|
||||||
|
name: 'Test Entity',
|
||||||
|
};
|
||||||
|
|
||||||
|
mountComponent();
|
||||||
|
// Intercept API call
|
||||||
|
cy.intercept('GET', 'test-url*', {
|
||||||
|
body: mockEntity,
|
||||||
|
}).as('fetchData');
|
||||||
|
|
||||||
|
cy.wait('@fetchData');
|
||||||
|
cy.get('.summaryHeader').find('VnLv').should('have.prop', 'label', '1 -');
|
||||||
|
cy.get('.summaryHeader').find('VnLv').should('have.prop', 'value', 'Test Entity');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('shows redirect icon when not in summary route', () => {
|
||||||
|
router.push('/test');
|
||||||
|
mountComponent({
|
||||||
|
entityId: 1,
|
||||||
|
moduleName: 'test',
|
||||||
|
});
|
||||||
|
|
||||||
|
cy.get('.header.link')
|
||||||
|
.should('exist')
|
||||||
|
.should('have.attr', 'href')
|
||||||
|
.and('include', '/test/summary');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('emits onFetch event after data fetch', () => {
|
||||||
|
const mockEntity = { id: 1, name: 'Test' };
|
||||||
|
const onFetchSpy = cy.spy().as('onFetchSpy');
|
||||||
|
|
||||||
|
mountComponent({
|
||||||
|
onFetch: onFetchSpy,
|
||||||
|
});
|
||||||
|
|
||||||
|
cy.intercept('GET', 'test-url*', {
|
||||||
|
body: mockEntity,
|
||||||
|
}).as('fetchData');
|
||||||
|
|
||||||
|
cy.wait('@fetchData');
|
||||||
|
cy.get('@onFetchSpy').should('have.been.calledWith', mockEntity);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('updates when props change', () => {
|
||||||
|
mountComponent();
|
||||||
|
|
||||||
|
cy.intercept('GET', 'new-url*').as('newFetch');
|
||||||
|
|
||||||
|
// Change props
|
||||||
|
cy.get('@wrapper').invoke('setProps', {
|
||||||
|
url: 'new-url',
|
||||||
|
filter: { test: true },
|
||||||
|
});
|
||||||
|
|
||||||
|
cy.wait('@newFetch');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import CatalogItem from 'src/components/ui/CatalogItem.vue';
|
import CatalogItem from 'src/components/ui/CatalogItem.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<CatalogItem />', () => {
|
describe.skip('<CatalogItem />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import FetchedTags from 'src/components/ui/FetchedTags.vue'; // Ajusta la ruta según tu estructura de proyecto
|
import FetchedTags from 'src/components/ui/FetchedTags.vue'; // Ajusta la ruta según tu estructura de proyecto
|
||||||
|
|
||||||
describe('FetchedTags', () => {
|
describe('FetchedTags', () => {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import QCalendarMonthWrapper from 'src/components/ui/QCalendarMonthWrapper.vue';
|
import QCalendarMonthWrapper from 'src/components/ui/QCalendarMonthWrapper.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<QCalendarMonthWrapper />', () => {
|
describe.skip('<QCalendarMonthWrapper />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
/// <reference types='cypress' />
|
||||||
import SkeletonDescriptor from 'src/components/ui/SkeletonDescriptor.vue';
|
import SkeletonDescriptor from 'src/components/ui/SkeletonDescriptor.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<SkeletonDescriptor />', () => {
|
describe.skip('<SkeletonDescriptor />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import SkeletonForm from 'src/components/ui/SkeletonForm.vue';
|
import SkeletonForm from 'src/components/ui/SkeletonForm.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<SkeletonForm />', () => {
|
describe.skip('<SkeletonForm />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import SkeletonSummary from 'src/components/ui/SkeletonSummary.vue';
|
import SkeletonSummary from 'src/components/ui/SkeletonSummary.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<SkeletonSummary />', () => {
|
describe.skip('<SkeletonSummary />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import SkeletonTable from 'src/components/ui/SkeletonTable.vue';
|
import SkeletonTable from 'src/components/ui/SkeletonTable.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<SkeletonTable />', () => {
|
describe.skip('<SkeletonTable />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
import VnAvatar from 'src/components/ui/VnAvatar.vue'; // Ajusta la ruta según tu estructura de proyecto
|
import VnAvatar from 'src/components/ui/VnAvatar.vue'; // Ajusta la ruta según tu estructura de proyecto
|
||||||
|
|
||||||
describe('VnAvatar', () => {
|
describe('VnAvatar', () => {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnConfirm from 'src/components/ui/VnConfirm.vue';
|
import VnConfirm from 'src/components/ui/VnConfirm.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnConfirm />', () => {
|
describe.skip('<VnConfirm />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
|
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnFilterPanel />', () => {
|
describe.skip('<VnFilterPanel />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnFilterPanelChip from 'src/components/ui/VnFilterPanelChip.vue';
|
import VnFilterPanelChip from 'src/components/ui/VnFilterPanelChip.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnFilterPanelChip />', () => {
|
describe.skip('<VnFilterPanelChip />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnImg from 'src/components/ui/VnImg.vue';
|
import VnImg from 'src/components/ui/VnImg.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnImg />', () => {
|
describe.skip('<VnImg />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnLinkPhone from 'src/components/ui/VnLinkPhone.vue';
|
import VnLinkPhone from 'src/components/ui/VnLinkPhone.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnLinkPhone />', () => {
|
describe.skip('<VnLinkPhone />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { Dark } from 'quasar';
|
import { Dark } from 'quasar';
|
||||||
import VnLogo from 'src/components/ui/VnLogo.vue';
|
import VnLogo from 'src/components/ui/VnLogo.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe('<VnLogo />', () => {
|
describe('<VnLogo />', () => {
|
||||||
const mountComponent = (opt = {}) => {
|
const mountComponent = (opt = {}) => {
|
||||||
cy.createWrapper(VnLogo, { props: { ...opt } });
|
cy.createWrapper(VnLogo, { props: { ...opt } });
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import VnLv from 'src/components/ui/VnLv.vue';
|
import VnLv from 'src/components/ui/VnLv.vue';
|
||||||
import { useClipboard } from 'src/composables/useClipboard';
|
import { useClipboard } from 'src/composables/useClipboard';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe('<VnLv />', () => {
|
describe('<VnLv />', () => {
|
||||||
before('login', () => {
|
before('login', () => {
|
||||||
Cypress.on('uncaught:exception', () => false);
|
Cypress.on('uncaught:exception', () => false);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnNotes from 'src/components/ui/VnNotes.vue';
|
import VnNotes from 'src/components/ui/VnNotes.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnNotes />', () => {
|
describe.skip('<VnNotes />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnOutForm from 'src/components/ui/VnOutForm.vue';
|
import VnOutForm from 'src/components/ui/VnOutForm.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnOutForm />', () => {
|
describe.skip('<VnOutForm />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnPaginate from 'src/components/ui/VnPaginate.vue';
|
import VnPaginate from 'src/components/ui/VnPaginate.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnPaginate />', () => {
|
describe.skip('<VnPaginate />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnRow from 'src/components/ui/VnRow.vue';
|
import VnRow from 'src/components/ui/VnRow.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnRow />', () => {
|
describe.skip('<VnRow />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
|
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnSearchbar />', () => {
|
describe.skip('<VnSearchbar />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnSms from 'src/components/ui/VnSms.vue';
|
import VnSms from 'src/components/ui/VnSms.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnSms />', () => {
|
describe.skip('<VnSms />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnSubToolbar />', () => {
|
describe.skip('<VnSubToolbar />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import VnUserLink from 'src/components/ui/VnUserLink.vue';
|
import VnUserLink from 'src/components/ui/VnUserLink.vue';
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
|
||||||
describe.skip('<VnUserLink />', () => {
|
describe.skip('<VnUserLink />', () => {
|
||||||
it('TODO: boilerplate', () => {
|
it('TODO: boilerplate', () => {
|
||||||
// see: https://on.cypress.io/mounting-vue
|
// see: https://on.cypress.io/mounting-vue
|
||||||
|
|
Loading…
Reference in New Issue