* Update .prettierrc - remove "arrowParens": "avoid" so that it defaults to "always" instead * Run "yarn prettier"
30 lines
803 B
JavaScript
30 lines
803 B
JavaScript
export function openSeriesSettings(field, isBreakout = false) {
|
|
if (isBreakout) {
|
|
cy.get("[data-testid^=draggable-item]")
|
|
.contains(field)
|
|
.closest("[data-testid^=draggable-item]")
|
|
.find(".Icon-ellipsis")
|
|
.click({ force: true });
|
|
} else {
|
|
cy.findAllByTestId("chart-setting-select")
|
|
.then(($elements) => {
|
|
for (const element of $elements) {
|
|
if (element.value === field) {
|
|
return cy.wrap(element);
|
|
}
|
|
}
|
|
})
|
|
.closest("[data-testid=chartsettings-field-picker]")
|
|
.icon("ellipsis")
|
|
.click({ force: true });
|
|
}
|
|
}
|
|
|
|
export function openVizTypeSidebar() {
|
|
cy.findByTestId("viz-type-button").click();
|
|
}
|
|
|
|
export function openVizSettingsSidebar() {
|
|
cy.findByTestId("viz-settings-button").click();
|
|
}
|