class Forms { EmptyFormCompound(){ cy.get('#securityGroup').click() cy.get('#name').click() cy.get('#securityGroup-helper-text').should('have.text', 'Security group is required'); cy.get('#name').click() cy.get('#alias').click; cy.get('#name-helper-text').should('be.visible'); cy.get('#alias').click() cy.get('#name-helper-text').should('have.text', 'Must not be null'); cy.get('.space-form > .space-autocomplete > .MuiAutocomplete-root > .MuiFormControl-root > .MuiInputBase-root > input').click(); cy.get('#description').click({ force: true }); cy.get('#description').click() cy.get('#lead-helper-text').should('be.visible'); cy.get('#lead-helper-text').should('have.text', 'Field \'securityGroup\' must be set'); cy.get('.MuiDialogActions-root > :nth-child(2)').should('be.disabled'); } EmptyFormStudy(){ cy.get('#compoundName').should('be.disabled') cy.get('#name').click() cy.get('#alias').click() cy.get('#name-helper-text').should('be.visible'); cy.get('#name-helper-text').should('have.text','Must not be null'); cy.get('#name-helper-text').should('have.text', 'Must not be null'); cy.get('.space-form > .space-autocomplete > .MuiAutocomplete-root > .MuiFormControl-root > .MuiInputBase-root > input').click(); cy.get('#description').click({ force: true }); cy.get('#description').click() cy.get('#lead-helper-text').should('be.visible'); cy.get('#lead-helper-text').should('have.text', 'Lead is required'); cy.get('.MuiDialogActions-root > :nth-child(2)').should('be.disabled'); } } export const Createforms = new Forms()