MCPcopy
hub / github.com/getredash/redash / expectAppliedChanges

Function expectAppliedChanges

client/cypress/integration/query/parameter_spec.js:484–498  ·  view source on GitHub ↗
(apply)

Source from the content-addressed store, hash-verified

482
483 describe("Apply Changes", () => {
484 const expectAppliedChanges = (apply) => {
485 cy.getByTestId("ParameterName-test-parameter-1").find("input").as("Input").type("Redash");
486
487 cy.getByTestId("ParameterName-test-parameter-2").find("input").type("Redash");
488
489 cy.location("search").should("not.contain", "Redash");
490
491 cy.server();
492 cy.route("POST", "**/api/queries/*/results").as("Results");
493
494 apply(cy.get("@Input"));
495
496 cy.location("search").should("contain", "Redash");
497 cy.wait("@Results");
498 };
499
500 beforeEach(() => {
501 const queryData = {

Callers 1

parameter_spec.jsFile · 0.85

Calls 3

findMethod · 0.80
typeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected