Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging main branch #39

Open
wants to merge 465 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
465 commits
Select commit Hold shift + click to select a range
74237b6
Merge branch 'master' of https://github.com/DataMascara/cisc3140-su19…
xiaojun-wu Aug 15, 2019
e827afb
User Explanation + Titles Added
mary060196 Aug 15, 2019
1977d71
.
abrahym-sharfeldden Aug 15, 2019
67622f3
comments and \'saved posts \'
Maker-Mark Aug 15, 2019
79d639d
comments and \'saved posts \'
Maker-Mark Aug 15, 2019
72b1c41
implement the join/subscript button in Dashboard Subscriptions
xiaojun-wu Aug 15, 2019
c0ca59f
Merge branch 'master' of https://github.com/DataMascara/cisc3140-su19…
xiaojun-wu Aug 15, 2019
911a140
Names Limited to 30 Chars (Thanks, QC!)
mary060196 Aug 15, 2019
838d8db
First, Last Names Limited to 30 Chars
mary060196 Aug 15, 2019
9d2ee59
UnderDogs Logo Added to Our Team Page
mary060196 Aug 15, 2019
5f48157
fix viewdUser in Dashboard Profile
xiaojun-wu Aug 15, 2019
e1cfbcf
Merge branch 'master' of https://github.com/DataMascara/cisc3140-su19…
xiaojun-wu Aug 15, 2019
9a53e35
set subscription page default Dashboard page
xiaojun-wu Aug 15, 2019
68f2d8c
Updated README.md
abrahym-sharfeldden Aug 15, 2019
3bacb65
Comment to Code Fixed
mary060196 Aug 15, 2019
175e754
GroupMe Communications Export
mary060196 Aug 15, 2019
8f54210
JSON Formatting
mary060196 Aug 15, 2019
9cb32fd
New File was Uploaded
mary060196 Aug 15, 2019
e828591
app.py changes
abrahym-sharfeldden Aug 15, 2019
80428c7
Merge branch 'master' of https://github.com/DataMascara/cisc3140-su19…
abrahym-sharfeldden Aug 15, 2019
725f041
Update README.md
Maker-Mark Aug 15, 2019
5ff87b8
Updated readme
abrahym-sharfeldden Aug 15, 2019
5a0c714
Updated README.md
abrahym-sharfeldden Aug 15, 2019
b2136a6
Minor aesthetic changes to README.md
abrahym-sharfeldden Aug 15, 2019
c318a0c
fix error
xiaojun-wu Aug 15, 2019
65b5890
Merge branch 'master' of https://github.com/DataMascara/cisc3140-su19…
xiaojun-wu Aug 15, 2019
b8f64f2
Explanation of Arguments to Templates
mary060196 Aug 15, 2019
459d4fd
Escape Special Characters
mary060196 Aug 16, 2019
f34c342
Escape Characters Function
mary060196 Aug 16, 2019
0ba3636
Update scriptsWritePost.js
mary060196 Aug 16, 2019
0f8a598
Update scriptsWritePost.js
mary060196 Aug 16, 2019
43ff160
Update scriptsWritePost.js
mary060196 Aug 16, 2019
9c3f479
Update scriptsWritePost.js
mary060196 Aug 16, 2019
b43dc25
Update scriptsWritePost.js
mary060196 Aug 16, 2019
7b34c60
Update scriptsWritePost.js
mary060196 Aug 16, 2019
cbf7e75
Update writePost.html
mary060196 Aug 16, 2019
004fdab
Escaping Characters: Comment to Post
mary060196 Aug 16, 2019
6e6b949
Escape Chars on Submit
mary060196 Aug 16, 2019
33be96a
Website's Icon was Invisible
mary060196 Aug 16, 2019
1dc76b5
Escaping Char in Comment Comments
mary060196 Aug 16, 2019
ced6fea
Escaping Char in Comment Comments
mary060196 Aug 16, 2019
6a02e05
Newlines Allowed in Text
mary060196 Aug 16, 2019
d1f02d2
Newlines Allowed in Text
mary060196 Aug 16, 2019
0f4f3f9
sorting
derickfan Aug 18, 2019
b88dd83
sorting
derickfan Aug 18, 2019
6c3b925
Placeholders & Titles Corrected
mary060196 Aug 18, 2019
5aebb20
User Input Limitation Functs
mary060196 Aug 18, 2019
9eee5a3
Names Can Only Contains English Letters
mary060196 Aug 18, 2019
e8d65dc
Names Can Be Only Alphabetic
mary060196 Aug 18, 2019
fe67dd4
Space in Regex Erased
mary060196 Aug 18, 2019
12a198e
Escaping Chars + Bio Length Limitation
mary060196 Aug 18, 2019
0d1335a
Placeholder + Title for Bio fixed
mary060196 Aug 18, 2019
2e195a0
Placeholder + User Limitation for Post Title
mary060196 Aug 18, 2019
c6ef090
Title Allowed to be at Most 100 Chars
mary060196 Aug 18, 2019
93a2aff
Typo in Func Name Fixed
mary060196 Aug 18, 2019
ca734d6
Typo in Func Name Fixed
mary060196 Aug 18, 2019
f1d592d
Update scriptsUserInfo.js
mary060196 Aug 18, 2019
d8c3695
Recall User's Avatar URL: Bio Edit
mary060196 Aug 18, 2019
52e5666
Title Added to Post Text During Hover
mary060196 Aug 18, 2019
7c11c9a
Update userInfo.html
mary060196 Aug 18, 2019
47c0416
saving posts
derickfan Aug 18, 2019
ea400dc
Merge branch 'master' of https://github.com/DataMascara/cisc3140-su19…
derickfan Aug 18, 2019
82bde8e
Don't Display Post Image if There Isn't Such
mary060196 Aug 18, 2019
ffe426e
Annoying Overflows Removed
mary060196 Aug 18, 2019
4ff541e
saved posts in dashboard
derickfan Aug 18, 2019
ce1e3d2
Merge branch 'master' of https://github.com/DataMascara/cisc3140-su19…
derickfan Aug 18, 2019
2da44b2
fixed minor error
derickfan Aug 18, 2019
20d9493
`title` of Post Images Changed to post title
mary060196 Aug 18, 2019
ae06bb1
changed back to api
derickfan Aug 18, 2019
31e0041
Merge branch 'master' of https://github.com/DataMascara/cisc3140-su19…
derickfan Aug 18, 2019
2a24815
ENTER Can Create New Lines in Post Text
mary060196 Aug 18, 2019
03c3755
Error in `submitWithEscape` fixed
mary060196 Aug 18, 2019
9e1dcd5
members for ports
derickfan Aug 18, 2019
9a1b2d0
Update scriptsWritePost.js
mary060196 Aug 18, 2019
81f2504
Update scriptsWritePost.js
mary060196 Aug 18, 2019
a2b9296
Update scriptsWritePost.js
mary060196 Aug 18, 2019
7762ca1
Update scriptsWritePost.js
mary060196 Aug 18, 2019
8134e96
Update scriptsWritePost.js
mary060196 Aug 18, 2019
8b593c3
Update scriptsWritePost.js
mary060196 Aug 18, 2019
4cc7e46
Display Post Text w/ line breaks Func
mary060196 Aug 18, 2019
2a4f649
"displayWithLineBreaks" Fires on Page Load
mary060196 Aug 18, 2019
3f91163
Update scriptsPostDetails.js
mary060196 Aug 18, 2019
e68ab4b
Update scriptsPostDetails.js
mary060196 Aug 18, 2019
124cc4a
Update scriptsPostDetails.js
mary060196 Aug 18, 2019
d614658
Update scriptsPostDetails.js
mary060196 Aug 18, 2019
a4e374c
Update scriptsPostDetails.js
mary060196 Aug 18, 2019
eff9118
Update scriptsPostDetails.js
mary060196 Aug 18, 2019
44239bc
Update scriptsPostDetails.js
mary060196 Aug 18, 2019
8b6ff45
Line Breaks Added to Comments, Too
mary060196 Aug 18, 2019
fac6213
'displayWithLineBreaks()' Fires on Page Load
mary060196 Aug 18, 2019
cfaa58c
'displayWithLineBreaks' Func Added
mary060196 Aug 18, 2019
448f4fa
Password and Email Database Limitations Indicated
mary060196 Aug 18, 2019
b67be47
Titles and Placeholders Added
mary060196 Aug 18, 2019
2ab9cd1
Update scriptsUserInfo.js
mary060196 Aug 18, 2019
61b11f6
Fixing error in 'validatePassword'
mary060196 Aug 18, 2019
58615b7
Changing Overflow in Account Settings
mary060196 Aug 18, 2019
853636a
Initial Media Queries Added
mary060196 Aug 18, 2019
f53111a
Update stylesBase.css
mary060196 Aug 18, 2019
3731baa
Update stylesBase.css
mary060196 Aug 18, 2019
58d6e4e
Update stylesBase.css
mary060196 Aug 18, 2019
d1ee4c6
Update stylesBase.css
mary060196 Aug 18, 2019
385e0c1
Update stylesBase.css
mary060196 Aug 18, 2019
3335216
Update stylesBase.css
mary060196 Aug 18, 2019
dae9e8a
Update stylesBase.css
mary060196 Aug 18, 2019
c6d2d2b
Update stylesBase.css
mary060196 Aug 18, 2019
3e69a90
Update stylesBase.css
mary060196 Aug 18, 2019
64e989a
Update stylesBase.css
mary060196 Aug 18, 2019
4b1b37a
Update stylesBase.css
mary060196 Aug 18, 2019
aa2ecf2
Update stylesBase.css
mary060196 Aug 18, 2019
06b983b
Update stylesBase.css
mary060196 Aug 18, 2019
ea39638
Update stylesBase.css
mary060196 Aug 19, 2019
5e6d133
cleanup code
Maker-Mark Aug 19, 2019
7db27cb
cleanup code
Maker-Mark Aug 19, 2019
c1367ef
Update stylesBase.css
mary060196 Aug 19, 2019
df1f10b
Update stylesBase.css
mary060196 Aug 19, 2019
cd7d336
Update stylesBase.css
mary060196 Aug 19, 2019
d522ffc
Version 1.2: Initial Media Queries
mary060196 Aug 19, 2019
78c69da
home now show subscribed posts
derickfan Aug 19, 2019
3a4b825
Notification Service Configuration Files
mary060196 Aug 19, 2019
f2b1c1c
Update _head.html
mary060196 Aug 19, 2019
7801e12
Update _head.html
mary060196 Aug 19, 2019
e995fa2
Update _head.html
mary060196 Aug 19, 2019
40ffa9c
Update _head.html
mary060196 Aug 19, 2019
47d428b
Delete OneSignalSDKUpdaterWorker.js
mary060196 Aug 19, 2019
e6ace6c
Delete OneSignalSDKWorker.js
mary060196 Aug 19, 2019
f4ebdae
Update _head.html
mary060196 Aug 19, 2019
bbb07a3
Create Link to Front End Team's Presentation
mary060196 Aug 19, 2019
aa51c41
Patterns Removed from Names
mary060196 Aug 20, 2019
595a292
votes now update on new comments
derickfan Aug 21, 2019
a5513b0
now displays the port
derickfan Aug 21, 2019
9c56260
trending shows top 5 ports
derickfan Aug 21, 2019
68b1902
now checks if post has image
derickfan Aug 21, 2019
73ab644
Enlarge right side
mary060196 Aug 22, 2019
06f74f3
Initial Media Queries
mary060196 Aug 22, 2019
5da38aa
Update stylesPosts.css
mary060196 Aug 22, 2019
b2e5f74
Update stylesBase.css
mary060196 Aug 22, 2019
deaefbc
Update stylesPosts.css
mary060196 Aug 22, 2019
1fcaa9e
Update stylesPosts.css
mary060196 Aug 22, 2019
3b1f5cc
Update stylesPosts.css
mary060196 Aug 22, 2019
b88079d
All Media Queries Added
mary060196 Aug 22, 2019
c8c93a1
Initial Media Queries
mary060196 Aug 22, 2019
d44fdf1
Media Queries Added
mary060196 Aug 22, 2019
464fa9e
Update stylesPosts.css
mary060196 Aug 22, 2019
bc4e608
Clicking on Post Image Opens Post
mary060196 Aug 22, 2019
d990c1d
Initial Media Queries
mary060196 Aug 22, 2019
3ed672e
Update stylesPostDetails.css
mary060196 Aug 22, 2019
c493969
Update stylesPostDetails.css
mary060196 Aug 22, 2019
a4790db
Update stylesPostDetails.css
mary060196 Aug 22, 2019
2e7c7a0
Update stylesPostDetails.css
mary060196 Aug 22, 2019
c278852
Update stylesPostDetails.css
mary060196 Aug 23, 2019
c457cea
'rows' Attribute in Text Area Removed
mary060196 Aug 23, 2019
3b0e32f
Update stylesBase.css
mary060196 Aug 23, 2019
44e68fb
Media Queries Added
mary060196 Aug 23, 2019
31724d5
Display Default Author Image if There's None
mary060196 Aug 23, 2019
03e8146
Media Queries Added
mary060196 Aug 23, 2019
9b4ab13
Initial Media Queries
mary060196 Aug 23, 2019
8309227
Update stylesBase.css
mary060196 Aug 23, 2019
b232a6f
Media Queries Added
mary060196 Aug 23, 2019
5d04725
Media Queries Added
mary060196 Aug 23, 2019
8ae97f0
Class Names Added to Forms
mary060196 Aug 23, 2019
ea3180d
Error Fix: 'min' to 'max'
mary060196 Aug 23, 2019
79c40d8
Media Queries Added
mary060196 Aug 23, 2019
95435ee
Media Queries Added
mary060196 Aug 23, 2019
c4cc89f
Initial Media Queries
mary060196 Aug 23, 2019
a88582f
Update stylesUserInfo.css
mary060196 Aug 23, 2019
222b3f7
Update stylesUserInfo.css
mary060196 Aug 23, 2019
5cd4268
Update stylesUserInfo.css
mary060196 Aug 23, 2019
9762c8b
Update stylesBase.css
mary060196 Aug 23, 2019
ca352fb
Update userInfo.html
mary060196 Aug 23, 2019
e43be90
Update stylesUserInfo.css
mary060196 Aug 23, 2019
2e169bf
Update stylesUserInfo.css
mary060196 Aug 23, 2019
079bcfc
Media Queries Added
mary060196 Aug 23, 2019
8378c5a
Skip to Content Links Added
mary060196 Aug 23, 2019
6e565ce
Skip to Content Styling: Initial
mary060196 Aug 23, 2019
04b916a
Final Styling for Skip to Content Links
mary060196 Aug 23, 2019
aec9b6d
Update base.html
mary060196 Aug 23, 2019
a7e1160
Update stylesBase.css
mary060196 Aug 23, 2019
9ba2dbe
Update stylesPosts.css
mary060196 Aug 23, 2019
34cf0e4
App of the Month Ad
mary060196 Aug 25, 2019
eb83375
App of the Month
mary060196 Aug 25, 2019
ad04285
Update base.html
mary060196 Aug 25, 2019
249869e
Typo Fix
mary060196 Aug 25, 2019
7f073d3
Typo Fix
mary060196 Aug 25, 2019
9dc024f
Update base.html
mary060196 Aug 25, 2019
77fae22
Route for App of the Month Form
mary060196 Aug 25, 2019
cb9f5a9
App of the Month Template
mary060196 Aug 25, 2019
30c5d2d
JS for App of the Month Template
mary060196 Aug 25, 2019
213627d
Update app.py
mary060196 Aug 25, 2019
ec92f49
Update base.html
mary060196 Aug 25, 2019
5426c29
fixed app of the month
derickfan Aug 25, 2019
60fd965
Classname to explanationParag + onsubmit Event
mary060196 Aug 25, 2019
65091af
CSS for App of the Month Template
mary060196 Aug 25, 2019
f8945f8
URL for CSS File Updated
mary060196 Aug 25, 2019
9b0cf98
Padding for `explanationParag`
mary060196 Aug 25, 2019
a63bf81
Contact Info for AOTM Applicants
mary060196 Aug 25, 2019
dfca276
`submitIt` Function Added
mary060196 Aug 25, 2019
9ef28fe
`action` Attribute Removed from Form
mary060196 Aug 25, 2019
459deb5
Update appOfTheMonthRegister.html
mary060196 Aug 25, 2019
c23e118
Action and Method Attributes Added to Form
mary060196 Aug 25, 2019
881e445
`submitIt` JS Function Deleted
mary060196 Aug 25, 2019
079a5e9
App Form Submitted Template
mary060196 Aug 25, 2019
dd07676
Action of Form Specified
mary060196 Aug 25, 2019
aa72dc9
Route Added for Form Submission
mary060196 Aug 25, 2019
ae8cef4
Update appOfTheMonthRegister.html
mary060196 Aug 25, 2019
74eaf78
Update app.py
mary060196 Aug 25, 2019
7be1163
Update app.py
mary060196 Aug 25, 2019
4f1d71a
Update app.py
mary060196 Aug 25, 2019
231f259
Update app.py
mary060196 Aug 25, 2019
7b78722
Update app.py
mary060196 Aug 25, 2019
8767a28
Update app.py
mary060196 Aug 25, 2019
5e4d4ff
Update app.py
mary060196 Aug 25, 2019
3df74ad
Update app.py
mary060196 Aug 25, 2019
267b455
Update app.py
mary060196 Aug 25, 2019
8f2f447
Update app.py
mary060196 Aug 25, 2019
7bde79a
Update app.py
mary060196 Aug 25, 2019
3931f9e
Route Ready for Back End Code
mary060196 Aug 25, 2019
8b87bf1
Notifications Button Added
mary060196 Sep 2, 2019
a7df985
Initial Notifications Button Style Added
mary060196 Sep 2, 2019
ae61ae9
Blinking Style Added to Notifications
mary060196 Sep 2, 2019
8c96283
Blinker KeyFrames Added
mary060196 Sep 2, 2019
10c530d
'notifiNum' Parameter Added to Template's Calls
mary060196 Sep 2, 2019
8b13208
Blank Line Removed from Notifications Button
mary060196 Sep 2, 2019
ac40cf0
Update base.html
mary060196 Sep 2, 2019
83a8f6a
Animation Blinking Styling Updated
mary060196 Sep 2, 2019
c18f1c2
Notifications Template Added
mary060196 Sep 2, 2019
f8b831c
CSS for Notifications Template Added
mary060196 Sep 2, 2019
8c2a04e
JS File for Notifications Template Added
mary060196 Sep 2, 2019
e201b66
Notifications Route Added
mary060196 Sep 2, 2019
5667eb6
Update app.py
mary060196 Sep 2, 2019
2107be4
Update notifications.html
mary060196 Sep 2, 2019
d156654
Update notifications.html
mary060196 Sep 2, 2019
441a3c3
Update stylesNotifications.css
mary060196 Sep 2, 2019
8099797
Another Notification Example Added
mary060196 Sep 2, 2019
e70a20c
Update notifications.html
mary060196 Sep 2, 2019
ce3ff6e
Welcome to Notifications Message
mary060196 Sep 2, 2019
ada480c
Styling for Welcome Message
mary060196 Sep 2, 2019
cd7e478
Update notifications.html
mary060196 Sep 2, 2019
da4a3e8
"Go to Top" Button Added
mary060196 Sep 2, 2019
8f688ef
"Go to Top" Button Functionality Added
mary060196 Sep 2, 2019
8df1d3b
"Go to Top" Button Styling Added
mary060196 Sep 2, 2019
56fa7f9
Update stylesBase.css
mary060196 Sep 2, 2019
fca4d8d
Smooth Scroll Behavior Added
mary060196 Sep 2, 2019
fd3dbc2
Update stylesNotifications.css
mary060196 Sep 2, 2019
5eb6fc9
"CURRENT PORT: p/all" Added to Homepage's Title
mary060196 Sep 2, 2019
ef75352
Bump jinja2 from 2.10.1 to 2.11.3
dependabot[bot] Mar 20, 2021
2dffb91
Bump flask-cors from 3.0.8 to 3.0.9
dependabot[bot] May 6, 2021
7528909
Bump urllib3 from 1.25.3 to 1.26.5
dependabot[bot] Jun 2, 2021
e44da6a
Merge pull request #93 from DataMascara/dependabot/pip/jinja2-2.11.3
katychuang Aug 16, 2021
f5e1ca2
Merge pull request #95 from DataMascara/dependabot/pip/flask-cors-3.0.9
katychuang Aug 16, 2021
d092ee8
Merge pull request #96 from DataMascara/dependabot/pip/urllib3-1.26.5
katychuang Aug 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
dist: xenial
language: python
sudo: required
python: "3.7"
script:
- python test1.py
install:
- pip install -r requirements.txt
deploy:
provider: heroku
api_key:
secure: SRQYTCaJ7yYNsVUIG70tF13JW7PQynp9XGwxb7R6neG8R13dsZ1Aip/oyN/4WtpIRBTh9YgH5QO/bqe5MusejDt7j3uGJ9/zAjZj6iY8NVzlglJjHOGWJY9yPLmlqq/vBPIkX9JOdJMHjBDve/fqDSdDUlqOQYRpZq1aCPnKCnhjk2tfux4aWi8kOPayM8tl4mRolTWvrntcgrkenJIQx07GsTO1LwAoum2tlmGiHvbv610xpyIIUIqKNdqv676YdAxKBhQDPjFfORmMMXZswJs2jinrYpnfmwiI0TxU/YiYySjsr6yc/7PVwM/U7Z0Ehz+vuSQDFbR7lGw0XsoEhIkSbg4vKDropClndT7+1rDugc/IfQThkeRlnUGcNTkNkEaTKIgneWLPDx+Oz3mADx5Qp8zfEOXBgk5tRXkAH9M/RStQmeBhvHABmmz33a9GuNZwud6i5J0lhMpI9afNdNznH0f3AN8YKT5WG0/BQMgyXXdVfRVX+nkBff49emDgqbOaygpV0byfv4Ylla3yRdxFsxetrM/HMfCMw6y6wFtkRH07J+PwHAqOhFf0SLTrZ0VQzNKjL8bBQFeHKYd2ZRZozMsnJp9gY/7q2Z72bDg3hdgwyQ/8savJRB0AYbDiOJk8G9TLIOKWPIWhtZiscbaePpG6BUiI7WbrvGyUuXQ=
app: bc-app-class
on:
repo: DataMascara/cisc3140-su19-project
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn --chdir app app:app
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
Feature: Automated/manual test
Using cisc3140 group app developement

Background:
Given I use dev url to navigate to login page


@Functional #pass scenario
Scenario: Hamburger menu expand for login page
Given user navigate to application login page
When I am not logged in to the app
Then I can see sign in and register button display
Then I can see username and password field display

@Functional #pass scenario
Scenario: Hamburger menu hide for logged in user
Given I navigate to application login page
When I am not logged in to the app
When I type valid <userName> and <password> to login
Then menu is in hidden state

@Regression #pass scenario
Scenario Outline: invalid user cannot login to the app
Given I navigate to application login page
When I type valid <userName> and <password> to login
Then error message should display for invalid user

Examples:
| userName | password |
| ahkdahsj | jsadhjhdsjjasdja |
| 20hdjhadss | 55651/3^%$,`~* |
| &^.#-?jhadss | 1545645*sd |
| 20hdjhadss.hhd d | 12k |

@Functional #Failed scenario
Scenario: able to like the post
Given I login to the app
When I click on like button on post
Then total like is added next to post

@Functional #Failed scenario
Scenario: able to dislike the post
Given I login to the app
When I click on like button on post
Then total dislike is added next to post

@Functional #Failed scenario
Scenario: able to add comments on the post
Given I login to the app
When I click on comment button on post
When I type some comments on the text field
Then I can see my comments added to the post

@Functional #Failed scenario
Scenario: sort the post by hot or new
Given I login to the app
When I click on sort by dropdown
Then I select hot post
Then post display for hot
Then I select new post
Then post is display for new

@EndToEnd #Failed scenario
Scenario: create a post and view the created post
Given I login to the app
When I click on create post button
And I select communities from dropdown
And I type all required field and submit
Then I can see my post on my profile

@EndToEnd #pass scenario under condition, need to rework, i don't wanna see json output in email
Scenario: get notification on email after register
Given I login to the app
When I register for new user
And I type all required fields
And I click on register button
Then I get an email notification

@Functional #pass scenario
Scenario: user successfully logout from the application
Given I login with valid username and password
When I click on logout button
Then I see signIn and register button again





88 changes: 88 additions & 0 deletions Quality Control/Written Reports of Tests/TestScenariosCisc3140
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
Feature: Automated/manual test
Using cisc3140 group app developement

Background:
Given I use dev url to navigate to login page


@Functional #pass scenario
Scenario: Hamburger menu expand for login page
Given user navigate to application login page
When I am not logged in to the app
Then I can see sign in and register button display
Then I can see username and password field display

@Functional #pass scenario
Scenario: Hamburger menu hide for logged in user
Given I navigate to application login page
When I am not logged in to the app
When I type valid <userName> and <password> to login
Then menu is in hidden state

@Regression #pass scenario
Scenario Outline: invalid user cannot login to the app
Given I navigate to application login page
When I type valid <userName> and <password> to login
Then error message should display for invalid user

Examples:
| userName | password |
| ahkdahsj | jsadhjhdsjjasdja |
| 20hdjhadss | 55651/3^%$,`~* |
| &^.#-?jhadss | 1545645*sd |
| 20hdjhadss.hhd d | 12k |

@Functional #Failed scenario
Scenario: able to like the post
Given I login to the app
When I click on like button on post
Then total like is added next to post

@Functional #Failed scenario
Scenario: able to dislike the post
Given I login to the app
When I click on like button on post
Then total dislike is added next to post

@Functional #Failed scenario
Scenario: able to add comments on the post
Given I login to the app
When I click on comment button on post
When I type some comments on the text field
Then I can see my comments added to the post

@Functional #Failed scenario
Scenario: sort the post by hot or new
Given I login to the app
When I click on sort by dropdown
Then I select hot post
Then post display for hot
Then I select new post
Then post is display for new

@EndToEnd #Failed scenario
Scenario: create a post and view the created post
Given I login to the app
When I click on create post button
And I select communities from dropdown
And I type all required field and submit
Then I can see my post on my profile

@EndToEnd #pass scenario under condition, need to rework, i don't wanna see json output in email
Scenario: get notification on email after register
Given I login to the app
When I register for new user
And I type all required fields
And I click on register button
Then I get an email notification

@Functional #pass scenario
Scenario: user successfully logout from the application
Given I login with valid username and password
When I click on logout button
Then I see signIn and register button again





114 changes: 53 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,57 @@
# CISC 3140 - Summer 2019 Project
This is the repository for the group project in CISC 3140 class at Brooklyn College.
# CISC 3140 - Summer 2019 Project [![Build Status](https://travis-ci.org/DataMascara/cisc3140-su19-project.svg?branch=master)](https://travis-ci.org/DataMascara/cisc3140-su19-project)
This is the repository for the group project in CISC 3140 Summer Session 2 2019 class at Brooklyn College.

## UnderDogs

UnderDogs is an information hub for Brooklyn College Computer Science students and faculty. Users can share original content, ask for assistance from other students, find collaborators, and have discussions across an array of curated communities.

## Team-Specific ReadMe
- [Product Team README](https://github.com/DataMascara/cisc3140-su19-project/blob/master/product/README.md)
- Backend
- ect.

# Setup

## Installation

Base-requirements: Python3, Flask Web Framework

## Installing dependencies from the `requirements.txt` file.

- To install dependencies from the `requirements.txt` file. - `pip3 install -r requirements.txt`
- When new Python libraries are required, update the `requirements.txt` file using the command. - `pip3 freeze > requirements.txt` and push the file to Github. (or `pip` instead of `pip3`

## Running

- **NOTE:** MinimalAPI functionality is currently implemented, with no VIEW/connecting link to the front end.
- Alpha release will be served on a server soon so that features can be continuously implemented
- Navigate to the `app/` folder and execute `python main.py` or `python3 main.py` (depending on your setup)
- Use postman ([https://www.getpostman.com/](https://www.getpostman.com/)) to test the API.
- Debug user that already exists is :chalshaff12 (it returns their full record) - Currently, the API is just working in some cases and not linked to a view page
yet
- Server hosting for live demo is coming soon.

## Try a GET Request

First, make sure you have the API running and you note down the url ie `127.0.0.0:5000`

- Open Postman and go to the header tab and your header Content-Type to "application/json"
- Go to the "Body" tab and check the "raw" and "JSON(application/json) options under that tab
- Now put `{"user":"chalshaff12"}` into the raw body (if chalshaff12 exists, so you should get a response that indicates that )
- Set the request to GET and the URL `http://YOURLOCALHOSTURL:5000/user`
- TADA! You should see a json response with that user's information in the response body below with a status of 200!
- Currently looks like this, but will be cleaned up for easy data getting.
```
{
"users": [
{
"avatarUrl": null,
"dateCreated": "2019-07-25 23:46:14",
"dateModified": null,
"email": "[email protected]",
"first": "Michal",
"isActive": 1,
"last": "Shaffer",
"password": "hashedpassword",
"userid": 246815,
"username": "chalshaff12"
}
]
}
```

### Test on a user that doesn't exist

- Follow the above steps but put `{"user":"notrealuser13"}` into the raw body (notrealuser13 does NOT exist, so you should get a response that indicates that) - TADA! You should see `{"error": "User Not found!"}` in the response body below with a status of 404!
## Alpha Site : [https://bc-app-class.herokuapp.com/](https://bc-app-class.herokuapp.com/)
## Launch Form/Feedback : [https://forms.gle/DWKj28iPHTBTwDvK8](https://forms.gle/DWKj28iPHTBTwDvK8)
## Setup
### Installation
- [Python3](https://www.python.org/downloads/)
- Flask Web Framework (`pip3 install flask`)

### Requirements
- To install dependencies from the `requirements.txt` file:
```pip3 install -r requirements.txt```
- When new Python libraries are required, update the `requirements.txt` file using the command and push the file to Github.
```pip3 freeze > requirements.txt```

## Deployment
### Running
***NOTE:** API connectivity is implemented. Please be careful when editting files as some files are necessary in order to keep the connection running.*

- Alpha release will be served on a server soon so that features can be continuously implemented.
- Navigate to the `/app` folder and execute `python3 app.py`

## Usage
### Notes
- Make sure that the dependencies are up to date.
- Make sure that UnderDogs website is running in your web browser.

### Registration
*Alternatively, you can fast track to the [**Signing In**](#Login) section*

- Open the tab on the left side of the browser
- Select the `Register` button
- Enter your registration details into the fields.

### Login
First, make sure you have the API running and you note down the url ie `localhost:8080`

- Open the tab on the left and enter the following information into the fields:
- Username: `username`
- Password: `password`

## Contributing
### Before Pushing
- Please run `git fetch` in order to update your current working branch with any recent commits pushed to the repo. This will help minimize the frequency at which your old code from another file overwrites the code that was recently updated in that file.

### Suggested Flow
The following method, known as Git Workflow, is ideally the way we should be approaching updates to the repo:
- When you are working on a new feature or issue or anything, create a new branch with: ` git checkout -b <branch-name>`. Essentially, the branch name tends to be a short but descriptive name of the task being done in that branch.
- When you are finished with your code, commit and push your branch to the repo using: ```git commit -am "<commit-message>"
git push origin <branch-name>```
- Lastly, create a pull request from your branch to the master branch, then the update is discussed and then merged through the pull request.

This method of updating the app, known as the Git Workflow, decreases the oppourtunity for old code to rewrite new code.
Loading