You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

44 lines
1.7 KiB

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()