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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user