Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
Lab1-Willowisp
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
Abigail Moreno
Lab1-Willowisp
Commits
7cfdac4f
Commit
7cfdac4f
authored
Mar 10, 2020
by
abbeeeeyyyyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the final bug
parent
34fe90df
Pipeline
#954
failed with stages
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
164 additions
and
13 deletions
+164
-13
geckodriver.log
willowisp/geckodriver.log
+151
-0
heroes.html
willowisp/heroes/templates/heroes.html
+2
-2
lab1_functional_test.py
willowisp/lab1_functional_test.py
+11
-11
No files found.
willowisp/geckodriver.log
View file @
7cfdac4f
This diff is collapsed.
Click to expand it.
willowisp/heroes/templates/heroes.html
View file @
7cfdac4f
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
<dl>
<dl>
<dt>
Health Points
</dt>
<dt>
Health Points
</dt>
<dd
id=
"hp-sunflowey"
>
650
</dd>
<dd
id=
"hp-sunflowey"
>
650
</dd>
<dt>
id="d-sunflowey">
Base Attack Damage
</dt>
<dt>
Base Attack Damage
</dt>
<dd>
43
</dd>
<dd
id=
"d-sunflowey"
>
43
</dd>
</dl>
</dl>
</body>
</body>
...
...
willowisp/lab1_functional_test.py
View file @
7cfdac4f
...
@@ -20,17 +20,17 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -20,17 +20,17 @@ 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
self
.
assertIn
(
'Jester'
,
self
.
browser
.
find_element_by_id
(
'jester'
))
self
.
assertIn
(
'Jester'
,
self
.
browser
.
find_element_by_id
(
'jester'
)
.
text
)
self
.
assertIn
(
'660'
,
self
.
browser
.
find_element_by_id
(
'hp-jester'
))
self
.
assertIn
(
'660'
,
self
.
browser
.
find_element_by_id
(
'hp-jester'
)
.
text
)
self
.
assertIn
(
'64'
,
self
.
browser
.
find_element_by_id
(
'd-jester'
))
self
.
assertIn
(
'64'
,
self
.
browser
.
find_element_by_id
(
'd-jester'
)
.
text
)
self
.
assertIn
(
'Cloud'
,
self
.
browser
.
find_element_by_id
(
'cloud'
))
self
.
assertIn
(
'Cloud'
,
self
.
browser
.
find_element_by_id
(
'cloud'
)
.
text
)
self
.
assertIn
(
'600'
,
self
.
browser
.
find_element_by_id
(
'hp-cloud'
))
self
.
assertIn
(
'600'
,
self
.
browser
.
find_element_by_id
(
'hp-cloud'
)
.
text
)
self
.
assertIn
(
'57'
,
self
.
browser
.
find_element_by_id
(
'd-cloud'
))
self
.
assertIn
(
'57'
,
self
.
browser
.
find_element_by_id
(
'd-cloud'
)
.
text
)
self
.
assertIn
(
'Sunflowey'
,
self
.
browser
.
find_element_by_id
(
'sunflowey'
))
self
.
assertIn
(
'Sunflowey'
,
self
.
browser
.
find_element_by_id
(
'sunflowey'
)
.
text
)
self
.
assertIn
(
'650'
,
self
.
browser
.
find_element_by_id
(
'hp-sunflowey'
))
self
.
assertIn
(
'650'
,
self
.
browser
.
find_element_by_id
(
'hp-sunflowey'
)
.
text
)
self
.
assertIn
(
'43'
,
self
.
browser
.
find_element_by_id
(
'd-sunflowey'
))
self
.
assertIn
(
'43'
,
self
.
browser
.
find_element_by_id
(
'd-sunflowey'
)
.
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
...
@@ -68,14 +68,14 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -68,14 +68,14 @@ class NewVisitorTest(unittest.TestCase):
# 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.
self
.
assertIn
(
'Detail - Sunflowey'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Detail - Sunflowey'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Detail - Su
u
nflowey'
,
self
.
browser
.
find_element_by_tag_name
(
'h1'
)
.
text
)
self
.
assertIn
(
'Detail - Sunflowey'
,
self
.
browser
.
find_element_by_tag_name
(
'h1'
)
.
text
)
# While she is in a specific hero's page, she sees a button labeled "Back to Heroes List".
# 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.
# She clicks this and she is redirected back to the wiki's homepage.
homePageLink
=
self
.
browser
.
find_element_by_link_text
(
'Back to Heroes List'
)
homePageLink
=
self
.
browser
.
find_element_by_link_text
(
'Back to Heroes List'
)
homePageLink
.
click
()
homePageLink
.
click
()
#
self.fail('Finish the test!')
self
.
fail
(
'Finish the test!'
)
...
...
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