Renacer Social, the app

eduardo.cy.ts 568B

123456789101112131415161718192021222324252627282930
  1. describe("Our app", () => {
  2. beforeEach(() => {
  3. cy.intercept(
  4. { pathname: "/api/getTopicList" },
  5. {
  6. fixture: "topics",
  7. }
  8. ).as("getTopicList");
  9. cy.intercept(
  10. { pathname: "/api/getTopic" },
  11. {
  12. fixture: "article",
  13. }
  14. ).as("getTopic");
  15. cy.viewport("iphone-x");
  16. cy.visit("/");
  17. });
  18. it("shows the home page", () => {
  19. cy.visit("/");
  20. cy.contains("Bienvenidos");
  21. });
  22. it("shows a video in the home page", () => {
  23. cy.visit("/");
  24. cy.get("iframe").should("be.visible");
  25. });
  26. });