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
e0bb0327
Commit
e0bb0327
authored
Mar 17, 2020
by
Patrick James Ong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed new recipe and order creation in functional tests
parent
a2d71423
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
functional_tests.py
thegoodplace/functional_tests.py
+5
-2
No files found.
thegoodplace/functional_tests.py
View file @
e0bb0327
...
...
@@ -55,6 +55,7 @@ class NewVisitorTest(unittest.TestCase):
self
.
assertIn
(
'Recipes - Create'
,
self
.
browser
.
title
)
self
.
assertIn
(
''
,
self
.
browser
.
find_element_by_ID
(
'new_recipe_name'
)
.
text
)
self
.
assertIn
(
''
,
self
.
browser
.
find_element_by_ID
(
'new_recipe_ingredient'
)
.
text
)
self
.
assertIn
(
''
,
self
.
browser
.
find_element_by_ID
(
'new_recipe_quantity'
)
.
text
)
# ORDERS
...
...
@@ -77,8 +78,10 @@ class NewVisitorTest(unittest.TestCase):
self
.
browser
.
get
(
'http://localhost:8000/ingredients/new'
)
self
.
assertIn
(
'Ingredients - Create'
,
self
.
browser
.
title
)
self
.
assertIn
(
''
,
self
.
browser
.
find_element_by_ID
(
'new_order_name'
)
.
text
)
self
.
assertIn
(
''
,
self
.
browser
.
find_element_by_ID
(
'new_order_quantity'
)
.
text
)
self
.
assertIn
(
''
,
self
.
browser
.
find_element_by_ID
(
'new_customer_name'
)
.
text
)
self
.
assertIn
(
''
,
self
.
browser
.
find_element_by_ID
(
'new_size'
)
.
text
)
self
.
assertIn
(
''
,
self
.
browser
.
find_element_by_ID
(
'new_base'
)
.
text
)
self
.
assertIn
(
''
,
self
.
browser
.
find_element_by_ID
(
'new_customization'
)
.
text
)
if
__name__
==
'__main__'
:
...
...
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