Newer
Older
describe("Create Organisation", () =>
{
it([Tag.DEFAULT], "Should create an organisation with all necessary fields", () =>
{
cy.login();
var name = "myTestOrg";
cy.openContext("Organisation", "OrganisationEdit_view", PresentationMode.EDIT, {});
cy.getEditField("NAME").type(name);
cy.get(".neon-multiple-value-edit[data-test-component-name='MultipleEdit'] [data-test-component-mve-action='delete']").first().click();
cy.get(".is-required[data-test-component-name='VALUE']").first().type("gering");
cy.get(".is-required[data-test-component-name='VALUE']").first().type("{enter}");
cy.get(".is-required[data-test-component-name='VALUE']").last().type("Logistik");
cy.get(".is-required[data-test-component-name='VALUE']").last().type("{enter}");
cy.saveEdit();
cy.filterField("Name", name, FilterType.TEXT, [{type: 'ist gleich', count: 1}], "Organisation"); //filter for the org and see if it is there
cy.openMainFromFilter(null, 0);
cy.deleteAfterCreation("Organisation");//delete it again
});
});