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.
 
 
 
 
 
 

24 regels
722 B

  1. context("Customize Form", () => {
  2. before(() => {
  3. cy.login();
  4. cy.visit("/app/customize-form");
  5. });
  6. it("Changing to naming rule should update autoname", () => {
  7. cy.fill_field("doc_type", "ToDo", "Link").blur();
  8. cy.click_form_section("Naming");
  9. const naming_rule_default_autoname_map = {
  10. "Set by user": "prompt",
  11. "By fieldname": "field:",
  12. 'By "Naming Series" field': "naming_series:",
  13. Expression: "format:",
  14. "Expression (old style)": "",
  15. Random: "hash",
  16. "By script": "",
  17. };
  18. Cypress._.forOwn(naming_rule_default_autoname_map, (value, naming_rule) => {
  19. cy.fill_field("naming_rule", naming_rule, "Select");
  20. cy.get_field("autoname", "Data").should("have.value", value);
  21. });
  22. });
  23. });