mirror of
https://github.com/getredash/redash.git
synced 2025-12-22 10:55:49 -05:00
* Migrate Query Source View page to React: skeleton
* Sync QueryView and QuerySource (#4430)
* Migrate schema browser to react (#4432)
* Restyle code with Prettier
* Migrate Query page to React: Save changes (#4452)
* Migrate query source to React: Set of updates (#4457)
* Migrate Query page to React: Visualization Tabs (#4453)
Co-Authored-By: Levko Kravets <levko.ne@gmail.com>
* Migrate Query Source page to React: Visualizations area (#4463)
* Migrate Query page to React: Delete visualization button (#4461)
* Migrate Query Source page to React: Visualization actions (#4467)
* Migrate Query pages to React: Execute query hook (#4470)
* Migrate Query Source page to React: Editor area (#4468)
* Migrate Query Source page to React: metadata, schedule and description blocks (#4476)
* Migrate Query page to React: Cancel query execution (#4496)
* Migrate Query Source page to React: refine code (#4499)
* Migrate Query Source page to React: alerts (#4504)
* Migrate Query Source page to React: unsaved changes alert (#4505)
* Migrate Query Source to React: resizable areas (v2) (#4503)
* Migrate Query page to React: Query View (#4455)
Co-authored-by: Levko Kravets <levko.ne@gmail.com>
* Switch React and Angular versions of pages (until Angular version removed)
* Migrate Query pages to React: fix permissions (#4506)
* Migrate Query Source page to React: don't reload when saving new query (#4507)
* Migrate Query pages to React: fix tests (#4509)
* Use skipParametersDirtyFlag in executeQuery
* Fix: cannot fork query from Query View page
* Optimize query editor: handle query text changes faster
* Revert "Optimize query editor: handle query text changes faster"
This reverts commit 2934e53be6.
* Reduce debounced time to 100
* Migrate Query pages to React: cleanup (#4512)
* Migrate Query pages to React: cleanup
* Further cleanup
* Remove unused dependencies
* Fix embed pages
* Attempt to fix flaky test
* Cleanup: explicitly register the last Angular component
* Move contents of /filters folder to /lib
* Remove unnecessary import
* Remove cy.wait from Parameters spec
Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
Co-authored-by: Levko Kravets <levko.ne@gmail.com>
61 lines
1.6 KiB
JavaScript
61 lines
1.6 KiB
JavaScript
/* global cy */
|
|
|
|
import { createQuery } from "../../support/redash-api";
|
|
|
|
describe("Edit visualization dialog", () => {
|
|
beforeEach(() => {
|
|
cy.login();
|
|
createQuery().then(({ id }) => {
|
|
cy.visit(`queries/${id}/source`);
|
|
cy.getByTestId("ExecuteButton").click();
|
|
});
|
|
});
|
|
|
|
it("opens New Visualization dialog", () => {
|
|
cy.getByTestId("NewVisualization")
|
|
.should("exist")
|
|
.click();
|
|
cy.getByTestId("EditVisualizationDialog").should("exist");
|
|
// Default visualization should be selected
|
|
cy.getByTestId("VisualizationType")
|
|
.should("exist")
|
|
.should("contain", "Chart");
|
|
cy.getByTestId("VisualizationName")
|
|
.should("exist")
|
|
.should("have.value", "Chart");
|
|
});
|
|
|
|
it("opens Edit Visualization dialog", () => {
|
|
cy.getByTestId("EditVisualization").click();
|
|
cy.getByTestId("EditVisualizationDialog").should("exist");
|
|
// Default `Table` visualization should be selected
|
|
cy.getByTestId("VisualizationType")
|
|
.should("exist")
|
|
.should("contain", "Table");
|
|
cy.getByTestId("VisualizationName")
|
|
.should("exist")
|
|
.should("have.value", "Table");
|
|
});
|
|
|
|
it("creates visualization with custom name", () => {
|
|
const visualizationName = "Custom name";
|
|
|
|
cy.clickThrough(`
|
|
NewVisualization
|
|
VisualizationType
|
|
VisualizationType.TABLE
|
|
`);
|
|
|
|
cy.getByTestId("VisualizationName")
|
|
.clear()
|
|
.type(visualizationName);
|
|
|
|
cy.getByTestId("EditVisualizationDialog")
|
|
.contains("button", "Save")
|
|
.click();
|
|
cy.getByTestId("QueryPageVisualizationTabs")
|
|
.contains("span", visualizationName)
|
|
.should("exist");
|
|
});
|
|
});
|