/// describe('Item botanical', () => { beforeEach(() => { cy.viewport(1920, 1080); cy.login('developer'); cy.visit(`/#/item/1/botanical`); }); it('should modify the botanical', () => { cy.dataCy('AddGenusSelectDialog').type('Abies'); cy.get('.q-menu .q-item').contains('Abies').click(); cy.dataCy('AddSpeciesSelectDialog').type('dealbata'); cy.get('.q-menu .q-item').contains('dealbata').click(); cy.get('.q-btn-group > .q-btn--standard').click(); cy.checkNotification('Data saved'); }); it('should create a new Genus', () => { cy.dataCy('Genus_icon').click(); cy.dataCy('Latin genus name_input').type('Test'); cy.dataCy('FormModelPopup_save').click(); cy.checkNotification('Data created'); }); it('should create a new specie', () => { cy.dataCy('Species_icon').click(); cy.dataCy('Latin species name_input').type('Test specie'); cy.dataCy('FormModelPopup_save').click(); cy.checkNotification('Data created'); }); });