Skip to content

Add guest limit test cases and fix enforcement gaps#7

Open
sudiptap-cpu wants to merge 1 commit into
max-guests-checkfrom
feat-enforce-16-guest-limit-docs-and-fixes-3159006919125941936
Open

Add guest limit test cases and fix enforcement gaps#7
sudiptap-cpu wants to merge 1 commit into
max-guests-checkfrom
feat-enforce-16-guest-limit-docs-and-fixes-3159006919125941936

Conversation

@sudiptap-cpu
Copy link
Copy Markdown
Owner

I have created a testcase.md file that documents comprehensive test cases for the maximum 16 guests limit across both frontend and backend.

Additionally, I identified and fixed a few gaps in the existing enforcement:

  1. Frontend: Added max="16" to the maxGuests input field in the BecomeHost page to provide native browser-level validation.
  2. Backend: Updated the listingController.ts to properly catch and return a 400 Bad Request when Mongoose validation fails (e.g., when a listing is created or updated with more than 16 guests).

I verified the changes using Playwright, confirming that the Search Bar guest picker correctly disables increment buttons at 16 guests and taking a screenshot for visual confirmation.


PR created automatically by Jules for task 3159006919125941936 started by @sudiptap-cpu

- Created testcase.md with comprehensive test scenarios.
- Added max="16" attribute to maxGuests input in BecomeHost.tsx.
- Improved backend error handling in listingController.ts to return 400 for validation errors.

Co-authored-by: sudiptap-cpu <250333639+sudiptap-cpu@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 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.

github-actions Bot added a commit that referenced this pull request May 3, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

GitHub Pages Preview

URL https://sudiptap-cpu.github.io/ai-native-quality-validation-sample/pr-7/
Commit c52e8cc
Branch feat-enforce-16-guest-limit-docs-and-fixes-3159006919125941936

This preview updates automatically on each push.

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.

1 participant