HR & Operations — cases and test coverage
Written by Chattalyst CEO from the platform code and its 215 related test files · 25 Nov 2026
110product cases
59%fully checked by a test on every change
81%at least partly checked
13%tried on the live site
Why the numbers are lower than "all tests pass": 12 cases (mostly claims, leave approval and company privacy) only have tests that need a real database, and those are skipped on every change and in the weekly run. 11 browser walk-through tests never run. 2 contract page tests are switched off.
Test plan (25 Nov): 33 cases on the live site, only inside the Chattalyst Demo company, look-only or QA-named records, cleaned up after. 69 cases on the test environment: anything that approves, pays, sends to a customer, deletes, changes company settings or needs a second company. 31 of those 69 are automatic tests that already exist and only need switching on.
| Area | Cases | Auto | Live |
|---|---|---|---|
| HR1 Staff lifecycle | 12 | 58% | 58% |
| HR2 Clock in / out | 15 | 100% | 0% |
| HR3 Shifts & roster | 9 | 78% | 33% |
| HR4 Attendance reports & CSV | 8 | 88% | 38% |
| HR5 Leave & Malaysian holidays | 16 | 38% | 0% |
| HR6 Claims | 9 | 0% | 0% |
| HR7 Overtime & salary | 8 | 38% | 0% |
| HR8 Payroll summary CSV | 6 | 83% | 17% |
| OP1 Quotation / invoice / sales order / receipt | 14 | 71% | 0% |
| OP2 Document templates & company profile | 5 | 40% | 0% |
| OP3 Contracts & e-signing | 8 | 38% | 0% |
HR1 · Staff lifecycle 12 cases · auto 7✓ 2½ · live 7
HR1-01Admin invites a staff member; they accept and join the company
Admin → Staff
Partly checkedPassed liveDone
invite-link database rule checked by text only · 25 Nov (QA Invite Staff)
HR1-02Onboarding form: start date, employment details, first shift
Admin
No testPassed liveDone
StaffOnboardDialog has no test · 25 Nov
HR1-03Staff cannot clock in before their start date
Staff
Checked on every changeNot tried liveTest on: test environment
attendancePunch employment window
HR1-04Admin edits a staff profile and access level
Admin
No testBug found → fixed, re-check pendingTest on: live site (Demo org)
no test on the edit panel · bug: panel closed on first click → #359
HR1-05View-only managers cannot see manage tabs or edit punches
Manager (view)
Checked on every changeNot tried liveTest on: live site (Demo org)
AttendanceAdminPage, StaffAttendanceHistory
HR1-06Admin offboards staff with a last working day
Admin
Partly checkedPassed liveDone
rules tested; StaffEmploymentControl screen not · 25 Nov
HR1-07Offboarded staff cannot clock in after last day; can on the last day and can clock out of that shift
Staff
Checked on every changeBug found → fixed, re-check pendingTest on: live site (Demo org)
attendancePunch employment window · bug: could still clock in → #358
HR1-08Offboarded staff disappear from roster and bulk assign after last day, history kept
Admin
Checked on every changeBug found → fixed, re-check pendingTest on: live site (Demo org)
RosterBulkAssignForm/RosterMonthView .offboarded · bug: still rosterable → #358
HR1-09Staff who left show by name (not 'Unknown') in reports and exports
Admin
Checked on every changeBug found → fixed, re-check pendingTest on: live site (Demo org)
attendanceEntries · bug → #360
HR1-10Removed members are never marked absent
System
Checked on every changeNot tried liveTest on: test environment
attendanceEmployment
HR1-11Opening an unknown staff page shows 'not found', not a crash
Admin
Checked on every changeNot tried liveTest on: live site (Demo org)
AttendanceStaffPage (browser test never runs)
HR1-12Another company cannot see our staff or attendance
Other company
Test exists, never runsNot tried liveTest on: test environment
attendance-org-local (skipped: needs real database)
HR2 · Clock in / out 15 cases · auto 15✓ 0½ · live 0
HR2-01Staff clocks in inside the location fence with precise GPS
Staff
Checked on every changeNot tried liveTest on: live site (Demo org)
attendancePunch, ClockInOutCard · not on a real phone
HR2-02Outside the fence: must pick WFH or type a reason (≥5 chars); saved as out of range
Staff
Checked on every changeNot tried liveTest on: live site (Demo org)
OutOfRangeReasonDialog, attendancePunch
HR2-03Approximate / no-accuracy GPS not trusted; 0,0 rejected; location denied = no punch
Staff
Checked on every changeNot tried liveTest on: live site (Demo org)
attendance-phase2-failure-paths, attendancePunch · needs a real phone
HR2-04Photo required: live camera only, no upload; photo must be the staff's own file
Staff
Checked on every changeNot tried liveTest on: live site (Demo org)
ClockInPhotoModal, attendancePunch photo rules
HR2-05Verification rule order: staff override > shift > company default
Admin
Checked on every changeNot tried liveTest on: test environment
AntiBuddyVerification
HR2-06Double clock-in blocked; clock-out without clock-in blocked
Staff
Checked on every changeNot tried liveTest on: test environment
attendancePunchLogic
HR2-07Forgot to clock out: shows 'Missing clock-out', can clock in today; 16h+ shift not booked
Staff
Checked on every changeNot tried liveTest on: test environment
phase2 failure paths, SidebarAttendanceClock
HR2-08Weak signal: punch kept on phone, sent later flagged 'sent late'; >10 min old is dropped
Staff
Checked on every changeNot tried liveTest on: live site (Demo org)
useAttendance offline queue · needs a real phone
HR2-09Lateness: grace window, Malaysia time, overnight shifts
System
Checked on every changeNot tried liveTest on: test environment
attendance-lib, phase2
HR2-10Admin records a manual clock-out with reason
Admin
Checked on every changeNot tried liveTest on: test environment
ManualClockOutDialog, attendancePunch
HR2-11Admin edits or deletes a punch with reason; 'Manual' badge shown
Admin
Checked on every changeNot tried liveTest on: test environment
EditPunchDialog, ManualOverrideBadge
HR2-12Admin opens the clock-in photo (fresh link)
Admin
Checked on every changeNot tried liveTest on: live site (Demo org)
punchPhotoPreviewDialog
HR2-13Admin adds/edits/deletes clock-in locations and radius
Admin
Checked on every changeNot tried liveTest on: test environment
LocationsTable
HR2-14Module switched off: staff see no clock, admins see the enable switch
Staff/Admin
Checked on every changeNot tried liveTest on: test environment
attendanceModule, AttendancePage
HR2-15Phone layout: tap targets ≥48px on a 375px screen
Staff
Checked on every changeNot tried liveTest on: live site (Demo org)
ClockInOutCard
HR3 · Shifts & roster 9 cases · auto 7✓ 0½ · live 3
HR3-01Create, edit, delete a shift
Admin
Checked on every changePassed liveDone
useAttendanceLocationsShiftsRoster · 25 Nov (Assist button overlap → #356)
HR3-02Overnight shift 22:00–06:00 saves and counts 8h; zero-length rejected
Admin
Checked on every changeNot tried liveTest on: test environment
ShiftForms.overnight
HR3-03Assign or clear one roster cell; apply to every matching weekday
Admin
Checked on every changePassed liveDone
RosterCellDialog · 25 Nov
HR3-04Bulk-assign shifts across staff and weekdays; runaway counts capped
Admin
Checked on every changePassed liveDone
AttendanceBulkAssignPage, attendanceAdminAssist · 25 Nov
HR3-05Staff sees today's own shift, rest day, or company default
Staff
Checked on every changeNot tried liveTest on: live site (Demo org)
useMyTodayShift, roster-lib
HR3-06Work-week setting (which days are working days)
Admin
No testNot tried liveTest on: test environment
WorkWeekSettingsCard has no test
HR3-07Rest-day / day-off notice
Staff
Checked on every changeNot tried liveTest on: live site (Demo org)
attendance-dayoff
HR3-08New rosters skip public holidays
System
Test exists, never runsNot tried liveTest on: test environment
hr-holidays-claims-local (skipped)
HR3-09Chatly assistant plans rosters; managers only, approved tools only
Admin
Checked on every changeNot tried liveTest on: test environment
attendanceAdminAssist
HR4 · Attendance reports & CSV 8 cases · auto 7✓ 0½ · live 3
HR4-01Today overview tiles (present, on-time, late, actions); never NaN on empty/error
Admin
Checked on every changeNot tried liveTest on: live site (Demo org)
AttendanceTodayOverview, phase3-kpis
HR4-02Rostered no-show = Absent; holiday / leave shown instead; future never absent
System
Checked on every changeNot tried liveTest on: live site (Demo org)
attendanceEntries, attendance-dayoff
HR4-03All-attendance page: filter by status, name, date
Admin
Checked on every changePassed liveDone
AttendanceAllPage · 25 Nov
HR4-04Staff history page: lateness, flags, edit buttons for managers only
Admin
Checked on every changePassed liveDone
StaffAttendanceHistory · 25 Nov
HR4-05Attendance CSV: worked hours, escaping, names of staff who left
Admin
Checked on every changeBug found → fixed, re-check pendingTest on: live site (Demo org)
attendanceCsv · 'Unknown' names → #360
HR4-06Punches on a public holiday flagged and exported
System
Checked on every changeNot tried liveTest on: live site (Demo org)
attendance-dayoff
HR4-07Owner one-line summary + copy
Owner
Checked on every changeNot tried liveTest on: live site (Demo org)
AttendanceTodayOverview
HR4-08Overtime CSV export contents
Admin
No testNot tried liveTest on: live site (Demo org)
only the phone layout is tested
HR5 · Leave & Malaysian holidays 16 cases · auto 6✓ 5½ · live 0
HR5-01Holiday plan per state: compulsory days, Sunday/clash replacement, Fri–Sat states
Admin
Checked on every changeNot tried liveTest on: test environment
holidays-malaysia (browser test never runs)
HR5-02AI extracts Selangor / KL holidays (buttons and Chatly)
Admin
Checked on every changeNot tried liveTest on: test environment
HolidaysManager, malaysiaHolidays, Chatly tests
HR5-03November reminder to set up next year's plan
Admin
Checked on every changeNot tried liveTest on: live site (Demo org)
holidays-malaysia · due now — it is November
HR5-04A normal member cannot apply a holiday plan
Staff
Test exists, never runsNot tried liveTest on: test environment
skipped (needs real database)
HR5-05Applying a plan refunds leave already booked on the new holiday
System
Test exists, never runsNot tried liveTest on: test environment
skipped
HR5-06Admin creates leave types (entitlement, unlimited, half-day)
Admin
Partly checkedNot tried liveTest on: test environment
Chatly path tested; LeaveTypesManager screen not
HR5-07Staff requests leave; bad dates, >3 months, across years, half-day rules rejected
Staff
Partly checkedNot tried liveTest on: test environment
rules tested; LeaveRequestDialog not
HR5-08Server refuses leave beyond balance
Staff
Partly checkedNot tried liveTest on: test environment
screen reaction tested with fake server; real rule skipped
HR5-09Balance = entitlement − approved − pending, never negative
System
Checked on every changeNot tried liveTest on: live site (Demo org)
leave-lib
HR5-10Admin edits a staff member's leave balance
Admin
No testNot tried liveTest on: test environment
StaffBalanceEditor has no test
HR5-11Manager approves / rejects someone else's leave
Manager
Partly checkedNot tried liveTest on: test environment
screen tested; database rule skipped
HR5-12No one, including the owner, approves their own leave
Manager/Owner
Partly checkedNot tried liveTest on: test environment
buttons hidden (tested); database block skipped
HR5-13Staff cancels pending leave any time, approved only before it starts
Staff
Checked on every changeNot tried liveTest on: test environment
leave-lib, LeaveApprovalQueue
HR5-14Pending leave auto-approved on its start date if company opts in
System
Test exists, never runsNot tried liveTest on: test environment
skipped
HR5-15Attendance shows 'Public holiday' / 'On leave', not Absent
System
Checked on every changeNot tried liveTest on: live site (Demo org)
attendance-dayoff
HR5-16Another company cannot see our holidays or leave
Other company
Test exists, never runsNot tried liveTest on: test environment
skipped
HR6 · Claims 9 cases · auto 0✓ 3½ · live 0
HR6-01Admin sets claim types (e.g. Medical RM100/month, MC linked to sick leave)
Admin
Partly checkedNot tried liveTest on: test environment
rules tested; ClaimCategoriesManager screen not
HR6-02Staff submits a claim with receipt; AI reads date (DD/MM/YYYY) and RM amount
Staff
Partly checkedNot tried liveTest on: test environment
reading rules tested; ClaimSubmitDialog not
HR6-03Monthly cap counts pending + approved + paid; over-cap blocked
Staff
Partly checkedNot tried liveTest on: test environment
calculation tested; real block skipped
HR6-04AI flags: missing sick leave, reused receipt, amount mismatch
Admin
Test exists, never runsNot tried liveTest on: test environment
skipped
HR6-05Staff cannot approve own claim; admin approves and marks paid
Staff/Admin
Test exists, never runsNot tried liveTest on: test environment
skipped — no running test at all
HR6-06Receipts private: cannot upload into or open another person's / company's
Staff
Test exists, never runsNot tried liveTest on: test environment
skipped
HR6-07Clean claim auto-approved when the type allows
System
Test exists, never runsNot tried liveTest on: test environment
skipped
HR6-08Members cannot change claim types or AI results
Staff
Test exists, never runsNot tried liveTest on: test environment
skipped
HR6-09My-claims and admin claims screens load / empty / error
Staff/Admin
No testNot tried liveTest on: test environment
no screen tests
HR7 · Overtime & salary 8 cases · auto 3✓ 3½ · live 0
HR7-01Staff submits an overtime request
Staff
Partly checkedNot tried liveTest on: test environment
list tested; OvertimeRequestDialog not
HR7-02Admin approves / rejects others; cannot approve own (incl. direct database edit)
Admin
Partly checkedNot tried liveTest on: test environment
buttons hidden (tested); database block skipped
HR7-03Claimant cancels own pending overtime
Staff
Test exists, never runsNot tried liveTest on: test environment
skipped
HR7-04OT pay: hourly from daily rate, public holidays deducted, weekly duty allowance
System
Checked on every changeNot tried liveTest on: test environment
overtime
HR7-05Daily-rate basis ÷26 / ÷Mon–Fri / ÷calendar days, used by OT tab
Admin
Checked on every changeNot tried liveTest on: test environment
payrollSummary; OT tab in PR #368 · #368 in progress
HR7-06Admin sets a staff salary
Admin
Partly checkedNot tried liveTest on: test environment
save call tested; SetSalaryDialog not
HR7-07Overtime policy settings
Admin
No testNot tried liveTest on: test environment
OvertimePolicySettingsDialog has no test
HR7-08Overtime admin panel usable on a phone
Admin
Checked on every changeNot tried liveTest on: live site (Demo org)
OvertimeAdminPanel.mobile
HR8 · Payroll summary CSV 6 cases · auto 5✓ 1½ · live 1
HR8-01Off by default; switched on in settings
Admin
Checked on every changeNot tried liveTest on: test environment
PayrollSummaryExport
HR8-02Full month pays exactly the salary under every formula
System
Checked on every changeNot tried liveTest on: test environment
payrollSummary
HR8-03Unpaid leave deducted, approved overtime added
System
Checked on every changeNot tried liveTest on: test environment
payrollSummary
HR8-04Mid-month leaver prorated to last day; left-before-month dropped
System
Checked on every changeBug found → fixed, re-check pendingTest on: live site (Demo org)
payrollSummary · 25 Nov read-only check found divisor issue → #366
HR8-05No salary set: pay left blank, not 0.00
System
Checked on every changeNot tried liveTest on: test environment
payrollSummary
HR8-06One CSV row per staff with documented columns; opens cleanly in Excel
Admin
Partly checkedNot tried liveTest on: live site (Demo org)
columns tested; not opened in Excel
OP1 · Quotation / invoice / sales order / receipt 14 cases · auto 10✓ 4½ · live 0
OP1-01Line items: qty × price, item & bill discounts, SST 6% / 8%
Admin
Checked on every changeNot tried liveTest on: test environment
operationsLineItemsCalculation, useDocumentComposerState
OP1-02Document number suggested; duplicate number gives a clear error
Admin
Checked on every changeNot tried liveTest on: test environment
operationsDocumentRpc/Service
OP1-03Bill To: pick a customer or type a company; missing-details hint
Admin
Checked on every changeNot tried liveTest on: test environment
operationsDocumentWording · #369 type-or-pick company not merged
OP1-04Readiness check blocks sending (due date before issue date etc.)
Admin
Checked on every changeNot tried liveTest on: test environment
operationsDocumentFlow, due-date (browser test never runs)
OP1-05Send by WhatsApp to the chosen number and message; failure not marked sent; link-only fallback
Admin
Checked on every changeNot tried liveTest on: test environment
DocumentSendSheet, operationsDocumentSendService
OP1-06Customer opens the public link without login (token only) and sees the right document
Customer
Partly checkedNot tried liveTest on: live site (Demo org)
access rule checked by text only; DocumentPublicViewPage not
OP1-07Convert quotation → invoice, due date from payment terms
Admin
Checked on every changeNot tried liveTest on: test environment
due-date, DocumentsListPage
OP1-08Record payment, mark paid, overdue reminder, receipt
Admin
Partly checkedNot tried liveTest on: test environment
actions tested; receipt PDF not
OP1-09Void, revert to draft, duplicate, quote accepted/declined
Admin
Checked on every changeNot tried liveTest on: test environment
DocumentDetailPage, Service
OP1-10Content locked once sent
System
Checked on every changeNot tried liveTest on: test environment
operationsDocumentFlow
OP1-11PDF download: quotation identical on every layout; invoice / receipt / sales order PDFs
Admin
Partly checkedNot tried liveTest on: live site (Demo org)
quotation baseline only
OP1-12Document wording (Sales Order preset, Bill To fields); owner/admin only
Owner/Admin
Checked on every changeNot tried liveTest on: test environment
quotationDocumentWordingRender, documentWordingPermission
OP1-13Documents list: filters, KPIs, bulk export, paging, phone view
Admin
Checked on every changeNot tried liveTest on: live site (Demo org)
DocumentsListPage
OP1-14Another company cannot see our documents
Other company
Partly checkedNot tried liveTest on: test environment
table list checked by text only; no real database test
OP2 · Document templates & company profile 5 cases · auto 2✓ 2½ · live 0
OP2-0113 layouts; unknown layout falls back to classic; brand colours from company profile
Admin
Checked on every changeNot tried liveTest on: live site (Demo org)
operations-document-layouts
OP2-02Layout style overrides and fonts
Admin
Checked on every changeNot tried liveTest on: live site (Demo org)
operations-document-layout-styles
OP2-03Templates page: browse gallery, pick and apply a layout
Admin
No testNot tried liveTest on: live site (Demo org)
TemplatesPage, DocumentLayoutGallery not tested
OP2-04Company profile (issuer) create / edit / delete
Admin
Partly checkedNot tried liveTest on: test environment
service tested; screen not
OP2-05Saved line-item presets
Admin
Partly checkedNot tried liveTest on: test environment
service tested; screen not
OP3 · Contracts & e-signing 8 cases · auto 3✓ 4½ · live 0
OP3-01Build a contract from template, blank, or imported Word/PDF; variables detected
Admin
Checked on every changeNot tried liveTest on: test environment
ContractTemplateBuilderPage + ~30 contract tests
OP3-02Prepare: place signer fields on the PDF
Admin
Test switched offNot tried liveTest on: test environment
ContractPreparePage test switched off (broken mock)
OP3-03Send to one signer, public link, or bulk CSV batch
Admin
Checked on every changeNot tried liveTest on: test environment
ContractBulkComposerPage, contractPreparedSendFlow
OP3-04Guest signs on a phone; errors and expired links handled
Signer
Partly checkedNot tried liveTest on: test environment
unit tests run; browser signing test never runs
OP3-05Completion: certificate, completed PDF, retry if PDF missing
System
Partly checkedNot tried liveTest on: test environment
library tested; ContractDetailPage test switched off
OP3-06End, delete, clone a contract
Admin
Partly checkedNot tried liveTest on: test environment
list page tested; detail page test switched off
OP3-07Signature tamper-evidence
System
Checked on every changeNot tried liveTest on: test environment
contractSignatureCrypto, signatureTransparency
OP3-08Signer can only fill their own fields; campaign identity check
Signer
Partly checkedNot tried liveTest on: test environment
unit tested; browser tests never run