Skip to content

483 — should throw warning when end date is before start date

Description

Verifies that the task form rejects a due date that falls before the start date and shows the "end-before-start" validation warning instead of creating the task.

Preconditions

  • Signed-in tenant with a seeded Advanced project.
  • Currently on the seeded project's Tasks tab. Date pickers are only usable inside the open task form.

Steps

  1. Click "Add task" to open the task form.
  2. Fill in the title (random 4-word string).
  3. Pick the start date as today + 10 days and the due date as today + 5 days (so end < start).
  4. Click "Create".
  5. Inspect the form → Expected: an "End date must be after start date" warning is displayed and the task is not created.
  • Spec: playwright/tests/integration/task.spec.ts (line 240)