Skip to content

Commit de92f5b

Browse files
committed
update
Signed-off-by: Qxisylolo <[email protected]>
1 parent a48f7fc commit de92f5b

11 files changed

+38
-42
lines changed

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/rule_matching_vis_area.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ export const runCreateVisTests = () => {
3636
});
3737
it('should create a area visualization using a query with one metric and one categories', () => {
3838
const query = `source=${datasetName} | stats count() by category`;
39-
cy.explore.createVisualizationWithQuery(query, 'Area', datasetName, {
39+
cy.explore.createVisualizationWithQuery(query, 'area', datasetName, {
4040
shouldManualSelectChartType: true,
4141
});
4242
});
4343
it('should change axes style of area chart and reflect immediatly to the area visualization', () => {
4444
const query = `source=${datasetName} | stats count() by category`;
45-
cy.explore.createVisualizationWithQuery(query, 'Area', datasetName, {
45+
cy.explore.createVisualizationWithQuery(query, 'area', datasetName, {
4646
shouldManualSelectChartType: true,
4747
});
4848
let beforeCanvasDataUrl;
@@ -63,7 +63,7 @@ export const runCreateVisTests = () => {
6363

6464
it('should add threshold for area chart and reflect immediatly to the area visualization', () => {
6565
const query = `source=${datasetName} | stats count() by category`;
66-
cy.explore.createVisualizationWithQuery(query, 'Area', datasetName, {
66+
cy.explore.createVisualizationWithQuery(query, 'area', datasetName, {
6767
shouldManualSelectChartType: true,
6868
});
6969
let beforeCanvasDataUrl;

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/rule_matching_vis_bar.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export const runCreateVisTests = () => {
3636
});
3737
it('should create a bar visualization using a query with one metric and one category', () => {
3838
const query = `source=${datasetName} | stats count() by category`;
39-
cy.explore.createVisualizationWithQuery(query, 'Bar', datasetName);
39+
cy.explore.createVisualizationWithQuery(query, 'bar', datasetName);
4040
});
4141
it('should change axes style of bar chart and reflect immediatly to the bar visualization', () => {
4242
const query = `source=${datasetName} | stats count() by category`;
43-
cy.explore.createVisualizationWithQuery(query, 'Bar', datasetName);
43+
cy.explore.createVisualizationWithQuery(query, 'bar', datasetName);
4444
let beforeCanvasDataUrl;
4545
cy.get('canvas.marks')
4646
.should('be.visible')
@@ -58,7 +58,7 @@ export const runCreateVisTests = () => {
5858
});
5959
it('should add border for bar and reflect immediatly to the bar visualization', () => {
6060
const query = `source=${datasetName} | stats count() by category`;
61-
cy.explore.createVisualizationWithQuery(query, 'Bar', datasetName);
61+
cy.explore.createVisualizationWithQuery(query, 'bar', datasetName);
6262
let beforeCanvasDataUrl;
6363
cy.get('canvas.marks')
6464
.should('be.visible')
@@ -75,7 +75,7 @@ export const runCreateVisTests = () => {
7575
});
7676
it('should add threshold for bar chart and reflect immediatly to the bar visualization', () => {
7777
const query = `source=${datasetName} | stats count() by category`;
78-
cy.explore.createVisualizationWithQuery(query, 'Bar', datasetName);
78+
cy.explore.createVisualizationWithQuery(query, 'bar', datasetName);
7979
let beforeCanvasDataUrl;
8080
cy.get('canvas.marks')
8181
.should('be.visible')

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/rule_matching_vis_bar_gauge.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ export const runCreateVisTests = () => {
3434
});
3535
it('should create a bar gauge visualization using a query with one metric and one category', () => {
3636
const query = `source=${datasetName} | stats count() by category`;
37-
cy.explore.createVisualizationWithQuery(query, 'Bar Gauge', datasetName, {
37+
cy.explore.createVisualizationWithQuery(query, 'bar_gauge', datasetName, {
3838
shouldManualSelectChartType: true,
3939
});
4040
});
4141

4242
it('should change style options and the changes reflect immediately to the bar gauge visualization', () => {
4343
const query = `source=${datasetName} | stats count() by category`;
44-
cy.explore.createVisualizationWithQuery(query, 'Bar Gauge', datasetName, {
44+
cy.explore.createVisualizationWithQuery(query, 'bar_gauge', datasetName, {
4545
shouldManualSelectChartType: true,
4646
});
4747
let beforeCanvasDataUrl;
@@ -60,7 +60,7 @@ export const runCreateVisTests = () => {
6060
});
6161
it('should add threshold for bar gauge chart and reflect immediatly to the bar gauge visualization', () => {
6262
const query = `source=${datasetName} | stats count() by category`;
63-
cy.explore.createVisualizationWithQuery(query, 'Bar Gauge', datasetName, {
63+
cy.explore.createVisualizationWithQuery(query, 'bar_gauge', datasetName, {
6464
shouldManualSelectChartType: true,
6565
});
6666
let beforeCanvasDataUrl;

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/rule_matching_vis_gauge.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ export const runCreateVisTests = () => {
3535
});
3636
it('should create a gauge visualization using a query with one metric', () => {
3737
const query = `source=${datasetName} | stats count()`;
38-
cy.explore.createVisualizationWithQuery(query, 'Gauge', datasetName, {
38+
cy.explore.createVisualizationWithQuery(query, 'gauge', datasetName, {
3939
shouldManualSelectChartType: true,
4040
});
4141
});
4242

4343
it('should change style options and the changes reflect immediately to the gauge visualization', () => {
4444
const query = `source=${datasetName} | stats count()`;
45-
cy.explore.createVisualizationWithQuery(query, 'Gauge', datasetName, {
45+
cy.explore.createVisualizationWithQuery(query, 'gauge', datasetName, {
4646
shouldManualSelectChartType: true,
4747
});
4848
let beforeCanvasDataUrl;
@@ -60,7 +60,7 @@ export const runCreateVisTests = () => {
6060
});
6161
it('should add threshold for gauge chart and reflect immediatly to the gauge visualization', () => {
6262
const query = `source=${datasetName} | stats count()`;
63-
cy.explore.createVisualizationWithQuery(query, 'Gauge', datasetName, {
63+
cy.explore.createVisualizationWithQuery(query, 'gauge', datasetName, {
6464
shouldManualSelectChartType: true,
6565
});
6666
let beforeCanvasDataUrl;

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/rule_matching_vis_heatmap.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export const runCreateVisTests = () => {
3636
});
3737
it('should create a heatmap visualization using a query with one metric and two categories', () => {
3838
const query = `source=${datasetName} | stats avg(bytes_transferred) by service_endpoint, category`;
39-
cy.explore.createVisualizationWithQuery(query, 'Heatmap', datasetName);
39+
cy.explore.createVisualizationWithQuery(query, 'heatmap', datasetName);
4040
});
4141
it('should change axes style of heatmap chart and reflect immediatly to the heatmap visualization', () => {
4242
const query = `source=${datasetName} | stats avg(bytes_transferred) by service_endpoint, category`;
43-
cy.explore.createVisualizationWithQuery(query, 'Heatmap', datasetName);
43+
cy.explore.createVisualizationWithQuery(query, 'heatmap', datasetName);
4444
let beforeCanvasDataUrl;
4545
cy.get('canvas.marks')
4646
.should('be.visible')
@@ -58,7 +58,7 @@ export const runCreateVisTests = () => {
5858
});
5959
it('should turn off legend of heatmap chart and reflect immediatly to the heatmap visualization', () => {
6060
const query = `source=${datasetName} | stats avg(bytes_transferred) by service_endpoint, category`;
61-
cy.explore.createVisualizationWithQuery(query, 'Heatmap', datasetName);
61+
cy.explore.createVisualizationWithQuery(query, 'heatmap', datasetName);
6262
let beforeCanvasDataUrl;
6363
cy.get('canvas.marks')
6464
.should('be.visible')
@@ -76,7 +76,7 @@ export const runCreateVisTests = () => {
7676
});
7777
it('should update style of heatmap chart and reflect immediatly to the heatmap visualization', () => {
7878
const query = `source=${datasetName} | stats avg(bytes_transferred) by service_endpoint, category`;
79-
cy.explore.createVisualizationWithQuery(query, 'Heatmap', datasetName);
79+
cy.explore.createVisualizationWithQuery(query, 'heatmap', datasetName);
8080
let beforeCanvasDataUrl;
8181
cy.get('canvas.marks')
8282
.should('be.visible')

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/rule_matching_vis_histogram.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const workspaceName = getRandomizedWorkspaceName();
1111
const datasetName = `${INDEX_WITH_TIME_1}*`;
1212

1313
export const runCreateVisTests = () => {
14-
describe('create Histogram visualization tests', () => {
14+
describe('create histogram visualization tests', () => {
1515
before(() => {
1616
cy.osd.setupWorkspaceAndDataSourceWithIndices(workspaceName, [INDEX_WITH_TIME_1]);
1717
cy.explore.createWorkspaceDataSets({
@@ -39,7 +39,7 @@ export const runCreateVisTests = () => {
3939

4040
it('should create a histogram visualization', () => {
4141
const query = `source=${datasetName} | fields response_time`;
42-
cy.explore.createVisualizationWithQuery(query, 'Histogram', datasetName, {
42+
cy.explore.createVisualizationWithQuery(query, 'histogram', datasetName, {
4343
shouldManualSelectChartType: true,
4444
});
4545
cy.getElementByTestId('field-x').contains('response_time');
@@ -48,7 +48,7 @@ export const runCreateVisTests = () => {
4848

4949
it('should change style options and the changes reflect immediately to the histogram visualization', () => {
5050
const query = `source=${datasetName} | fields response_time`;
51-
cy.explore.createVisualizationWithQuery(query, 'Histogram', datasetName, {
51+
cy.explore.createVisualizationWithQuery(query, 'histogram', datasetName, {
5252
shouldManualSelectChartType: true,
5353
});
5454

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/rule_matching_vis_line.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export const runCreateVisTests = () => {
3636
});
3737
it('should create a line visualization using a query with timestamp', () => {
3838
const query = `source=${datasetName} | stats count() by event_time`;
39-
cy.explore.createVisualizationWithQuery(query, 'Line', datasetName);
39+
cy.explore.createVisualizationWithQuery(query, 'line', datasetName);
4040
});
4141
it('should change axes style of line chart and reflect immediatly to the line visualization', () => {
4242
const query = `source=${datasetName} | stats count() by event_time`;
43-
cy.explore.createVisualizationWithQuery(query, 'Line', datasetName);
43+
cy.explore.createVisualizationWithQuery(query, 'line', datasetName);
4444
let beforeCanvasDataUrl;
4545
cy.get('canvas.marks')
4646
.should('be.visible')
@@ -59,7 +59,7 @@ export const runCreateVisTests = () => {
5959
});
6060
it('should change line interpolation of line chart and reflect immediatly to the line visualization', () => {
6161
const query = `source=${datasetName} | stats count() by event_time`;
62-
cy.explore.createVisualizationWithQuery(query, 'Line', datasetName);
62+
cy.explore.createVisualizationWithQuery(query, 'line', datasetName);
6363
let beforeCanvasDataUrl;
6464
cy.get('canvas.marks')
6565
.should('be.visible')
@@ -76,7 +76,7 @@ export const runCreateVisTests = () => {
7676
});
7777
it('should add threshold for line chart and reflect immediatly to the line visualization', () => {
7878
const query = `source=${datasetName} | stats count() by event_time`;
79-
cy.explore.createVisualizationWithQuery(query, 'Line', datasetName);
79+
cy.explore.createVisualizationWithQuery(query, 'line', datasetName);
8080
let beforeCanvasDataUrl;
8181
cy.get('canvas.marks')
8282
.should('be.visible')

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/rule_matching_vis_metric.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const workspaceName = getRandomizedWorkspaceName();
1111
const datasetName = `${INDEX_WITH_TIME_1}*`;
1212

1313
export const runCreateVisTests = () => {
14-
describe('create Metric visualization tests', () => {
14+
describe('create metric visualization tests', () => {
1515
before(() => {
1616
cy.osd.setupWorkspaceAndDataSourceWithIndices(workspaceName, [INDEX_WITH_TIME_1]);
1717
cy.explore.createWorkspaceDataSets({
@@ -36,14 +36,14 @@ export const runCreateVisTests = () => {
3636
});
3737
it('should create a metric visualization using a single metric query', () => {
3838
const query = `source=${datasetName} | stats count()`;
39-
cy.explore.createVisualizationWithQuery(query, 'Metric', datasetName);
39+
cy.explore.createVisualizationWithQuery(query, 'metric', datasetName);
4040
cy.getElementByTestId('field-value').contains('count()');
4141
cy.get('canvas.marks').should('be.visible');
4242
});
4343

4444
it('should change style options and the changes reflect immediately to the metric visualization', () => {
4545
const query = `source=${datasetName} | stats count()`;
46-
cy.explore.createVisualizationWithQuery(query, 'Metric', datasetName);
46+
cy.explore.createVisualizationWithQuery(query, 'metric', datasetName);
4747
let beforeCanvasDataUrl;
4848
cy.get('canvas.marks')
4949
.should('be.visible')
@@ -62,7 +62,7 @@ export const runCreateVisTests = () => {
6262

6363
it('should create a metric sparkline visualization using a metric query with time bucket', () => {
6464
const query = `source=${datasetName} | stats count() by span(timestamp, 1d)`;
65-
cy.explore.createVisualizationWithQuery(query, 'Metric', datasetName, {
65+
cy.explore.createVisualizationWithQuery(query, 'metric', datasetName, {
6666
shouldManualSelectChartType: true,
6767
});
6868
cy.getElementByTestId('field-value').contains('count()');

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/rule_matching_vis_pie.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ export const runCreateVisTests = () => {
3737
it('should create a pie visualization using a query with one metric and one categories', () => {
3838
const query = `source=${datasetName} | stats count() by category`;
3939

40-
cy.explore.createVisualizationWithQuery(query, 'Pie', datasetName, {
40+
cy.explore.createVisualizationWithQuery(query, 'pie', datasetName, {
4141
shouldManualSelectChartType: true,
4242
});
4343
});
4444
it('should turn off legend of pie chart and reflect immediatly to the pie visualization', () => {
4545
const query = `source=${datasetName} | stats count() by category`;
46-
cy.explore.createVisualizationWithQuery(query, 'Pie', datasetName, {
46+
cy.explore.createVisualizationWithQuery(query, 'pie', datasetName, {
4747
shouldManualSelectChartType: true,
4848
});
4949

@@ -65,7 +65,7 @@ export const runCreateVisTests = () => {
6565

6666
it('should update pie chart style and reflect immediatly to the pie visualization', () => {
6767
const query = `source=${datasetName} | stats count() by category`;
68-
cy.explore.createVisualizationWithQuery(query, 'Pie', datasetName, {
68+
cy.explore.createVisualizationWithQuery(query, 'pie', datasetName, {
6969
shouldManualSelectChartType: true,
7070
});
7171

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/rule_matching_vis_scatter.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export const runCreateVisTests = () => {
3636
});
3737
it('should create a scatter plot visualization using a query with two metrics and one category', () => {
3838
const query = `source=${datasetName} | fields bytes_transferred, status_code`;
39-
cy.explore.createVisualizationWithQuery(query, 'Scatter', datasetName);
39+
cy.explore.createVisualizationWithQuery(query, 'scatter', datasetName);
4040
});
4141
it('should change axes style of scatter chart and reflect immediatly to the scatter visualization', () => {
4242
const query = `source=${datasetName} | fields bytes_transferred, status_code`;
43-
cy.explore.createVisualizationWithQuery(query, 'Scatter', datasetName);
43+
cy.explore.createVisualizationWithQuery(query, 'scatter', datasetName);
4444
let beforeCanvasDataUrl;
4545
cy.get('canvas.marks')
4646
.should('be.visible')
@@ -59,7 +59,7 @@ export const runCreateVisTests = () => {
5959
});
6060
it('should change point style of scatter chart and reflect immediatly to the scatter visualization', () => {
6161
const query = `source=${datasetName} | fields bytes_transferred, status_code`;
62-
cy.explore.createVisualizationWithQuery(query, 'Scatter', datasetName);
62+
cy.explore.createVisualizationWithQuery(query, 'scatter', datasetName);
6363
let beforeCanvasDataUrl;
6464
cy.get('canvas.marks')
6565
.should('be.visible')

0 commit comments

Comments
 (0)