(apply)
| 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 = { |
no test coverage detected