From 7766a78f4d41cd79664c53f5c66ce9a7c5646528 Mon Sep 17 00:00:00 2001 From: JiangRu1 <3246736839@qq.com> Date: Mon, 22 Jan 2024 11:02:00 +0800 Subject: [PATCH] ADM-747: [frontend] test: add e2e tests for date picker --- frontend/cypress/e2e/createANewProject.cy.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/cypress/e2e/createANewProject.cy.ts b/frontend/cypress/e2e/createANewProject.cy.ts index 7031ff9ed6..d4c5d672f0 100644 --- a/frontend/cypress/e2e/createANewProject.cy.ts +++ b/frontend/cypress/e2e/createANewProject.cy.ts @@ -143,6 +143,7 @@ const checkMetricsCalculation = (testId: string, boardData: MetricsDataItem[]) = const checkBoardShowMore = () => { reportPage.showMoreBoardButton.should('exist'); reportPage.goToBoardDetailPage(); + reportPage.checkDateRange(); cy.get(`[data-test-id="${METRICS_TITLE.VELOCITY}"]`).find('tbody > tr').should('have.length', 2); cy.get(`[data-test-id="${METRICS_TITLE.CYCLE_TIME}"]`).find('tbody > tr').should('have.length', 17); cy.get(`[data-test-id="${METRICS_TITLE.CLASSIFICATION}"]`).find('tbody > tr').should('have.length', 122); @@ -156,6 +157,7 @@ const checkBoardShowMore = () => { const checkDoraShowMore = () => { reportPage.showMoreDoraButton.should('exist'); reportPage.goToDoraDetailPage(); + reportPage.checkDateRange(); cy.get(`[data-test-id="${METRICS_TITLE.DEPLOYMENT_FREQUENCY}"]`).find('tbody > tr').should('have.length', 2); cy.get(`[data-test-id="${METRICS_TITLE.LEAD_TIME_FOR_CHANGES}"]`).find('tbody > tr').should('have.length', 4);