Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
bookshare
Commits
24ee3e4e
Commit
24ee3e4e
authored
Apr 28, 2015
by
Daniel W Bond
Browse files
finished user stories comments
parent
4aed6fd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
bookshare/func_tests/tests.py
View file @
24ee3e4e
...
@@ -66,11 +66,6 @@ class FirstTimeLogIn(SeleniumSetUpTearDown):
...
@@ -66,11 +66,6 @@ class FirstTimeLogIn(SeleniumSetUpTearDown):
initial login."""
initial login."""
def
setUp
(
self
):
def
setUp
(
self
):
# in the database
# other Student
# good Listing (other Student)
# bad Listing (other Student)
# George's other Listing
return
super
(
FirstTimeLogIn
,
self
).
setUp
()
return
super
(
FirstTimeLogIn
,
self
).
setUp
()
def
tearDown
(
self
):
def
tearDown
(
self
):
...
@@ -90,6 +85,18 @@ class FirstTimeLogIn(SeleniumSetUpTearDown):
...
@@ -90,6 +85,18 @@ class FirstTimeLogIn(SeleniumSetUpTearDown):
# His full name and email are displayed on his user page.
# His full name and email are displayed on his user page.
# George wants to edit his name.
# He clicks on the edit button.
# He adds a 'IV' to the end of his last name.
# George Mason IV then hits Save.
# He's redirected to the user page...
# ...where his name has been updated.
# George has to run, so he hits the log out button, but he's excited
# George has to run, so he hits the log out button, but he's excited
# to return later.
# to return later.
# sign_out_user()
# sign_out_user()
...
@@ -99,10 +106,6 @@ class ListingTests(SeleniumSetUpTearDown):
...
@@ -99,10 +106,6 @@ class ListingTests(SeleniumSetUpTearDown):
"""Tests all the user interactions pertaining to the models in the trades app."""
"""Tests all the user interactions pertaining to the models in the trades app."""
def
setUp
(
self
):
def
setUp
(
self
):
# other Student
# good Listing (other Student)
# bad Listing (other Student)
# George's other Listing
return
super
(
ListingTests
,
self
).
setUp
()
return
super
(
ListingTests
,
self
).
setUp
()
def
tearDown
(
self
):
def
tearDown
(
self
):
...
@@ -223,8 +226,10 @@ class ListingTests(SeleniumSetUpTearDown):
...
@@ -223,8 +226,10 @@ class ListingTests(SeleniumSetUpTearDown):
# self.browser.get('http://localhost:8000')
# self.browser.get('http://localhost:8000')
# sign_in_user()
# sign_in_user()
# George goes to the Latest Listings page in the navbar.
#
George finds himself on someone else's listing page.
#
He clicks on the listing for John Adams
# George drives a hard bargain
# George drives a hard bargain
...
@@ -238,27 +243,55 @@ class ListingTests(SeleniumSetUpTearDown):
...
@@ -238,27 +243,55 @@ class ListingTests(SeleniumSetUpTearDown):
# sign_in_user()
# sign_in_user()
# George clicks on the Search button in the navbar
# sign_out_user()
# sign_out_user()
pass
pass
# note about SES!
def
not_test_exchanging
(
self
):
def
not_test_exchanging
(
self
):
# self.browser.get('http://localhost:8000')
# self.browser.get('http://localhost:8000')
# sign_in_user()
# George goes to his user page.
# He sees there is a bid on one of his listings.
#
sign_in_user()
#
He goes to his listing page and sees the listing.
# sign_out_user()
# Deeming it satisfactory, George decides to exchange his listing
# with Abagail
# George is fickle and gets cold feet.
# He decides to leave his listing unsold, and await a better bid,
# perhaps something in the text box.
# sign_out_user()
pass
pass
def
not_test_rating
(
self
):
def
not_test_rating
(
self
):
# self.browser.get('http://localhost:8000')
# self.browser.get('http://localhost:8000')
# Some time has passed.
# sign_in_user()
# sign_in_user()
# George has sold his listing to Abagail.
# He decides to leave a rating.
# sign_out_user()
# He gives Abagail five out of five stars...
# ...and leaves the following review.
# Finished, he signs out.
# sign_out_user()
pass
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment