Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
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");
});
});