Skip to content
Snippets Groups Projects
Unverified Commit 91da786b authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

[E2E] A quick sanity check on template tags handling (#23245)

parent 68951307
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ import { SAMPLE_DB_ID } from "__support__/e2e/cypress_data";
describe("scenarios > question > native", () => {
beforeEach(() => {
cy.intercept("POST", "api/dataset").as("dataset");
restore();
cy.signInAsNormalUser();
});
......@@ -77,6 +78,16 @@ describe("scenarios > question > native", () => {
cy.contains("18,760");
});
it("should handle template tags", () => {
openNativeEditor().type("select * from PRODUCTS where RATING > {{Stars}}", {
parseSpecialCharSequences: false,
});
cy.get("input[placeholder*='Stars']").type("3");
cy.get(".NativeQueryEditor .Icon-play").click();
cy.wait("@dataset");
cy.contains("Showing 168 rows");
});
it("can save a question with no rows", () => {
openNativeEditor().type("select * from people where false");
cy.get(".NativeQueryEditor .Icon-play").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