Skip to content
Snippets Groups Projects
Unverified Commit 566a2688 authored by Maz Ameli's avatar Maz Ameli Committed by GitHub
Browse files

update strings in tests (#25409)

parent ebe5960b
No related branches found
No related tags found
No related merge requests found
......@@ -240,30 +240,26 @@ function assertLinkMatchesUrl(text, url) {
function ensureEmbeddingIsDisabled() {
// This is implicit assertion - it would've failed if embedding was enabled
cy.findByText(/Embed this (question|dashboard) in an application/).closest(
".disabled",
);
cy.findByText(/Embed in your application/).closest(".disabled");
// Let's make sure embedding stays disabled after we enable public sharing
enableSharing();
cy.findByText(/Embed this (question|dashboard) in an application/).closest(
".disabled",
);
cy.findByText(/Embed in your application/).closest(".disabled");
}
function visitAndEnableSharing(object) {
if (object === "question") {
visitQuestion("1");
cy.icon("share").click();
cy.findByText(/Embed this (question|dashboard) in an application/).click();
cy.findByText(/Embed in your application/).click();
}
if (object === "dashboard") {
visitDashboard(1);
cy.icon("share").click();
cy.findByText(/Embed this (question|dashboard) in an application/).click();
cy.findByText(/Embed in your application/).click();
}
}
......
......@@ -619,18 +619,14 @@ describe("scenarios > visualizations > pivot tables", () => {
// Skipped to avoid flake
it.skip("should display pivot table in an embed preview", () => {
cy.findByText(
/Embed this (question|dashboard) in an application/,
).click();
cy.findByText(/Embed in your application/).click();
// we use preview endpoints when MB is iframed in itself
cy.findByText(test.subject);
getIframeBody().within(assertOnPivotFields);
});
it("should display pivot table in an embed URL", () => {
cy.findByText(
/Embed this (question|dashboard) in an application/,
).click();
cy.findByText(/Embed in your application/).click();
cy.findByText("Publish").click();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment