Skip to content

513 — should reject descriptions over 1000 chars

Description

Verifies that both the internal and client description fields enforce a maximum length of 1000 characters in the new time record form, so users cannot save more text than the schema allows.

Preconditions

  • Signed in to a seeded test organization.
  • Time Records page open in the Reports view.

Steps

  1. Click Create time record in the footer.
  2. Switch the modal to the Detailed view.
  3. Paste 1500 random characters into the Client description field.
  4. Paste 1500 random characters into the Internal description field. Expected: the client description field is truncated to exactly 1000 characters.
  5. Expected: the internal description field is also truncated to exactly 1000 characters.
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 109)