Skip to content

Commit

Permalink
ADM-747: [frontend] test: add e2e tests for date picker
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangRu1 committed Jan 22, 2024
1 parent f75aff5 commit 7766a78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/cypress/e2e/createANewProject.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 7766a78

Please sign in to comment.