Skip to content
Snippets Groups Projects
Unverified Commit db3a2882 authored by Mahatthana (Kelvin) Nomsawadi's avatar Mahatthana (Kelvin) Nomsawadi Committed by GitHub
Browse files

Fix OSS embedding test failing (#23513)

Since I forgot to add a condition to only test pro/enterprise version
only. :pray:
parent 3af70ad1
No related branches found
No related tags found
No related merge requests found
......@@ -30,14 +30,16 @@ describe("scenarios > embedding > code snippets", () => {
.should("match", JS_CODE({ isEE }));
// hide download button for pro/enterprise users metabase#23477
cy.findByLabelText(
"Enable users to download data from this embed?",
).click();
if (isEE) {
cy.findByLabelText(
"Enable users to download data from this embed?",
).click();
cy.get(".ace_content")
.first()
.invoke("text")
.should("match", JS_CODE({ isEE, hideDownloadButton: true }));
cy.get(".ace_content")
.first()
.invoke("text")
.should("match", JS_CODE({ isEE, hideDownloadButton: true }));
}
cy.get(".ace_content")
.last()
......
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