Go back to README.md
- Testing
- Manual Testing
- Devices and browsers used for testing
- User Stories Testing
- Home Page Testing.
- All Products Page Testing.
- About Page Testing.
- Product Details Page Testing.
- Product Management Page Testing.
- User Profile Page Testing.
- Shopping Cart Page Testing.
- Checkout Page Testing.
- Logout Page Testing.
- Login Page Testing.
- Password Reset Page Testing.
- Sign Up Page Testing.
All pages were tested with Google Chrome Lighthouse. Testing was performed in private browsing mode and on the live website on Heroku.
Page | Image |
---|---|
Home | ![]() |
All Products | ![]() |
Product Details | ![]() |
About | ![]() |
Add Product | ![]() |
Edit Product | ![]() |
Cart Empty | ![]() |
Cart with Products | ![]() |
Checkout | ![]() |
Checkout Success | ![]() |
Profile | ![]() |
Login | ![]() |
logout | ![]() |
Sign Up | ![]() |
Password Reset | ![]() |
- No errors were found when passing through the official W3C validator.
- All pages were passed through the official W3C validator.
- Validating was done by a live website on Heroku. Some errors were found but they were fixed immediately.
Add Product and edit product
- Add Product returned 16 different errors. All coming from Django_Summernote. Add Product page has description and specification fields that are using Django_Summernote.
- Given more time I would like to try to fix these errors.
- Because these pages are using same form they have same errors.
- About page returned 4 errors. All coming from Django_Summernote.
- All JavaScript files were passed through the official JSHint validator.
File | Image |
---|---|
main.js | ![]() |
- All Python files were passed through the Code Institute PEP8 validator.
File | Result |
---|---|
settings.py | ![]() |
urls.py | ![]() |
views.py | ![]() |
File | Result |
---|---|
admin.py | ![]() |
apps.py | ![]() |
forms.py | ![]() |
models.py | ![]() |
urls.py | ![]() |
views.py | ![]() |
File | Result |
---|---|
admin.py | ![]() |
apps.py | ![]() |
forms.py | ![]() |
models.py | ![]() |
urls.py | ![]() |
views.py | ![]() |
File | Result |
---|---|
admin.py | ![]() |
apps.py | ![]() |
forms.py | ![]() |
models.py | ![]() |
urls.py | ![]() |
signals.py | ![]() |
views.py | ![]() |
webhooks.py | ![]() |
webhook_handler.py | ![]() |
File | Result |
---|---|
urls.py | ![]() |
views.py | ![]() |
File | Result |
---|---|
context.py | ![]() |
urls.py | ![]() |
views.py | ![]() |
File | Result |
---|---|
admin.py | ![]() |
apps.py | ![]() |
forms.py | ![]() |
models.py | ![]() |
urls.py | ![]() |
views.py | ![]() |
This e-commerce website was tested on multiple devices and browsers. All tests were performed in private browsing mode.
Device | Browser | Result |
---|---|---|
Dell Windows 10 desktop computer | Google Chrome | Works as expected |
Dell Windows 10 desktop computer | Microsoft Edge | Works as expected |
Dell Windows 10 desktop computer | Mozilla Firefox | Works as expected |
Dell Windows 10 desktop computer | Opera | Works as expected |
HP Windows 11 laptop 13" Screen | Google Chrome | Works as expected |
HP Windows 11 laptop 13" Screen | Microsoft Edge | Works as expected |
HP Windows 11 laptop 13" Screen | Mozilla Firefox | Works as expected |
Apple iPhone 12 | Safari | Works as expected |
Apple iPhone 12 | Google Chrome | Works as expected |
Apple iPhone 12 | Mozilla Firefox | Works as expected |
Apple iPhone 13 | Safari | Works as expected |
Apple iPad 10th generation | Safari | Works as expected |
Action | Expected Result | Actual Result | Image |
---|---|---|---|
Click on the logo in the navigation bar | The user is redirected to the home page. | Works as expected. | |
Enter a search term in the search bar | The user is redirected to the search results page. | Works as expected. | |
! User clicks on the login button in the navigation bar | The user is redirected to the login page. | Works as expected. | |
User clicks on the sign up button in the navigation bar | The user is redirected to the sign up page. | Works as expected. | |
User clicks on the shopping cart icon in the navigation bar | The user is redirected to the shopping cart page. | Works as expected. | |
User clicks on the profile icon in the navigation bar | The user is redirected to the profile page. | Works as expected. | |
User clicks on the logout button in the navigation bar | The user is logged out and redirected to the home page. | Works as expected. | |
User selects dropdown navigation menu item in the navigation bar | Dropdown menu opens with relevant links. | Works as expected. | |
User clicks on any of the navigation links in the dropdown menu | The user is redirected to the relevant page. | Works as expected. | |
User clicks on the "About Us" link | The user is redirected to the about page. | Works as expected. | |
User clicks on shop email address on the footer | The user's email client opens with the shop email address in the "To" field. | Works as expected. | |
User clicks on the Facebook icon on the footer | The user is redirected to the business Facebook page. | Works as expected. | |
User clicks on the privacy policy link on the footer | The user is redirected to the privacy policy page. (about page) | Works as expected. | |
User enters their email address in the newsletter sign up form | If not on list already the user is added to the mailing list and a success message is displayed. | Works as expected. |
- All pages are the same with only sorting and filtering options changing.
- The Navigation bar and footer are the same as on the home page.
Action | Expected Result | Actual Result | Image |
---|---|---|---|
User hovers the cursor over the product card | The product card gets overlay with a semi-transparent layer and "Click for more" button appears. | Works as expected. | |
User clicks on the product card | The user is redirected to the product details page. | Works as expected. | |
On the top of the page user can see the number of products found | The number of products found is displayed and it links back to all products page. | Works as expected. | |
User clicks on the "Arrow down" icon in the sorting dropdown menu | The sorting options are displayed. | Works as expected. |
- The Navigation bar and footer are the same as on the home page.
Action | Expected Result | Actual Result | Image |
---|---|---|---|
If user is authenticated and admin | The user can see the edit button that redirects to the edit about page. | Works as expected. | |
When user fills the contact form and clicks on the submit button | Success message is displayed, page is reloaded and form is cleared. | Works as expected. | |
When user fills out the faq form and clicks on the submit button | Success message is displayed, page is reloaded and form is cleared. | Works as expected. |
- The Navigation bar and footer are the same as on the home page.
Action | Expected Result | Actual Result | Image |
---|---|---|---|
User clicks on the product image | The image is displayed in a new window. | Works as expected. | |
clicks on the quantity field + or - buttons | The quantity is increased or decreased by 1. | Works as expected. | |
User clicks on the "Add to cart" button | The product is added to the shopping cart and a success message is displayed. | Works as expected. | |
User clicks on the "Add to favorites" button | The product is added to the favorites list and a success message is displayed. | Works as expected. | |
User clicks on the "remove from favorites" button | The product is removed from the favorites list and a success message is displayed. | Works as expected. | |
User clicks on the "keep shopping" button | The user is redirected to the all products page. | Works as expected. |
- The Navigation bar and footer are the same as on the home page.
Action | Expected Result | Actual Result |
---|---|---|
User clicks on the "Add Product" navigation link | The user is redirected to the add product page. | Works as expected. |
User clicks on the edit/delete products link | The user is redirected to the edit/delete products page. | Works as expected. |
on "Add Product" page user clicks on the "Cancel" button | The user is redirected to the product management page. | Works as expected. |
on "Add Product" page user clicks on the "Add Product" button | The product is added to the database and the user is redirected to the product management page and a success message is displayed. | Works as expected. |
on "Edit/Delete Products" page user clicks on the "Edit" button | The user is redirected to the edit product page. | Works as expected. |
on "Edit/Delete Products" page user clicks on the "Delete" button | The product is deleted or hidden from the database and the user is redirected to the product management page and a success message is displayed. | Works as expected. |
on the bottom of "edit/delete products" page when product deleted if user clicks on un-hide button | Product is made visible again and success message is displayed. | Works as expected. |
- The Navigation bar and footer are the same as on the home page.
- Page only available to authenticated users.
Action | Expected Result | Actual Result |
---|---|---|
User fills out the billing information and click on the "Update Information" button | The billing information is updated and a success message is displayed. | Works as expected. |
If there is favorites, a favorites table is displayed, User clicks on the "remove from favorites" button | The product is removed from the favorites list and a success message is displayed. | Works as expected. |
user clicks on the "add to cart" button | The product is added to the shopping cart and a success message is displayed. | Works as expected. |
User clicks on the order number | The user is redirected to the product details page. | Works as expected. |
- The Navigation bar and footer are the same as on the home page.
Action | Expected Result | Actual Result |
---|---|---|
User clicks on the shopping cart icon in the top navigation bar | The user is redirected to the shopping cart page. | Works as expected. |
when no products in the shopping cart user is show empty shopping cart page | The user is shown empty shopping cart page. | Works as expected. |
When items in the shopping cart user is shown shopping cart page with products | The user is shown shopping cart page with products. | Works as expected. |
User clicks on the "keep shopping" button | The user is redirected to the all products page. | Works as expected. |
User clicks on the "checkout" button | The user is redirected to the checkout page. | Works as expected. |
User clicks on the "remove" button | The product is removed from the shopping cart and a success message is displayed. | Works as expected. |
User clicks on the "update" button | The product quantity is updated and a success message is displayed. | Works as expected. |
user clicks on the + or - buttons in the quantity field | The product quantity is updated and a success message is displayed. | Works as expected. |
- The Navigation bar and footer are the same as on the home page.
Action | Expected Result | Actual Result |
---|---|---|
User clicks on the "adjust cart" button | The user is redirected to the shopping cart page. | Works as expected. |
User clicks on the "complete order" button | The user is redirected to the checkout success page and a success message is displayed. | Works as expected. |
- The Navigation bar and footer are the same as on the home page.
Action | Expected Result | Actual Result |
---|---|---|
User clicks on the "logout" button | The user is logged out and redirected to the home page. | Works as expected. |
User clicks on the "back" button | The user is redirected to the previous page. | Works as expected. |
- The Navigation bar and footer are the same as on the home page.
Action | Expected Result | Actual Result |
---|---|---|
User clicks on the "login" button | The user is logged in and redirected back to the page they were on. | Works as expected. |
User clicks on the "forgot password" link | The user is redirected to the password reset page. | Works as expected. |
User clicks on the "sign up" link within the login form | The user is redirected to the sign up page. | Works as expected. |
- The Navigation bar and footer are the same as on the home page.
Action | Expected Result | Actual Result |
---|---|---|
User enters their email address and clicks on the "reset password" button | The user is sent an email with a link to reset their password. | Works as expected. |
- The Navigation bar and footer are the same as on the home page.
Action | Expected Result | Actual Result |
---|---|---|
User enters valid information and clicks on the "sign up" button | Email confirmation is sent to the user and the user is redirected to the login page. | Works as expected. |
User enters invalid information and clicks on the "sign up" button | The user is redirected to the sign up page and an error message is displayed. | Works as expected. |
User clicks on the "login" link within the sign up form | The user is redirected to the login page. | Works as expected. |
Go back to README.md