Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
WillOWisp_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
Margarita Perez
WillOWisp_Lab1
Commits
90dd0ba7
Commit
90dd0ba7
authored
Mar 09, 2020
by
Margarita Perez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making ~1/3 of the tests in LFT
parent
1b7ea4f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
lab1_functional_test.py
lab1_functional_test.py
+30
-0
No files found.
lab1_functional_test.py
View file @
90dd0ba7
...
@@ -23,9 +23,39 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -23,9 +23,39 @@ class NewVisitorTest(unittest.TestCase):
# She sees a list containing three heroes with their corresponding
# She sees a list containing three heroes with their corresponding
# names, health points, and damage
# names, health points, and damage
#names
cloud_text
=
self
.
browser
.
find_element_by_id
(
'cloud'
)
self
.
assertIn
(
'Cloud'
,
cloud_text
.
text
)
jester_text
=
self
.
browser
.
find_element_by_id
(
'jester'
)
self
.
assertIn
(
'Jester'
,
jester_text
.
text
)
sunflowey_text
=
self
.
browser
.
find_element_by_id
(
'sunflowey'
)
self
.
assertIn
(
'Sunflowey'
,
sunflowey_text
.
text
)
#health points
cloud_health
=
self
.
browser
.
find_element_by_id
(
'cloudHealth'
)
self
.
assertIn
(
'Cloud'
,
cloud_health
.
text
)
jester_health
=
self
.
browser
.
find_element_by_id
(
'jesterHealth'
)
self
.
assertIn
(
'Jester'
,
jester_health
.
text
)
sunflowey_health
=
self
.
browser
.
find_element_by_id
(
'sunfloweyHealth'
)
self
.
assertIn
(
'Sunflowey'
,
sunflowey_health
.
text
)
#damage
cloud_damage
=
self
.
browser
.
find_element_by_id
(
'cloudDamage'
)
self
.
assertIn
(
'Cloud'
,
cloud_damage
.
text
)
jester_damage
=
self
.
browser
.
find_element_by_id
(
'jesterDamage'
)
self
.
assertIn
(
'Jester'
,
jester_damage
.
text
)
sunflowey_damage
=
self
.
browser
.
find_element_by_id
(
'sunfloweyDamage'
)
self
.
assertIn
(
'Sunflowey'
,
sunflowey_damage
.
text
)
# When she selects one of the heroes, she is sent to another page
# When she selects one of the heroes, she is sent to another page
# containing more information about the hero (additional stats, lore, image).
# containing more information about the hero (additional stats, lore, image).
#cloud_stat = self.browser.find_element_by_id('cloud')
#self.assertIn('Cloud', cloud_text.text)
#jester_text = self.browser.find_element_by_id('jester')
#self.assertIn('Jester', jester_text.text)
#sunflowey_text = self.browser.find_element_by_id('sunflowey')
#self.assertIn('Sunflowey', sunflowey_text.text)
# She spots the page title and header mentions the name of the hero she selected.
# She spots the page title and header mentions the name of the hero she selected.
...
...
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