Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Update embedding hub card copy for embed in your code step (#63656)

Phoomparin Mano7e09b8744749
diff --git a/e2e/test/scenarios/embedding/embedding-hub/embedding-hub.cy.spec.ts b/e2e/test/scenarios/embedding/embedding-hub/embedding-hub.cy.spec.ts
index 0e703ad4f4c..30871db0382 100644
--- a/e2e/test/scenarios/embedding/embedding-hub/embedding-hub.cy.spec.ts
+++ b/e2e/test/scenarios/embedding/embedding-hub/embedding-hub.cy.spec.ts
@@ -123,6 +123,16 @@ describe("scenarios - embedding hub", () => {
cy.url().should("include", "/model/new");
});
+ it('"Embed in your code" card should take you to the embed flow', () => {
+ cy.visit("/admin/embedding/setup-guide");
+
+ cy.findByTestId("admin-layout-content")
+ .findByText("Embed in your code")
+ .click();
+
+ cy.url().should("include", "/embed-js?auth_method=user_session");
+ });
+
it("Embed in production step should be locked until JWT is enabled", () => {
cy.visit("/admin/embedding/setup-guide");
diff --git a/frontend/src/metabase/embedding/embedding-hub/utils/embedding-hub-steps.ts b/frontend/src/metabase/embedding/embedding-hub/utils/embedding-hub-steps.ts
index 2ffebd5d431..91d0df374f2 100644
--- a/frontend/src/metabase/embedding/embedding-hub/utils/embedding-hub-steps.ts
+++ b/frontend/src/metabase/embedding/embedding-hub/utils/embedding-hub-steps.ts
@@ -9,8 +9,8 @@ export const getEmbeddingHubSteps = (): EmbeddingHubStep[] => {
icon: "test_tube",
actions: [
{
- title: t`Create an embed`,
- description: t`Create an embed by using Embedded Analytics JS.`,
+ title: t`Embed in your code`,
+ description: t`Embed a dashboard, question, the query builder or the collection browser.`,
to: "/embed-js?auth_method=user_session",
variant: "outline",
},