Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
LAB1
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
Julio Teodoro
LAB1
Commits
f449ac2c
Commit
f449ac2c
authored
Mar 10, 2020
by
jiroto26
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edited lab1_functional_test.py to completion
parent
8d5a0d0e
Pipeline
#955
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
lab1_functional_test.py
lab1_functional_test.py
+22
-3
No files found.
lab1_functional_test.py
View file @
f449ac2c
...
...
@@ -19,11 +19,30 @@ class NewVisitorTest(unittest.TestCase):
# She sees a list containing three heroes with their corresponding
# names, health points, and damage
self
.
assertTrue
(
self
.
browser
.
find_element_by_id
(
"heroname_cloud"
))
self
.
assertTrue
(
self
.
browser
.
find_element_by_id
(
"healthstatus_cloud"
))
self
.
assertTrue
(
self
.
browser
.
find_element_by_id
(
"attackstatus_cloud"
))
self
.
assertTrue
(
self
.
browser
.
find_element_by_id
(
"heroname_jester"
))
self
.
assertTrue
(
self
.
browser
.
find_element_by_id
(
"healthstatus_jester"
))
self
.
assertTrue
(
self
.
browser
.
find_element_by_id
(
"attackstatus_jester"
))
self
.
assertTrue
(
self
.
browser
.
find_element_by_id
(
"heroname_sunflowey"
))
self
.
assertTrue
(
self
.
browser
.
find_element_by_id
(
"healthstatus_sunflowey"
))
self
.
assertTrue
(
self
.
browser
.
find_element_by_id
(
"attackstatus_sunflowey"
))
# When she selects one of the heroes, she is sent to another page
# containing more information about the hero (additional stats, lore, image).
response
=
self
.
client
.
get
(
'hero/cloud'
)
self
.
assertTemplateUsed
(
response
,
'detail_cloud.html'
)
# She spots the page title and header mentions the name of the hero she selected.
self
.
assertIn
(
'Detail - Cloud'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Back to Heroes'
,
html
)
# While she is in a specific hero's page, she sees a button labeled "Back to Heroes List".
# She clicks this and she is redirected back to the wiki's homepage.
...
...
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