feat: refs #7701 wip FormModel changes

This commit is contained in:
Jon Elias 2025-04-11 06:24:40 +02:00
parent 10094c3918
commit 1776703e26
5 changed files with 9 additions and 4 deletions

View File

@ -0,0 +1,4 @@
import setDefault from './setDefault';
import { QDialog } from 'quasar';
setDefault(QDialog, 'noRouteDismiss', true);

View File

@ -1,3 +1,4 @@
export * from './defaults/qTable';
export * from './defaults/qInput';
export * from './defaults/qSelect';
export * from './defaults/qDialog';

View File

@ -194,13 +194,9 @@ watch(
watch(
() => formData.value,
async (newData, oldData) => {
// console.log('Form data changed:', newData);
// console.log('formData: ', formData.value);
if (JSON.stringify(newData) === JSON.stringify(oldData)) return;
// console.log('Current route query:', route.query);
if (!$props.searchUrl) return;
if (!newData) return;
// console.log('sigue');
const urlParams = JSON.stringify(newData);
await nextTick();
router.replace({

View File

@ -4,6 +4,8 @@ describe('Client web-access', () => {
cy.viewport(1280, 720);
cy.login('developer');
});
//falla
it('Should test buttons ', () => {
cy.visit('#/customer/1101/web-access');
cy.get('.q-page').should('be.visible');

View File

@ -13,6 +13,7 @@ describe('Item botanical', () => {
cy.checkNotification('Data saved');
});
//falla
it('should create a new Genus', () => {
cy.dataCy('Genus_icon').click();
cy.dataCy('Latin genus name_input').type('Test');
@ -20,6 +21,7 @@ describe('Item botanical', () => {
cy.checkNotification('Data created');
});
//falla
it('should create a new specie', () => {
cy.dataCy('Species_icon').click();
cy.dataCy('Latin species name_input').type('Test specie');