ms4-unetto-pizza

Testing

Manual testing was performed for this project due to time constraints.

HTML Validation

HTML Online validator HTML validator

CSS Validation

CSS Online validator jigsaw.w3.org

JavaScript Validation

JavaScript Online validator jshint.com

Python Validation

PEP8 requirements My python code is been refactored during development. I used the IntelliSense (Pylance) for VScode and Gitpod extension to checks the validity of my Python code.

Responsive Layout

The web pages render well on a variety of devices or screen size. Is ensured content legibility in any size. The grids resize correctly. Bootstrap media queries works fine. Flexible images are also correctly responsive. Responsive layouts automatically adjust and adapt to any device (desktop, laptop, tablet, mobile phone) or screen size.

Responsibe behaviour was tested using Chrome Developer Tools and Firefox Developer Tools

Physical devices used for testing:

Browsers tested

Authentication

To ensure security only authenticated user can access personal information. Every attempt to access restricted pages are prevented. Functionality like create/update/delete product are allowed only to admin and superuser.

A user logged out that try to access certain restricted functionality are redirected to the login page. A simple user logged in that try to access restricted functionality like add/update/delete are stopped with an error message. Only superusers can see in the template the restricted functionalities.

Images

Product without images renders a dummy image instead. Uploaded images are correctly displayed.

Behaviour of Individual Pages

Home

Product detail

Profile - user logged in

Cart

Checkout

Checkout Success

Add - product management

Edit - product page

Authentication - Allauth pages

Messages

Bugs

Fixed: ✔️ Integrity error at /menu/add/ null value in column “favourite” of relation “menu_product” violates not-null constraint

Adding a new product this bug showed up. This bug started after deleting the favourite field in the Product model. Favourites will be a future features on the app. The bug wasn’t present in local. After reinitializing the heroku app the bug was solved.