Skip to content
Snippets Groups Projects
embedding-reproductions.cy.spec.js 27.8 KiB
Newer Older
  • Learn to ignore specific revisions
  •     enable_embedding: true,
      };
    
      beforeEach(() => {
        restore();
        cy.signInAsAdmin();
    
        createQuestionAndDashboard({
          questionDetails,
          dashboardDetails,
        }).then(({ body: { dashboard_id } }) => {
          visitDashboard(dashboard_id);
        });
      });
    
      it("embedding preview should be always working", () => {
        openStaticEmbeddingModal({
          activeTab: "lookAndFeel",
          previewMode: "preview",
        });
        cy.findByTestId("embed-preview-iframe")
          .its("0.contentDocument.body")
          .should("be.visible")
          .and("contain", "Embeddable dashboard");
      });
    });