Commit 8889444f authored by thisLexic's avatar thisLexic

title and heading of detail page of cloud is correct

parent 3ea66a87
...@@ -367,3 +367,12 @@ JavaScript error: resource://services-settings/RemoteSettingsClient.jsm, line 14 ...@@ -367,3 +367,12 @@ JavaScript error: resource://services-settings/RemoteSettingsClient.jsm, line 14
1583566668367 Marionette INFO Listening on port 34453 1583566668367 Marionette INFO Listening on port 34453
1583566668447 Marionette WARN TLS certificate errors will be ignored for this session 1583566668447 Marionette WARN TLS certificate errors will be ignored for this session
1583566670539 Marionette INFO Stopped listening on port 34453 1583566670539 Marionette INFO Stopped listening on port 34453
1583567073159 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileqxS9ta"
1583567073870 addons.webextension.doh-rollout@mozilla.org WARN Loading extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extension permission: networkStatus
1583567075407 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1583567075407 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1583567075408 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1583567075408 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1583567078349 Marionette INFO Listening on port 38017
1583567078381 Marionette WARN TLS certificate errors will be ignored for this session
1583567080341 Marionette INFO Stopped listening on port 38017
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Detail - Cloud</title> <title id='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 id='heading'>Detail - Cloud</h1>
<dl> <dl>
<dt>Health Points</dt><dd>600</dd> <dt>Health Points</dt><dd>600</dd>
<dt>Base Attack Damage</dt><dd>57</dd> <dt>Base Attack Damage</dt><dd>57</dd>
......
...@@ -45,6 +45,12 @@ class NewVisitorTest(unittest.TestCase): ...@@ -45,6 +45,12 @@ class NewVisitorTest(unittest.TestCase):
# containing more information about the hero (additional stats, lore, image). # containing more information about the hero (additional stats, lore, image).
self.browser.get('http://127.0.0.1:8000/heroes/cloud') self.browser.get('http://127.0.0.1:8000/heroes/cloud')
# She spots the page title and header mentions the name of the hero she selected.
detail = self.browser.find_element_by_id('title')
self.assertEqual(detail.get_attribute('innerHTML'), 'Detail - Cloud')
detail = self.browser.find_element_by_id('heading')
self.assertEqual(detail.get_attribute('innerHTML'), 'Detail - Cloud')
self.fail('Finish the test!') self.fail('Finish the test!')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment