Fix submit verification: wait for modal detach instead of fixed sleep

Replace fixed 2.5s sleep + single check with event-driven waitForSelector
(state: 'detached', timeout: 8s). If modal persists, check for success
indicators (success text, Submit button gone) before marking incomplete.
Fixes false 'incomplete' status when LinkedIn shows post-submit dialog.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 11:23:03 -08:00
parent 51a4231b5d
commit 7f8cc3658e
2 changed files with 67 additions and 9 deletions

6
.gitignore vendored
View File

@@ -16,3 +16,9 @@ config/search_config.json
# Templates are committed instead (see config/*.example.json)
data/*.lock
test_dry_run.mjs
test_full_flow.mjs
test_modal_diag.mjs
test_labels.mjs
test_buttons.mjs
test_submit.mjs