FN-6156: rescue board workflow toolbar test
Rescue the dashboard board workflow toolbar coverage and rotate the active quarantine. - wait for the workflow toolbar itself before asserting board workflow actions in Board.test.tsx - remove Board.test.tsx from the dashboard vitest quarantine list - quarantine WorkflowNodeEditor.test.tsx with an updated ledger entry for the newly observed flake Files changed: packages/dashboard/app/components/__tests__/Board.test.tsx | 4 ++-- packages/dashboard/vitest.config.ts | 4 +++- scripts/lib/test-quarantine.json | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) Fusion-Task-Id: FN-6156 Fusion-Task-Lineage: c91c3542-fdec-426a-8e63-3edb3f5d34e5
This commit is contained in:
@@ -1029,7 +1029,7 @@ describe("Board", () => {
|
||||
enableFlag({}, [DEFAULT_WORKFLOW]);
|
||||
const { unmount } = renderBoard({ onCreateWorkflow });
|
||||
|
||||
await waitFor(() => expect(screen.getByTestId("column-triage")).toBeDefined());
|
||||
await waitFor(() => expect(document.querySelector(".board-workflow-toolbar")).not.toBeNull());
|
||||
expect(workflowToolbarActionNames()).toEqual(["New workflow"]);
|
||||
fireEvent.click(screen.getByRole("button", { name: "New workflow" }));
|
||||
expect(onCreateWorkflow).toHaveBeenCalledTimes(1);
|
||||
@@ -1039,7 +1039,7 @@ describe("Board", () => {
|
||||
enableFlag({}, [DEFAULT_WORKFLOW]);
|
||||
renderBoard({ onOpenWorkflowEditor });
|
||||
|
||||
await waitFor(() => expect(screen.getByTestId("column-triage")).toBeDefined());
|
||||
await waitFor(() => expect(document.querySelector(".board-workflow-toolbar")).not.toBeNull());
|
||||
expect(workflowToolbarActionNames()).toEqual(["Edit workflows"]);
|
||||
fireEvent.click(screen.getByRole("button", { name: "Edit workflows" }));
|
||||
expect(onOpenWorkflowEditor).toHaveBeenCalledTimes(1);
|
||||
|
||||
@@ -231,7 +231,9 @@ const qualityAppComponentBatchBTests = buildComponentQualityInclude(batchedQuali
|
||||
const qualityAppAppOnlyTests = ["app/components/__tests__/App.test.tsx"];
|
||||
const qualityAppChatOnlyTests = ["app/components/__tests__/ChatView.test.tsx"];
|
||||
const qualityAppSettingsOnlyTests = ["app/components/__tests__/SettingsModal.test.tsx"];
|
||||
const quarantinedDashboardTests: string[] = ["app/components/__tests__/Board.test.tsx"];
|
||||
const quarantinedDashboardTests = [
|
||||
"app/components/__tests__/WorkflowNodeEditor.test.tsx",
|
||||
];
|
||||
|
||||
const qualityApiTests = [
|
||||
// Critical HTTP/server behavior: auth, task/project/settings mutation,
|
||||
|
||||
Reference in New Issue
Block a user