Skip to content

test(e2e): add End-to-End (E2E) tests for the RAG Integration Example #1446

@YasharF

Description

@YasharF

Update Oct 22: As we are approaching the end of October, I'll accept the first PR that is ready to be merged. No need for an exclusive issue assignment. Make sure to go over this entire issue description including its notes.


Prerequisites:

  1. You must have obtained a valid Together.ai API Key and a Hugging Face API Key - see https://github.com/sahat/hackathon-starter?tab=readme-ov-file#obtaining-api-keys
  2. Have Hackathon Starter up and running on MongoDB Atlas with the above key and be able to load /ai/rag , try it, and understand what it does.
  3. Be able to run npm run test:e2e-nokey with all existing tests passing.

Scope:

  • Create test/e2e/rag.e2e.test.js for E2E testing of /ai/rag with Playwright. See test/e2e-nokey/github-api.e2e.test.js as an example.
  • The tests must cover all data paths.
  • npm run test:e2e-nokey should run the existing tests and your new tests, and all should be passing.

Please include a screenshot of the test report with your submission.

Note 1: You would need to complete the prerequisites before asking for GitHub issue assignment.
Note 2: Please don't just copy-paste AI-generated content (code, issue replies, or PR text), as such submissions will be rejected and may be marked as spam. You can use AI assistants to be more efficient, but the final result should be your work with the help of an assistant, not an assistant's output taken at face value and copy-pasted.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions