Return back to the README.md file.
To test the responsiveness, I have launched the website very early on. I followed the mobile-first strategy and verified all of my modifications using the DevTools browsers for Google Chrome and Microsoft Edge. Deployed versions were tested using the external website Responsive Design Checker. The Am I Responsive website was another external source that was used to obtain a unified view of different device breakpoints.
I have also used Google Chrome's Mobile Simulator extension to evaluate the responsiveness of even more specialized devices. Device samples were examined for navigation, element alignment, content layout, and functionality concerns at different breakpoints.
Final Test Results:
Size | Navigation | Element Alignments | Content Placement | Functionality |
---|---|---|---|---|
sm | ✓ | ✓ | ✓ | ✓ |
md | ✓ | ✓ | ✓ | ✓ |
lg | ✓ | ✓ | ✓ | ✓ |
xl | ✓ | ✓ | ✓ | ✓ |
xxl | ✓ | ✓ | ✓ | ✓ |
The recommended HTML W3C Validator to validate all the project's HTML files.
This is the process which was followed of validating an HTML file by direct input:
- Access the Validator: Visit the W3C Markup Validation Service.
- Choose Direct Input: Select the "Validate by Direct Input" tab.
- Paste Your HTML Code: Copy HTML code and paste it into the text box.
- Validate: Click the "Check" button to validate HTML.
HTML Validation Results
The W3C Jigsaw tool, provided by the W3C, enables to validate and verify the correctness of CSS code. It ensures that your web pages adhere to W3C standards, promoting interoperability and accessibility.
Tested | Result | View Result | Pass |
---|---|---|---|
CSS file | No errors | ✅ |
No major errors were found when validating JavaScript through Jshint.
The python files have all been passed through PEP8 CI Online
PEP8 Test Results
Manual Testing Results
Feature/Element | Expected Outcome | Test Performed | Result |
---|---|---|---|
Register | Form appears correct with the correct focus and hover styles on all inputs. | Hover/focus on each field in form. | Pass |
Invalid Form | User is prompted to enter missing details if any are left out. | Leave out fields and try to submit. | Pass |
Invalid Form (email) | User is prompted to enter a valid email if an invalid one is entered. | Enter invalid email and try to submit. | Pass |
Success Message | When the user registers, the success message appears and redirects to the login page after 2.5 seconds. | Submit valid details. | Pass |
Login | Form appears correct with the correct focus and hover styles on all inputs. | Hover/focus on each field in form. | Pass |
Invalid Form | User is prompted to enter missing details if any are left out. | Leave out fields and try to submit. | Pass |
Invalid Details | User is shown a message if the login details are incorrect. | Enter incorrect details and try to submit. | Pass |
Success Message | When the user logs in successfully, a success message appears and redirects to the member area after 2.5 seconds. | Submit valid details. | Pass. Show other message |
Logout | Button displays correctly, with correct hover/focus styles. | Hover/focus on the button. | Pass |
Logout Successful | When the user logs out successfully, a success message appears and redirects to the homepage after 2.5 seconds. | Press logout button. | Pass |
Messages | Correct message appears when user registers/logs in/logs out and they disappear after 2.5 seconds. | Register/log in/log out. | Pass |
Correct Custom Error Pages | Custom 404 page appears when page not found. Custom 403 page appears when a forbidden error appears. Custom 500 page appears when the server is not found. | Put in wrong URL to see 404. 403 and 500 not tested. | pass |
Home Link | The link home works correctly sending the user back home, and the styles for hover/focus are correct. | Hover/focus and press the home link. | Pass |
Get To The Member Area | Any logged-in users can go to the member area. If a non-member tries to go to this page, they get redirected to log in page. | Type in member area URL as a non-member. | Pass |
Correct Movie Details | For each Movie, it should have name/icons (or placeholder) and correct colors (or default ones). | Check each Movie section in member area. Add new Movie with no icons or colors. | Pass |
Link in Movie Detail Section | Correct link to Movie detail page is displayed/works and has correct hover/focus styles. | Press/hover/focus on each Movie link. | Pass |
Form Styles | Form input areas and submit button have correct focus style and submit button has correct hover style. | Hover/focus/press all input areas and submit button. | Pass |
Invalid Form | Asks to add content/Movie if none provided when submit is pressed and doesn't let user enter more than 250 characters in comment content. | Try to submit without fields present and try to add too long comment. | Pass |
Success Message | When comment is submitted, success message appears stating it is going for approval. | Submit valid comment. | Pass |
Add Comment Whilst Not On Page | When User somehow accidentally puts in add comment URL without being on the member page, this will mean the form is invalid and redirect the user to the member area. | Put in add comment URL whilst on a different page. | Pass |
Comment Displayed | When pending comments are made, they are displayed in the correct area with the correct "Pending Approval" label and status. | Check pending comments. | Pass |
Comment Approved | When the comment is approved by admin, the comment is displayed in the correct Movie area with user name label and normal style. | Check approved comments. | Pass |
Edit Button On Comments | Edit button has correct style when hovered/focused. | Hover/focus on edit buttons (pencil icon). | No button |
Press Edit Button | When the edit comment buttons are pressed, the page scrolls up to the edit comment form which then changes to the edit comment form. The heading and instructions change/the Movie field set to relevant Movie. | Press edit buttons (pencil icon). | Pass |
Invalid Edit Information (No Comment) | If the user text is deleted in the edit comment and update is pressed, the user will be prompted to add text. | Edit comment and delete all words in text area. | Pass |
Invalid Edit Information (Too Long Comment) | When the user writes more than 250 characters, the user will be prompted to reduce the character count. | Edit the comment and write more than 250 characters in the text area. | Pass |
Edit Successful | When the user presses update, the comment is updated in the correct Movie section and a success message appears at the top stating the comment is successfully updated. | Update a comment. | Pass |
Updating Comment Whilst Not On The Page | When the user somehow accidentally puts in the edit comment URL without being on the member page, this will mean the form is invalid and redirect the user to the member area. | Put in the edit comment URL whilst on a different page. | Pass |
Admin Area Access | Only superusers can access this area; normal users are prevented from accessing the page and redirected to log in. | Type in the admin URL as a non-superuser. | Pass |
Change Movie Details | When the Movie details are changed in the admin area, it is updated in the correct section and success message is shown when updated. | Edit Movie details. | Pass |
Delete Movie | When the delete button is pressed, a modal is shown with a warning message to ask if |
- BUG: Index page HTML validation - Link
- BUG: Section lacks heading. - Link
- BUG: Error Pages Display - Link
- BUG: Element div not allowed as child of element ul in this context. - Link
- BUG: Low contrast backlight in the category menu. - Link
- BUG: CRUD problems - Link
- BUG: Element title must not be empty. - Link
- BUG: Dropdown menu problems - Link
Although, accessibility scores were high on Lighthouse, I have retested the page. WAVE online tool was used to check terminal colour contrast. All tests were passed. However, it should be noted that logo may return contrast error depending on browser and operating system.
While building the application, the general principles of accessibility were adhered to:
- Using clear instructions
- Validating inputs before moving on to the next step
- Testing the page to make sure it does not affect performance from user input
- Using ARIA labels Wave made a few comments and found a few mistakes.