From ebb7841f721f6c8561131cbe263781826e8600b0 Mon Sep 17 00:00:00 2001 From: Matthias Nott <mnott@mnsoft.org> Date: Thu, 09 Apr 2026 18:17:09 +0200 Subject: [PATCH] fix: ORP fallback to UI clicks for submitted periods --- workflows/UpdateStatus.md | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/workflows/UpdateStatus.md b/workflows/UpdateStatus.md index e65f47f..71c05ff 100644 --- a/workflows/UpdateStatus.md +++ b/workflows/UpdateStatus.md @@ -36,9 +36,28 @@ --- -## Step 3: Update ORP Status via API +## Step 3: Update ORP Status -Navigate to job-room.ch in Playwright (any page), then use internal API: +**Two approaches depending on whether the period has been submitted:** + +### Option A: API (for unsubmitted periods) +Navigate to job-room.ch in Playwright, then use internal API: + +### Option B: UI clicks (for submitted periods - REQUIRED) +The API returns `WORK_EFFORT_ALREADY_SUBMITTED` (400) for entries in periods that have been transmitted. In this case, use the UI: + +1. Navigate to `https://www.job-room.ch/work-efforts` +2. Disable 1Password on all inputs +3. Type company name in the search box (slowly: true) +4. The matching entry appears with radio buttons: Noch offen / Anstellung / Absage +5. Click the "Absage" radio button +6. A dialog appears with "Absagegrund" textbox +7. Type the rejection reason (e.g. "Absage erhalten am DD.MM.YYYY") +8. Click "Speichern" + +**Always try the API first. If it returns 400 with WORK_EFFORT_ALREADY_SUBMITTED, fall back to UI clicks.** + +### 3a. Find the work effort (API approach) ### 3a. Find the work effort -- Gitblit v1.3.1