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
29b3bbee
Commit
29b3bbee
authored
Mar 10, 2020
by
abbeeeeyyyyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finished the functional_test
parent
6ac90dd7
Pipeline
#951
failed with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
58 deletions
+46
-58
detail_cloud.html
willowisp/detail_cloud.html
+16
-8
detail_jester.html
willowisp/detail_jester.html
+1
-0
detail_sunflowey.html
willowisp/detail_sunflowey.html
+16
-8
home.html
willowisp/home.html
+0
-35
lab1_functional_test.py
willowisp/lab1_functional_test.py
+13
-7
No files found.
willowisp/detail_cloud.html
View file @
29b3bbee
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>
Detail - Cloud
</title>
<title>
Detail - Cloud
</title>
</head>
</head>
<body>
<body>
<img
src=
"./cloud.png"
style=
"width: 10vw;"
/>
<img
src=
"./cloud.png"
style=
"width: 10vw;"
/>
<h1>
Detail - Cloud
</h1>
<h1>
Detail - Cloud
</h1>
<dl>
<dl>
<dt>
Health Points
</dt><dd>
600
</dd>
<dt>
Health Points
</dt>
<dt>
Base Attack Damage
</dt><dd>
57
</dd>
<dd>
600
</dd>
<dt>
Skills
</dt><dd>
Nimbus, Rain Cloud, Thunderbolt
</dd>
<dt>
Base Attack Damage
</dt>
<dt>
Lore
</dt><dd>
I am a cloud. When I pee you call it 'rain'.
</dd>
<dd>
57
</dd>
</dl>
<dt>
Skills
</dt>
<dd>
Nimbus, Rain Cloud, Thunderbolt
</dd>
<dt>
Lore
</dt>
<dd>
I am a cloud. When I pee you call it 'rain'.
</dd>
</dl>
<button
class=
'info'
onclick=
"window.location.href = 'heroes.html';"
>
Back to Heroes List
</button>
</body>
</body>
</html>
</html>
\ No newline at end of file
willowisp/detail_jester.html
View file @
29b3bbee
...
@@ -12,5 +12,6 @@
...
@@ -12,5 +12,6 @@
<dt>
Skills
</dt><dd>
Laugh, Dance, Smile
</dd>
<dt>
Skills
</dt><dd>
Laugh, Dance, Smile
</dd>
<dt>
Lore
</dt><dd>
I do it for the LOLs.
</dd>
<dt>
Lore
</dt><dd>
I do it for the LOLs.
</dd>
</dl>
</dl>
<button
class=
'info'
onclick=
"window.location.href = 'heroes.html';"
>
Back to Heroes List
</button>
</body>
</body>
</html>
</html>
\ No newline at end of file
willowisp/detail_sunflowey.html
View file @
29b3bbee
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>
Detail - Sunflowey
</title>
<title>
Detail - Sunflowey
</title>
</head>
</head>
<body>
<body>
<img
src=
"./sunflowey.png"
style=
"width: 10vw;"
/>
<img
src=
"./sunflowey.png"
style=
"width: 10vw;"
/>
<h1>
Detail - Sunflowey
</h1>
<h1>
Detail - Sunflowey
</h1>
<dl>
<dl>
<dt>
Health Points
</dt><dd>
650
</dd>
<dt>
Health Points
</dt>
<dt>
Base Attack Damage
</dt><dd>
43
</dd>
<dd>
650
</dd>
<dt>
Skills
</dt><dd>
Power Pellet, Sunshine, Pollen Punch
</dd>
<dt>
Base Attack Damage
</dt>
<dt>
Lore
</dt><dd>
I am Sunflowey. Sometimes a sun, sometimes a flower.
</dd>
<dd>
43
</dd>
</dl>
<dt>
Skills
</dt>
<dd>
Power Pellet, Sunshine, Pollen Punch
</dd>
<dt>
Lore
</dt>
<dd>
I am Sunflowey. Sometimes a sun, sometimes a flower.
</dd>
</dl>
<button
class=
'info'
onclick=
"window.location.href = 'heroes.html';"
>
Back to Heroes List
</button>
</body>
</body>
</html>
</html>
\ No newline at end of file
willowisp/home.html
deleted
100644 → 0
View file @
6ac90dd7
<html>
<head>
<title>
The Will of the Wisps Wiki
</title>
</head>
<body>
<h1>
Will-O-Wisp Heroes
</h1>
<h1>
Jester
</h1>
<dl>
<dt>
Health Points
</dt>
<dd>
660
</dd>
<dt>
Base Attack Damage
</dt>
<dd>
64
</dd>
</dl>
<button
class=
'info'
onclick=
"window.location.href = 'detail_jester.html';"
>
More Information
</button>
<h1>
Cloud
</h1>
<dl>
<dt>
Health Points
</dt>
<dd>
600
</dd>
<dt>
Base Attack Damage
</dt>
<dd>
57
</dd>
</dl>
<button
class=
'info'
onclick=
"window.location.href = 'detail_cloud.html';"
>
More Information
</button>
<h1>
Sunflowey
</h1>
<dl>
<dt>
Health Points
</dt>
<dd>
650
</dd>
<dt>
Base Attack Damage
</dt>
<dd>
43
</dd>
</dl>
<button
class=
'info'
onclick=
"window.location.href = 'detail_sunflowey.html';"
>
More Information
</button>
</body>
</html>
\ No newline at end of file
willowisp/lab1_functional_test.py
View file @
29b3bbee
...
@@ -23,12 +23,14 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -23,12 +23,14 @@ class NewVisitorTest(unittest.TestCase):
health_points
=
self
.
browser
.
find_element_by_tag_name
(
'dt'
)
.
text
health_points
=
self
.
browser
.
find_element_by_tag_name
(
'dt'
)
.
text
damage_points
=
self
.
browser
.
find_element_by_tag_name
(
'dt'
)
.
text
damage_points
=
self
.
browser
.
find_element_by_tag_name
(
'dt'
)
.
text
self
.
assertIn
(
'Cloud'
,
character_name
)
self
.
assertIn
(
'600'
,
health_points
)
self
.
assertIn
(
'57'
,
damage_points
)
self
.
assertIn
(
'Jester'
,
character_name
)
self
.
assertIn
(
'Jester'
,
character_name
)
self
.
assertIn
(
'660'
,
health_points
)
self
.
assertIn
(
'660'
,
health_points
)
self
.
assertIn
(
'64'
,
damage_points
)
self
.
assertIn
(
'64'
,
damage_points
)
self
.
assertIn
(
'Cloud'
,
character_name
)
self
.
assertIn
(
'600'
,
health_points
)
self
.
assertIn
(
'57'
,
damage_points
)
self
.
assertIn
(
'Sunflowey'
,
character_name
)
self
.
assertIn
(
'Sunflowey'
,
character_name
)
self
.
assertIn
(
'650'
,
health_points
)
self
.
assertIn
(
'650'
,
health_points
)
self
.
assertIn
(
'43'
,
damage_points
)
self
.
assertIn
(
'43'
,
damage_points
)
...
@@ -36,14 +38,18 @@ class NewVisitorTest(unittest.TestCase):
...
@@ -36,14 +38,18 @@ class NewVisitorTest(unittest.TestCase):
# 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).
link
=
self
.
browser
.
find_element
s_by_id
(
'jester-info'
)
.
text
link
=
self
.
browser
.
find_element
_by_link_text
(
'Jester'
)
self
.
assertIn
()
link
.
click
()
# 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
.
assertEquals
(
'http://localhost:8000/hero/Jester'
,
self
.
browser
.
current_url
)
self
.
assertIn
(
'Detail - Jester'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Detail - Jester'
,
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
.
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