Skip to content

Commit f716f99

Browse files
author
lucydoan
committed
fix: fix failed tests because of new dashboard building
JIRA: QA-24456 risk: nonprod
1 parent 2101b11 commit f716f99

File tree

3 files changed

+4
-46
lines changed

3 files changed

+4
-46
lines changed

Diff for: libs/sdk-ui-tests-e2e/cypress/integration/01-sdk-ui-dashboard/dashboardShortenMetricName.spec.ts

+2-14
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,19 @@ const LEGEND_NAME_CSS = ".series-name";
88
const TOOLTIP_TITLE_CSS = ".gd-viz-tooltip-title";
99
const dashboard = new Dashboard();
1010

11-
<<<<<<< HEAD
1211
describe(
1312
"Dashboard Shorten Metric Name",
1413
{ tags: ["checklist_integrated_tiger", "checklist_integrated_tiger_releng"] },
1514
() => {
1615
beforeEach(() => {
1716
Navigation.visit("dashboard/shorten-metric-name");
17+
dashboard.isLoaded();
1818
});
1919

2020
it("Table should shorten metric name", () => {
2121
const table = new Widget(0).waitTableLoaded();
22-
table.getTable().assertShortenMetricName(496);
22+
table.getTable().assertShortenMetricName(504);
2323
});
24-
=======
25-
describe("Dashboard Shorten Metric Name", { tags: ["checklist_integrated_tiger"] }, () => {
26-
beforeEach(() => {
27-
Navigation.visit("dashboard/shorten-metric-name");
28-
dashboard.isLoaded();
29-
});
30-
31-
it("Table should shorten metric name", () => {
32-
const table = new Widget(0).waitTableLoaded();
33-
table.getTable().assertShortenMetricName(504);
34-
});
35-
>>>>>>> 696be18769 (fix: failed tests because of new dashboard building)
3624

3725
it("Column chart should shorten metric name in legend", () => {
3826
const chart = new Widget(1).waitChartLoaded().getChart();

Diff for: libs/sdk-ui-tests-e2e/cypress/integration/01-sdk-ui-dashboard/dependentFilters.spec.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ const topBar = new TopBar();
1717
describe("Dependent filter", () => {
1818
beforeEach(() => {
1919
Navigation.visit("dashboard/dashboard-dependent-filters");
20-
<<<<<<< HEAD
21-
new Dashboard().waitForDashboardLoaded();
22-
=======
2320
});
2421

2522
it("should test parent - child interaction in view mode", { tags: "checklist_integrated_tiger" }, () => {
@@ -243,9 +240,8 @@ describe("Dependent filter", () => {
243240
regionFilter.isLoaded().open().hasSubtitle("East Coast").hasFilterListSize(4);
244241
stateFilter.isLoaded().open().hasSubtitle("All").hasFilterListSize(48);
245242
cityFilter.isLoaded().open().hasSubtitle("All").hasFilterListSize(300);
246-
>>>>>>> 696be18769 (fix: failed tests because of new dashboard building)
247243
});
248-
244+
249245
it(
250246
"should test parent - child interaction in view mode",
251247
{ tags: ["checklist_integrated_tiger", "checklist_integrated_tiger_releng"] },

Diff for: libs/sdk-ui-tests-e2e/cypress/integration/01-sdk-ui-dashboard/pivotTableHasTotalAndSubtotalsOnDashboard.spec.ts

+1-27
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@ describe(
3737
},
3838
);
3939

40-
<<<<<<< HEAD
4140
describe(
4241
"Pivot Table with multi format metrics",
4342
{ tags: ["checklist_integrated_tiger", "checklist_integrated_tiger_releng"] },
4443
() => {
4544
it("should render insight with multi format metrics correctly", () => {
4645
Navigation.visit("dashboard/dashboard-pivot-table-scenario");
47-
const table = new Widget(1).waitTableLoaded().getTable();
46+
const table = new Widget(0, 1).waitTableLoaded().getTable();
4847
table.waitLoaded();
4948
table.hasCellValue(6, 1, "Closed Won");
5049
table.hasCellValue(6, 2, "██████████");
@@ -65,28 +64,3 @@ describe(
6564
});
6665
},
6766
);
68-
=======
69-
describe("Pivot Table with multi format metrics", { tags: ["checklist_integrated_tiger"] }, () => {
70-
it("should render insight with multi format metrics correctly", () => {
71-
Navigation.visit("dashboard/dashboard-pivot-table-scenario");
72-
const table = new Widget(0, 1).waitTableLoaded().getTable();
73-
table.waitLoaded();
74-
table.hasCellValue(6, 1, "Closed Won");
75-
table.hasCellValue(6, 2, "██████████");
76-
table.hasCellValue(6, 3, "406");
77-
table.hasCellValue(7, 3, "–");
78-
table.hasCellValue(6, 4, "▼ 423,451,258.0%");
79-
table.hasCellValue(6, 5, "$406.00");
80-
table.hasCellValue(6, 6, "<button>1.00</button>");
81-
table.hasCellValue(
82-
6,
83-
7,
84-
"100.0% long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long",
85-
);
86-
table.hasCellValue(6, 8, "406.00 kiểm tra nghiêm khắc");
87-
table.scrollTo("center");
88-
table.hasCellValue(6, 33, " 8,675,554.99");
89-
table.hasCellValue(7, 33, "null value");
90-
});
91-
});
92-
>>>>>>> 696be18769 (fix: failed tests because of new dashboard building)

0 commit comments

Comments
 (0)