diff --git a/cypress.config.js b/cypress.config.js index f8e771093..e9aeb547a 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -1,4 +1,7 @@ const { defineConfig } = require('cypress'); +// https://docs.cypress.io/app/tooling/reporters +// https://docs.cypress.io/app/references/configuration +// https://www.npmjs.com/package/cypress-mochawesome-reporter module.exports = defineConfig({ e2e: { @@ -16,6 +19,7 @@ module.exports = defineConfig({ reporterOptions: { charts: true, reportPageTitle: 'Cypress Inline Reporter', + reportFilename: '[status]_[datetime]-report', embeddedScreenshots: true, reportDir: 'test/cypress/reports', inlineAssets: true, diff --git a/src/components/CreateBankEntityForm.vue b/src/components/CreateBankEntityForm.vue index a42be6ef8..2da3aa994 100644 --- a/src/components/CreateBankEntityForm.vue +++ b/src/components/CreateBankEntityForm.vue @@ -9,8 +9,6 @@ import VnRow from 'components/ui/VnRow.vue'; import FormModelPopup from './FormModelPopup.vue'; import { useState } from 'src/composables/useState'; -defineProps({ showEntityField: { type: Boolean, default: true } }); - const emit = defineEmits(['onDataSaved']); const { t } = useI18n(); const bicInputRef = ref(null); @@ -18,17 +16,16 @@ const state = useState(); const customer = computed(() => state.get('customer')); +const countriesFilter = { + fields: ['id', 'name', 'code'], +}; + const bankEntityFormData = reactive({ name: null, bic: null, countryFk: customer.value?.countryFk, - id: null, }); -const countriesFilter = { - fields: ['id', 'name', 'code'], -}; - const countriesOptions = ref([]); const onDataSaved = (...args) => { @@ -44,7 +41,6 @@ onMounted(async () => {