Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thegoodplace
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patrick James Ong
thegoodplace
Commits
400d9b41
Commit
400d9b41
authored
Mar 17, 2020
by
Patrick James Ong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed url in orders
parent
745a74e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
functional_tests.py
thegoodplace/functional_tests.py
+3
-3
No files found.
thegoodplace/functional_tests.py
View file @
400d9b41
...
@@ -67,15 +67,15 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -67,15 +67,15 @@ class NewVisitorTest(unittest.TestCase):
self
.
assertEqual
(
'ul'
,
ingredients_list
.
tag_name
)
self
.
assertEqual
(
'ul'
,
ingredients_list
.
tag_name
)
def
test_can_display_orders_detail
(
self
):
def
test_can_display_orders_detail
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/
ingredient
s/detail'
)
self
.
browser
.
get
(
'http://localhost:8000/
order
s/detail'
)
self
.
assertIn
(
'Ingredients - Detail'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Ingredients - Detail'
,
self
.
browser
.
title
)
def
test_can_update_order
(
self
):
def
test_can_update_order
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/
ingredient
s/update'
)
self
.
browser
.
get
(
'http://localhost:8000/
order
s/update'
)
self
.
assertIn
(
'Ingredients - Update'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Ingredients - Update'
,
self
.
browser
.
title
)
def
test_can_create_new_order
(
self
):
def
test_can_create_new_order
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/
ingredient
s/new'
)
self
.
browser
.
get
(
'http://localhost:8000/
order
s/new'
)
self
.
assertIn
(
'Ingredients - Create'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Ingredients - Create'
,
self
.
browser
.
title
)
self
.
assertIn
(
''
,
self
.
browser
.
find_element_by_ID
(
'new_customer_name'
)
.
text
)
self
.
assertIn
(
''
,
self
.
browser
.
find_element_by_ID
(
'new_customer_name'
)
.
text
)
...
...
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