feat(FN-1208): reorder task form attachments above dependencies

- Move the Attachments form section to render before Dependencies in TaskForm
- Keep existing screenshot attach/remove interactions intact while changing layout order
- Add NewTaskModal test coverage asserting Attachments appears before Dependencies in DOM order
This commit is contained in:
gsxdsm
2026-04-08 05:21:07 -07:00
parent 25db947502
commit 31e49eb17d
2 changed files with 59 additions and 47 deletions

View File

@@ -81,6 +81,17 @@ describe("NewTaskModal", () => {
expect(screen.getByRole("button", { name: "Cancel" })).toBeTruthy();
});
it("renders attachments before dependencies in form order", () => {
renderNewTaskModal();
const attachmentsLabel = screen.getByText("Attachments");
const dependenciesLabel = screen.getByText("Dependencies");
expect(
attachmentsLabel.compareDocumentPosition(dependenciesLabel) & Node.DOCUMENT_POSITION_FOLLOWING,
).toBe(Node.DOCUMENT_POSITION_FOLLOWING);
});
it("focuses description textarea when modal opens", async () => {
renderNewTaskModal();