forked from apside-qualite/cypress-seed
parent
124d54936e
commit
fcb2e2160b
@ -1,43 +1,6 @@ |
||||
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'); |
||||
|
||||
fillForm(){ |
||||
// TODO Do an exemple;
|
||||
} |
||||
|
||||
} |
||||
|
@ -1,5 +1,5 @@ |
||||
/// <reference types="Cypress"/>
|
||||
// Field validator
|
||||
export function fieldErrorValidator(){ |
||||
|
||||
// TODO do an exemple
|
||||
} |
||||
|
Loading…
Reference in new issue