Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

37 linhas
1.4 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.get(".list-count").should("contain", "20 of");
  9. cy.get(".list-stats").should("contain", "Tags");
  10. });
  11. it("disable count and sidebar stats then verify", () => {
  12. cy.wait(300);
  13. cy.visit("/app/List/DocType/List");
  14. cy.wait(300);
  15. cy.get(".list-count").should("contain", "20 of");
  16. cy.get(".menu-btn-group button").click();
  17. cy.get(".dropdown-menu li").filter(":visible").contains("List Settings").click();
  18. cy.get(".modal-dialog").should("contain", "DocType Settings");
  19. cy.findByLabelText("Disable Count").check({ force: true });
  20. cy.findByLabelText("Disable Sidebar Stats").check({ force: true });
  21. cy.findByRole("button", { name: "Save" }).click();
  22. cy.reload({ force: true });
  23. cy.get(".list-count").should("be.empty");
  24. cy.get(".list-sidebar .list-tags").should("not.exist");
  25. cy.get(".menu-btn-group button").click({ force: true });
  26. cy.get(".dropdown-menu li").filter(":visible").contains("List Settings").click();
  27. cy.get(".modal-dialog").should("contain", "DocType Settings");
  28. cy.findByLabelText("Disable Count").uncheck({ force: true });
  29. cy.findByLabelText("Disable Sidebar Stats").uncheck({ force: true });
  30. cy.findByRole("button", { name: "Save" }).click();
  31. });
  32. });