Closed timeowilliams closed 2 months ago
π Deployed to the WRE-website-pr-23 environment in WRE Frontend | Service | Status | Web | Updated (UTC) |
---|
This set of changes includes modifications to the .env
file for production readiness, the introduction of a GitHub Actions workflow for Playwright testing, enhancements to the .gitignore
file, and updates to the README.md
for clearer documentation. Various components received improved validation mechanisms, and new end-to-end tests were created to ensure correct functionality in contact forms and listings.
Files | Change Summary |
---|---|
.env |
Updated REACT_APP_SERVER_URL to production URL; added BASE_URL , TEST_USERNAME , and TEST_PASSWORD ; removed JWT_SECRET and REACT_APP_POSTHOG_API_KEY . |
.github/workflows/playwright_tests.yml |
New workflow created for Playwright tests on pull requests, installing dependencies and running tests with report uploads. |
.gitignore |
Added playwright-report and test-results to ignored files. |
README.md |
Added instructions for installing Playwright and running end-to-end tests. |
package.json |
Replaced "test" with "test:e2e" for Playwright testing; added several new dependencies for testing and environment management. |
playwright.config.js |
New configuration file for Playwright with settings for test directory, timeout, and browser options. |
src/components/* |
Enhanced form validation and error handling in AddListing.jsx and ModalButton.jsx ; added data-testid attributes in BuyerBrokerTable.jsx . |
src/lib/utils.js |
Added validation functions; included console log in sendEmail function for better traceability. |
tests/e2e/* |
New end-to-end test files for contact form, listings, and navigation, ensuring functionality works as expected. |
sequenceDiagram
participant User
participant UI
participant Server
User->>UI: Fill out contact form
UI->>Server: Submit contact form
Server-->>UI: Confirm submission
UI-->>User: Show success notification
π° Hopping through the code, oh what a delight,
With new tests and forms, everything feels right!
Validations are strong, errors now clear,
A joyful release, letβs all give a cheer!
Testing and toasting, letβs dance and rejoice,
For in our code, weβve found our true voice! π
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
File | Before | After |
---|---|---|
.github/workflows/playwright_tests.yml |
β | 954 B |
package.json |
1.3 kB |
10%β1.4 kB |
playwright.config.js |
β | 426 B |
README.md |
789 B |
10%β867 B |
src/components/AddListing.jsx |
5.6 kB |
55%β8.6 kB |
src/components/BuyerBrokerTable.jsx |
7.9 kB |
2%β8.1 kB |
src/components/ModalButton.jsx |
4.7 kB |
32%β6.3 kB |
src/lib/utils.js |
1.3 kB |
83%β2.3 kB |
tests/e2e/contact.spec.js |
β | 1.4 kB |
tests/e2e/listings.spec.js |
β | 2.9 kB |
tests/e2e/navigation.spec.js |
β | 1.7 kB |
Total (Includes all files) | 4.4 MB |
0.3%β4.4 MB |
Tarball size | 4.3 MB |
0.09%β4.3 MB |
π€ This report was automatically generated by pkg-size-action
Description
Type of change
Testing
Screenshots/Screen Recordings :
Notes
Summary by CodeRabbit
New Features
react-hot-toast
.Bug Fixes
Documentation
Chores
.gitignore
rules for test output directories.