Skip to content
Snippets Groups Projects
Unverified Commit 7b8675fb authored by Nick Fitzpatrick's avatar Nick Fitzpatrick Committed by GitHub
Browse files

adding delay to typing (#28620)

parent e587a20c
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,9 @@ export function runQuery(xhrAlias = "dataset") {
*
* @param {string} query
*/
export function enterParameterizedQuery(query) {
cy.get("@editor").type(query, { parseSpecialCharSequences: false });
export function enterParameterizedQuery(query, options = {}) {
cy.get("@editor").type(query, {
parseSpecialCharSequences: false,
...options,
});
}
......@@ -283,7 +283,9 @@ describe("scenarios > question > native subquery", () => {
cy.intercept("GET", `/api/card/${nestedQuestionId}`).as("loadQuestion");
startNewNativeQuestion();
SQLFilter.enterParameterizedQuery(`SELECT * FROM {{${tagID}`);
SQLFilter.enterParameterizedQuery(`SELECT * FROM {{${tagID}`, {
delay: 100,
});
cy.wait("@loadQuestion");
cy.findByTestId("sidebar-header-title").should(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment