Skip to content

Commit f2b85cc

Browse files
authored
fix-e2e-1 [frontend]: fix e2e (#1605)
1 parent b588443 commit f2b85cc

10 files changed

+5
-417
lines changed

frontend/e2e/fixtures/create-new/report-result.ts

-21
Original file line numberDiff line numberDiff line change
@@ -821,27 +821,6 @@ export const DORA_METRICS_RESULT_FOR_SOURCE_CONTROL: IDoraMetricsResultItem[] =
821821
},
822822
];
823823

824-
export const BOARD_METRICS_WITH_HOLIDAY_RESULT = {
825-
Velocity: '14',
826-
Throughput: '6',
827-
AverageCycleTime4SP: '0.79',
828-
AverageCycleTime4Card: '1.84',
829-
totalReworkTimes: '0',
830-
totalReworkCards: '0',
831-
reworkCardsRatio: '0.0000',
832-
throughput: '6',
833-
};
834-
835-
export const DORA_METRICS_WITH_HOLIDAY_RESULT = {
836-
PrLeadTime: '13.19',
837-
PipelineLeadTime: '0.47',
838-
TotalLeadTime: '13.66',
839-
DeploymentFrequency: '1.83',
840-
DeploymentTimes: '11',
841-
FailureRate: '0.00% (0/11)',
842-
DevMeanTimeToRecovery: '0.00',
843-
};
844-
845824
export const CYCLE_TIME_WITH_ANALYSIS_STATUS_PROJECT_BOARD_METRICS_RESULT: IBoardMetricsResult = {
846825
velocity: '8',
847826
throughput: '3',
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"Issue key","Summary","Issue Type","Status","Status Date","Story Points","assignee","Reporter","Project Key","Project Name","Priority","Parent Summary","Sprint","Labels","Cycle Time","Story testing-1","Design","Vulnerability","Flagged","Fix versions","Partner","Time tracking","Story point estimate","QA","Feature/Operation","Story testing-2","Cycle Time / Story Points","Todo Days","Analysis Days","Design Days","In Dev Days","Block Days","Review Days","Waiting For Testing Days","Testing Days","Waiting For Deployment Days","OriginCycleTime: TODO","OriginCycleTime: TESTING","OriginCycleTime: WAIT FOR TEST","OriginCycleTime: DOING","OriginCycleTime: REVIEW","Rework: total - In dev","Rework: from Block","Rework: from Review","Rework: from Testing","Rework: from Waiting for deployment","Rework: from Done"
2-
"ADM-997","[FE] add a mark for new functions (release 1.3.0)","Story","Done","2024-08-19","1.0","YinYuan Zhou","Yufan Wang","ADM","Auto Dora Metrics","Medium","easy to use","Sprint42","","12.52","","","","","","","None","1.0","","","","12.52","0","0","10.54","1.31","0","0","0","0.02","0.65","10.54","0.02","0.65","1.31","0","0","0","0","0","0","0"
3-
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
4-
"ADM-999","[FE&BE] support lead time for changes for single data source- case1(metrics)","Story","Doing","2024-08-26","3.0","YinYuan Zhou","Yufan Wang","ADM","Auto Dora Metrics","High","lead time for changes","Sprint 44","","0","","","","","","","None","3.0","","","","0","0","0","16.20","5.04","0","0","0","0","0","16.20","0","0","5.04","0",,,,,,
1+
"Issue key","Summary","Issue Type","Status","Status Date","Story Points","assignee","Reporter","Project Key","Project Name","Priority","Parent Summary","Sprint","Labels","Cycle Time","Story testing-1","Design","Vulnerability","Flagged","Fix versions","Partner","Time tracking","Story point estimate","QA","Feature/Operation","Story testing-2","Cycle Time / Story Points","Todo Days","Analysis Days","Design Days","In Dev Days","Block Days","Review Days","Waiting For Testing Days","Testing Days","Waiting For Deployment Days","OriginCycleTime: TODO","OriginCycleTime: TESTING","OriginCycleTime: WAIT FOR TEST","OriginCycleTime: DOING","OriginCycleTime: REVIEW","OriginCycleTime: BLOCKED","Rework: total - In dev","Rework: from Block","Rework: from Review","Rework: from Testing","Rework: from Waiting for deployment","Rework: from Done"
2+
"ADM-997","[FE] add a mark for new functions (release 1.3.0)","Story","Done","2024-08-19","1.0","YinYuan Zhou","Yufan Wang","ADM","Auto Dora Metrics","Medium","easy to use","Sprint42","","12.52","","","","","","","None","1.0","","","","12.52","0","0","10.54","1.31","0","0","0","0.02","0.65","10.54","0.02","0.65","1.31","0","0","0","0","0","0","0","0"
3+
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
4+
"ADM-999","[FE&BE] support lead time for changes for single data source- case1(metrics)","Story","Doing","2024-09-12","3.0","YinYuan Zhou","Yufan Wang","ADM","Auto Dora Metrics","High","lead time for changes","Sprint 44","","0","","","","","","","None","3.0","","","","0","0","0","16.20","8.15","3.73","0","0","1.11","0.01","16.20","1.11","0.01","8.15","0","3.73",,,,,,

frontend/e2e/fixtures/import-file/calculate-with-holiday-config-file.ts

-98
This file was deleted.

frontend/e2e/fixtures/import-file/metric-with-holiday-data.csv

-71
This file was deleted.

frontend/e2e/fixtures/import-file/pipeline-with-holiday-data.csv

-12
This file was deleted.

frontend/e2e/fixtures/input-files/calculate-with-holiday-config-file.template.json

-101
This file was deleted.

frontend/e2e/pages/metrics/report-step.ts

+1-13
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,12 @@ import {
44
IBoardCycletimeDetailItem,
55
IBoardClassificationDetailItem,
66
} from '../../fixtures/create-new/report-result';
7-
import {
8-
checkDownloadReport,
9-
checkDownloadReportCycleTimeByStatus,
10-
checkDownloadWithHolidayReport,
11-
downloadFileAndCheck,
12-
} from 'e2e/utils/download';
137
import {
148
ICsvComparedLines,
159
IDoraMetricsResultItem,
1610
DORA_METRICS_RESULT_MULTIPLE_RANGES,
1711
} from '../../fixtures/create-new/report-result';
12+
import { checkDownloadReport, checkDownloadReportCycleTimeByStatus, downloadFileAndCheck } from 'e2e/utils/download';
1813
import { BOARD_CHART_VALUE, DORA_CHART_VALUE } from '../../fixtures/import-file/chart-result';
1914
import { DOWNLOAD_EVENTS_WAIT_THRESHOLD } from '../../fixtures/index';
2015
import { expect, Locator, Page, Download } from '@playwright/test';
@@ -781,13 +776,6 @@ export class ReportStep {
781776
// await checkDownloadReport(this.page, this.exportBoardData, 'boardReport.csv');
782777
await checkDownloadReport(this.page, this.exportPipelineDataButton, 'pipelineReport.csv');
783778
}
784-
785-
async checkDownloadWithHolidayReports() {
786-
await checkDownloadWithHolidayReport(this.page, this.exportMetricData, 'metricReport.csv');
787-
// await checkDownloadReport(this.page, this.exportBoardData, 'boardReport.csv');
788-
await checkDownloadWithHolidayReport(this.page, this.exportPipelineDataButton, 'pipelineReport.csv');
789-
}
790-
791779
async checkDownloadReportsCycleTimeByStatus() {
792780
await checkDownloadReportCycleTimeByStatus(this.page, this.exportMetricData, 'metricReport.csv');
793781
await checkDownloadReportCycleTimeByStatus(this.page, this.exportBoardData, 'boardReport.csv');

0 commit comments

Comments
 (0)