This directory contains automated screenshot tools for the Bible Study Tool.
The take-screenshots.js script uses Playwright to automatically capture screenshots of the application.
- Playwright is installed (run
npm installfirst) - Chromium browser is installed (run
npx playwright install chromium) - Development server is running (
npm run dev)
-
Start the development server:
npm run dev
-
In another terminal, run the screenshot script:
npm run screenshots
Or directly:
node scripts/take-screenshots.js
-
Screenshots will be saved to:
docs/screenshots/
You can customize the base URL:
BASE_URL=http://localhost:3000 npm run screenshotsThe script automatically captures:
main-interface.png- Main interface with all tabslookup-reference.png- Reference lookup (John 3:16)search-results.png- Search results for "love"parallel-view.png- Parallel Bible view (KJV + NIV)browse-tab.png- Browse tab (John 1)mobile-view.png- Mobile responsive view
Server not running error:
- Make sure
npm run devis running - Check that the server is accessible at the URL shown
Screenshots are empty:
- The API might need to be configured
- Check that BibleSuperSearch API is accessible
- Some screenshots may require API responses to load
Timeout errors:
- Increase timeout values in the script
- Check your API response times