From 805849a4d9584af2569822c416dc7db0076dbd60 Mon Sep 17 00:00:00 2001 From: Bangbay Siboliban Date: Thu, 23 Jan 2025 08:36:18 -0800 Subject: [PATCH] Add a longer wait to Cypress test (#12019) --- logs/launchdarkly-flags.log | 14 +++++++------- logs/todos.log | 4 ++-- tests/cypress/e2e/mcpar/dashboard.cy.js | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/logs/launchdarkly-flags.log b/logs/launchdarkly-flags.log index da90a0b48..dbf8c31f6 100644 --- a/logs/launchdarkly-flags.log +++ b/logs/launchdarkly-flags.log @@ -2,21 +2,21 @@ # LaunchDarkly flags in components ./services/ui-src/src/components/app/AppRoutes.tsx:30:useFlags()?.naaarReport; -./services/ui-src/src/components/cards/TemplateCard.tsx:33:useFlags()?.naaarReport; +./services/ui-src/src/components/cards/TemplateCard.tsx:34:useFlags()?.naaarReport; ./services/ui-src/src/components/forms/AdminDashSelector.tsx:40:useFlags()?.naaarReport; ./services/ui-src/src/components/modals/AddEditReportModal.tsx:43:useFlags()?.naaarReport; ./services/ui-src/src/components/pages/Dashboard/DashboardPage.tsx:213:useFlags()?.sortableDashboardTable; # LaunchDarkly flags in tests -./services/ui-src/src/components/app/AppRoutes.test.tsx:138:mockLDFlags.set({ naaarReport: true }); -./services/ui-src/src/components/app/AppRoutes.test.tsx:150:mockLDFlags.set({ naaarReport: false }); +./services/ui-src/src/components/app/AppRoutes.test.tsx:141:mockLDFlags.set({ naaarReport: true }); +./services/ui-src/src/components/app/AppRoutes.test.tsx:155:mockLDFlags.set({ naaarReport: false }); ./services/ui-src/src/components/app/AppRoutes.test.tsx:25:mockLDFlags.setDefault({ naaarReport: false }); -./services/ui-src/src/components/cards/TemplateCard.test.tsx:140:mockLDFlags.set({ naaarReport: true }); -./services/ui-src/src/components/cards/TemplateCard.test.tsx:150:mockLDFlags.set({ naaarReport: false }); +./services/ui-src/src/components/cards/TemplateCard.test.tsx:145:mockLDFlags.set({ naaarReport: true }); +./services/ui-src/src/components/cards/TemplateCard.test.tsx:157:mockLDFlags.set({ naaarReport: false }); ./services/ui-src/src/components/cards/TemplateCard.test.tsx:60:mockLDFlags.setDefault({ naaarReport: true }); ./services/ui-src/src/components/forms/AdminDashSelector.test.tsx:32:mockLDFlags.setDefault({ naaarReport: true }); -./services/ui-src/src/components/forms/AdminDashSelector.test.tsx:62:mockLDFlags.set({ naaarReport: true }); -./services/ui-src/src/components/forms/AdminDashSelector.test.tsx:72:mockLDFlags.set({ naaarReport: false }); +./services/ui-src/src/components/forms/AdminDashSelector.test.tsx:63:mockLDFlags.set({ naaarReport: true }); +./services/ui-src/src/components/forms/AdminDashSelector.test.tsx:73:mockLDFlags.set({ naaarReport: false }); ./services/ui-src/src/components/pages/Dashboard/SortableDashboardTable.test.tsx:143:mockLDFlags.set({ sortableDashboardTable: true }); ./services/ui-src/src/components/pages/Dashboard/SortableDashboardTable.test.tsx:279:mockLDFlags.set({ sortableDashboardTable: true }); ./services/ui-src/src/components/pages/Dashboard/SortableDashboardTable.test.tsx:297:mockLDFlags.set({ sortableDashboardTable: true }); diff --git a/logs/todos.log b/logs/todos.log index 341f9b8f3..6f26000ff 100644 --- a/logs/todos.log +++ b/logs/todos.log @@ -2,8 +2,8 @@ ./services/app-api/handlers/reports/fetch.ts:69: TODO: strict typing ./services/app-api/handlers/reports/fetch.ts:80: TODO: strict typing -./services/ui-src/src/components/layout/Timeout.tsx:33: TODO: When autosave is implemented, set up a callback function to listen to calls to update in authLifecycle -./services/ui-src/src/components/reports/ModalOverlayReportPage.test.tsx:148:todo Write a test to make sure admins can't click/change details? +./services/ui-src/src/components/layout/Timeout.tsx:36: TODO: When autosave is implemented, set up a callback function to listen to calls to update in authLifecycle +./services/ui-src/src/components/reports/ModalOverlayReportPage.test.tsx:149:todo Write a test to make sure admins can't click/change details? ./services/ui-src/src/components/tables/EntityRow.tsx:26: TODO: refactor to handle NAAAR analysis methods ./services/ui-src/src/components/tables/SortableTable.tsx:196: TODO: add additional styling for two-column dynamic field tables if needed ./services/ui-src/src/components/tables/Table.tsx:135: TODO: add additional styling for two-column dynamic field tables if needed diff --git a/tests/cypress/e2e/mcpar/dashboard.cy.js b/tests/cypress/e2e/mcpar/dashboard.cy.js index f86f8e778..86ff29f2a 100644 --- a/tests/cypress/e2e/mcpar/dashboard.cy.js +++ b/tests/cypress/e2e/mcpar/dashboard.cy.js @@ -100,7 +100,7 @@ describe("Admin Archiving", () => { }).should("be.visible"); cy.get('button:contains("Unarchive")').last().click(); - cy.wait(500); + cy.wait(1000); cy.get('button:contains("Archive")').should("be.visible"); }); });