Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

43 wiersze
1.7 KiB

  1. context("List View Settings", () => {
  2. beforeEach(() => {
  3. cy.login();
  4. cy.visit("/app/website");
  5. });
  6. it("Default settings", () => {
  7. cy.visit("/app/List/DocType/List");
  8. cy.clear_filters();
  9. cy.get(".list-count").should("contain", "20 of");
  10. cy.get(".list-stats").should("contain", "Tags");
  11. });
  12. it("disable count and sidebar stats then verify", () => {
  13. cy.wait(300);
  14. cy.visit("/app/List/DocType/List");
  15. cy.clear_filters();
  16. cy.wait(300);
  17. cy.get(".list-count").should("contain", "20 of");
  18. cy.get("[href='#es-line-chat-alt']").should("be.visible");
  19. cy.get(".menu-btn-group button").click();
  20. cy.get(".dropdown-menu li").filter(":visible").contains("List Settings").click();
  21. cy.get(".modal-dialog").should("contain", "DocType Settings");
  22. cy.findByLabelText("Disable Count").check({ force: true });
  23. cy.findByLabelText("Disable Comment Count").check({ force: true });
  24. cy.findByLabelText("Disable Sidebar Stats").check({ force: true });
  25. cy.findByRole("button", { name: "Save" }).click();
  26. cy.reload({ force: true });
  27. cy.get(".list-count").should("be.empty");
  28. cy.get(".list-sidebar .list-tags").should("not.exist");
  29. cy.get("[href='#es-line-chat-alt']").should("not.be.visible");
  30. cy.get(".menu-btn-group button").click({ force: true });
  31. cy.get(".dropdown-menu li").filter(":visible").contains("List Settings").click();
  32. cy.get(".modal-dialog").should("contain", "DocType Settings");
  33. cy.findByLabelText("Disable Count").uncheck({ force: true });
  34. cy.findByLabelText("Disable Comment Count").uncheck({ force: true });
  35. cy.findByLabelText("Disable Sidebar Stats").uncheck({ force: true });
  36. cy.findByRole("button", { name: "Save" }).click();
  37. });
  38. });