diff --git a/src/pages/Item/ItemList.vue b/src/pages/Item/ItemList.vue index aaec6335b..cb29aef1f 100644 --- a/src/pages/Item/ItemList.vue +++ b/src/pages/Item/ItemList.vue @@ -1,5 +1,5 @@ [ onDataSaved: ({ id }) => tableRef.redirect(`${id}/basic-data`), formInitialData: { editorFk: entityId, - tag: 56, - priority: 2, + tag: defaultTag, + priority: defaultPriority, }, }" :order="['isActive DESC', 'name', 'id']" diff --git a/test/cypress/integration/item/itemBotanical.spec.js b/test/cypress/integration/item/itemBotanical.spec.js index e5083609f..08886d9a8 100644 --- a/test/cypress/integration/item/itemBotanical.spec.js +++ b/test/cypress/integration/item/itemBotanical.spec.js @@ -3,12 +3,10 @@ describe('Item botanical', () => { beforeEach(() => { cy.viewport(1920, 1080); cy.login('developer'); - cy.visit(`/#/item/list`); - cy.typeSearchbar('1{enter}'); + cy.visit(`/#/item/1/botanical`); }); it('should modify the botanical', () => { - cy.get('[href="#/item/1/botanical"]').click(); cy.dataCy('AddGenusSelectDialog').type('Abies'); cy.get('.q-menu .q-item').contains('Abies').click(); cy.dataCy('AddSpeciesSelectDialog').type('dealbata'); @@ -18,7 +16,6 @@ describe('Item botanical', () => { }); it('should create a new Genus', () => { - cy.get('[href="#/item/1/botanical"]').click(); cy.dataCy('Genus_icon').click(); cy.dataCy('Latin genus name_input').type('Test'); cy.dataCy('FormModelPopup_save').click(); @@ -26,7 +23,6 @@ describe('Item botanical', () => { }); it('should create a new specie', () => { - cy.get('[href="#/item/1/botanical"]').click(); cy.dataCy('Species_icon').click(); cy.dataCy('Latin species name_input').type('Test specie'); cy.dataCy('FormModelPopup_save').click(); diff --git a/test/cypress/integration/item/itemSummary.spec.js b/test/cypress/integration/item/itemSummary.spec.js index 0da9b1643..ad8267ecf 100644 --- a/test/cypress/integration/item/itemSummary.spec.js +++ b/test/cypress/integration/item/itemSummary.spec.js @@ -3,8 +3,7 @@ describe('Item summary', () => { beforeEach(() => { cy.viewport(1920, 1080); cy.login('developer'); - cy.visit(`/#/item/list`); - cy.typeSearchbar('1{enter}'); + cy.visit(`/#/item/1/summary`); }); it('should clone the item', () => { diff --git a/test/cypress/integration/item/itemTax.spec.js b/test/cypress/integration/item/itemTax.spec.js index 5de8256ea..6ff147135 100644 --- a/test/cypress/integration/item/itemTax.spec.js +++ b/test/cypress/integration/item/itemTax.spec.js @@ -3,12 +3,10 @@ describe('Item tax', () => { beforeEach(() => { cy.viewport(1920, 1080); cy.login('developer'); - cy.visit(`/#/item/list`); - cy.typeSearchbar('1{enter}'); + cy.visit(`/#/item/1/tax`); }); it('should modify the tax for Spain', () => { - cy.get('[href="#/item/1/tax"]').click(); cy.dataCy('Class_select').eq(1).type('General VAT{enter}'); cy.dataCy('crudModelDefaultSaveBtn').click(); cy.checkNotification('Data saved');