Skip to content
Snippets Groups Projects
AttributeEdit_Person.ts 1.42 KiB
Newer Older
describe("Add, change, cancel, delete Attribute in Person", () =>
{
        
    it([Tag.DEFAULT], "Should add Attribute in Person", () =>
    {
        cy.login();
        cy.openMainFromFilter("Person", 2);
        cy.openTabInMain("Eigenschaften");
        cy.pressInsert();
        cy.getLookUpField("AB_ATTRIBUTE_ID").openLookupWithSearch({query: 'Geburtstagsliste', select: 1}, true);
        cy.fillComboField("VALUE", "Ja");
        cy.pressSave();
    });
    
    it([Tag.DEFAULT], "Should change Attribute in Person", () =>
    {
        cy.login();
        cy.openMainFromFilter("Person", 2);
        cy.openTabInMain("Eigenschaften");
        cy.selectValue("Geb", "tree");
        cy.pressButton(0);
        cy.fillComboField("VALUE", "Nein");
        cy.pressSave();
    });
    
    it([Tag.DEFAULT], "Should start to change but cancel the change of Attribute in Person", () =>
    {
        cy.login();
        cy.openMainFromFilter("Person", 2);
        cy.openTabInMain("Eigenschaften");
        cy.selectValue("Geb", "tree");
        cy.pressButton(0);
        cy.fillComboField("VALUE", "Nein");
        cy.pressCancel();
    });
   
    it([Tag.DEFAULT], "Should delete Attribute in Person", () =>
    {
        cy.login();
        cy.openMainFromFilter("Person", 2);
        cy.openTabInMain("Eigenschaften");
        cy.selectValue(1, "tree");
        cy.pressButton(1);
        cy.get(".neon-button").type("{enter}");
    });
});