Skip to content

Commit

Permalink
final deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
brianach committed Aug 20, 2023
1 parent 1544f9b commit e5d773d
Show file tree
Hide file tree
Showing 4 changed files with 388 additions and 69 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ node_modules/
.github/
cloudinary_python.txt
README.md
media/docs/
media/
.coverage
db.sqlite3

htmlcov/
CodeTesting.md
5 changes: 5 additions & 0 deletions .theia/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"[markdown]": {
"editor.defaultFormatter": "davidanson.vscode-markdownlint"
}
}
132 changes: 129 additions & 3 deletions CodeTesting.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
# Testing

### [HTML Validator](https://validator.w3.org/)
Code testing and validation tests, user story testing and user acceptance testing.

## Table of Contents

- [Testing](#testing)
- [Table of Contents](#table-of-contents)
- [HTML Validation](#html-validation)
- [Templates](#templates)
- [Accounts templates](#accounts-templates)
- [Error page templates](#error-page-templates)
- [Home](#home)
- [Post Details](#post-details)
- [About](#about)
- [Map](#map)
- [Popup](#popup)
- [CSS Validator](#css-validator)
- [JavaScript Testing](#javascript-testing)
- [Python Testing](#python-testing)
- [User Story Testing](#user-story-testing)
- [Map Interaction](#map-interaction)
- [Authentication](#authentication)
- [Post Interaction](#post-interaction)
- [UAT on all devices](#uat-on-all-devices)
- [Bugs](#bugs)

 

---

### [HTML Validation](https://validator.w3.org/)

HTML was validated by copying the page source and pasting into the validator and by entering the link in the validator.

Expand Down Expand Up @@ -115,10 +144,107 @@ All CSS pages passed the W3C CSS Validation Service

## JavaScript Testing

JSHint was used for validating the JavaScript.
JSHint was used for validating the JavaScript.

## [Python Testing](https://extendsclass.com/python-tester.html)

ExtendsClass was used to validate the python code. Two errors were reported out of all the code. However the errors are due to the checker running an older version of Python which doesn't support f-strings.

![reported error](/media/testing/tobar_admin.png)
![reported error](/media/testing/tobar_admin.png)

 

---

## User Story Testing

### Map Interaction

View and click on well locations on a map
<https://github.com/brianach/wells/issues/11>

### Authentication

Signup, signin and signout
<https://github.com/brianach/wells/issues/14>

### Post Interaction

Like posts
<https://github.com/brianach/wells/issues/16>

Post comments
<https://github.com/brianach/wells/issues/15>

Edit or delete comments
<https://github.com/brianach/wells/issues/20>

## UAT on all devices

Desktop or Laptop UAT
<https://github.com/brianach/wells/issues/23>

Tablet UAT
<https://github.com/brianach/wells/issues/24>

Smartphone UAT
<https://github.com/brianach/wells/issues/25>

&nbsp;

---

## Performance

### Home Page

<details>
<summary>Home Page Performance</summary>

![hpp](/media/lighthouse/home-page-perf.png)
</details>

### About Page

<details>
<summary>About Page Performance</summary>

![app](/media/lighthouse/about-page-perf.png)
</details>

### Map Page

<details>
<summary>Map Page Performance</summary>

![mpp](/media/lighthouse/map-page-perf.png)
</details>

### Post Detail

<details>
<summary>Map Page Performance</summary>

![dpp](/media/lighthouse/post-detail-perf.png)
</details>

&nbsp;

---

## Bugs

The following bugs and issues were encoutered and resolved

- [Issue with selecting location data](https://github.com/brianach/wells/issues/10)
- [MIME type issue on Heroku deployment](https://github.com/brianach/wells/issues/12)
- [Popups not working on mobile device](https://github.com/brianach/wells/issues/13)
- ['maximum recursion depth exceeded' error](https://github.com/brianach/wells/issues/17)
- [Heroku deployment failure due to slug size](https://github.com/brianach/wells/issues/18)
- [Collectstatic whitenoise errors](https://github.com/brianach/wells/issues/28)
- [Server 500 error when loading post details after deployment](https://github.com/brianach/wells/issues/29)
- [Fix issue where the navigation bar is hiding geolocation button on map page](https://github.com/brianach/wells/issues/30)

Unresolved bug

- A new or an existing post can be linked to a well which is already linked. However this can only be done by an superuser or staff user on the admin backend. Such a user would or should be aware of this.
Loading

0 comments on commit e5d773d

Please sign in to comment.