Welcome! We're so grateful you're considering contributing to Sefaria's test coverage. We are so appreciative for our enthusiastic community of developers.
Playwright tests bulletproof Sefaria from bugs. They are easy to contribute and make our digital library more resilient. This repo uses issues and projects to manage volunteer contributions to tests. All pull requests will need to be to the main Sefaria-Project repository.
Questions? Contact us at [email protected]
First, clone the Sefaria project repository:
git clone https://github.com/Sefaria/Sefaria-Project.git
Next, install Playwright and its test runner:
npm install playwright@latest
npm install @playwright/test
npx playwright install
Finally, run the Playwright test UI:
npx playwright test --ui
This command will launch the Playwright test user interface where you can run and manage your tests.
- Go to the Sefaria-Project repository on GitHub.
- Click the "Fork" button at the top right of the page. This will create a copy of the repository in your GitHub account.
Once you've forked the repository, clone your fork to your local machine:
git clone https://github.com/your-username/Sefaria-Project.git
Replace your-username
with your GitHub username.
Before making any changes, create a new branch for your work:
git checkout -b your-branch-name
Replace your-branch-name
with a descriptive name for your branch.
Make the necessary changes to the codebase and commit them:
git add .
git commit -m "Description of your changes"
Push your changes to your forked repository:
git push origin your-branch-name
- Go to your forked repository on GitHub.
- Click the "Compare & pull request" button.
- Ensure the base repository is
Sefaria/Sefaria-Project
and the base branch ismaster
. - Fill in the title and description for your pull request. Make sure to include a reference to the relevant GitHub issue from this repo by using
Fixes #issue_number
orCloses #issue_number
in the description. This will automatically link your pull request to the issue.
Questions? We're here to help. Feel free to reach out at [email protected] anytime.
You're now set up to start running Playwright tests for the Sefaria project. If you encounter any issues or have questions, please refer to the Playwright documentation for more detailed information.