Skip to content

🧪 [testing improvement] Add tests for challenge_ts edge cases#613

Closed
rowan-m wants to merge 1 commit intomainfrom
jules-testing-improvement-challenge-ts-15921032405317755597
Closed

🧪 [testing improvement] Add tests for challenge_ts edge cases#613
rowan-m wants to merge 1 commit intomainfrom
jules-testing-improvement-challenge-ts-15921032405317755597

Conversation

@rowan-m
Copy link
Copy Markdown
Contributor

@rowan-m rowan-m commented Mar 26, 2026

🎯 What: This testing improvement adds explicit edge cases to ReCaptchaTest for empty or missing challenge_ts returned from the API when timeout verification is active.

📊 Coverage: Previously, the invalid-timestamp was tested, but not cases where challenge_ts is empty string or completely omitted from the API JSON response, which evaluates to false when parsing with strtotime().

Result: Enhanced test coverage that verifies edge-cases for missing/empty challenge_ts correctly bypass timeout logic without causing false positives.


PR created automatically by Jules for task 15921032405317755597 started by @rowan-m

Adds tests to ensure the ReCaptcha verification does not incorrectly
flag a challenge timeout when `challenge_ts` is either missing or empty.
These strings evaluate to false when parsed by `strtotime()`, thereby
skipping the challenge timeout check gracefully.

Co-authored-by: rowan-m <108052+rowan-m@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same
when pulling b993887 on jules-testing-improvement-challenge-ts-15921032405317755597
into 6b49254 on main.

@rowan-m rowan-m closed this Mar 26, 2026
@rowan-m rowan-m deleted the jules-testing-improvement-challenge-ts-15921032405317755597 branch March 26, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants