Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
1
184424-Santos-Lab1-CSCI-40
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
Kirby Ezekiel Santos
184424-Santos-Lab1-CSCI-40
Commits
573ad4a1
Commit
573ad4a1
authored
Mar 07, 2020
by
Kirby Ezekiel Santos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed naming inconsitencies for verifing page headers in tests
parent
b78dd5bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests.py
heroes/tests.py
+4
-4
No files found.
heroes/tests.py
View file @
573ad4a1
...
...
@@ -34,24 +34,24 @@ class CheckContents(unittest.TestCase):
self
.
browser
.
get
(
'http://localhost:8000/hero/cloud'
)
cloudTitle
=
self
.
browser
.
find_element_by_id
(
'cloudTitle'
)
self
.
assertEqual
(
cloudTitle
.
get_attribute
(
'innerHTML'
),
'Detail - Cloud'
)
cloudHead
ing
=
self
.
browser
.
find_element_b_id
(
'cloudHeader'
)
cloudHead
er
=
self
.
browser
.
find_element_b_id
(
'cloudHeader'
)
self
.
assertEqual
(
cloudHeader
.
get_attribute
(
'innerHTML'
),
'Detail - Cloud'
)
def
check_jester_page_title_and_heading
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/hero/jester'
)
jesterTitle
=
self
.
browser
.
find_element_by_id
(
'jesterTitle'
)
self
.
assertEqual
(
jesterTitle
.
get_attribute
(
'innerHTML'
),
'Detail - Jester'
)
jesterHead
ing
=
self
.
browser
.
find_element_b_id
(
'jesterHeader'
)
jesterHead
er
=
self
.
browser
.
find_element_b_id
(
'jesterHeader'
)
self
.
assertEqual
(
jesterHeader
.
get_attribute
(
'innerHTML'
),
'Detail - Jester'
)
def
check_sunflowey_page_title_and_heading
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/hero/sunflowey'
)
sunfloweyTitle
=
self
.
browser
.
find_element_by_id
(
'sunfloweyTitle'
)
self
.
assertEqual
(
sunfloweyTitle
.
get_attribute
(
'innerHTML'
),
'Detail - Sunflowey'
)
sunfloweyHead
ing
=
self
.
browser
.
find_element_b_id
(
'sunfloweyHeader'
)
sunfloweyHead
er
=
self
.
browser
.
find_element_b_id
(
'sunfloweyHeader'
)
self
.
assertEqual
(
sunfloweyHeader
.
get_attribute
(
'innerHTML'
),
'Detail - Sunflowey'
)
...
...
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