Commit c73b4565 authored by thisLexic's avatar thisLexic

back button created and made to work. test for it also added

parent 8889444f
...@@ -376,3 +376,50 @@ JavaScript error: resource://services-settings/RemoteSettingsClient.jsm, line 14 ...@@ -376,3 +376,50 @@ JavaScript error: resource://services-settings/RemoteSettingsClient.jsm, line 14
1583567078349 Marionette INFO Listening on port 38017 1583567078349 Marionette INFO Listening on port 38017
1583567078381 Marionette WARN TLS certificate errors will be ignored for this session 1583567078381 Marionette WARN TLS certificate errors will be ignored for this session
1583567080341 Marionette INFO Stopped listening on port 38017 1583567080341 Marionette INFO Stopped listening on port 38017
1583567517425 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileEhv04q"
1583567518192 addons.webextension.doh-rollout@mozilla.org WARN Loading extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extension permission: networkStatus
1583567519924 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1583567519924 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1583567519924 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1583567519924 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1583567522772 Marionette INFO Listening on port 43061
1583567522842 Marionette WARN TLS certificate errors will be ignored for this session
1583567527987 Marionette INFO Stopped listening on port 43061
1583567538762 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileQPVAsC"
1583567539593 addons.webextension.doh-rollout@mozilla.org WARN Loading extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extension permission: networkStatus
1583567541403 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1583567541403 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1583567541404 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1583567541404 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1583567544293 Marionette INFO Listening on port 43221
1583567544382 Marionette WARN TLS certificate errors will be ignored for this session
1583567549696 Marionette INFO Stopped listening on port 43221
1583567624991 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileIY4sfb"
1583567625798 addons.webextension.doh-rollout@mozilla.org WARN Loading extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extension permission: networkStatus
1583567627446 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1583567627446 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1583567627446 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1583567627447 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1583567630285 Marionette INFO Listening on port 32779
1583567630315 Marionette WARN TLS certificate errors will be ignored for this session
1583567632341 Marionette INFO Stopped listening on port 32779
JavaScript error: resource://services-settings/RemoteSettingsClient.jsm, line 144: Error: Unknown callback
1583567671705 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile0Ihqte"
1583567672487 addons.webextension.doh-rollout@mozilla.org WARN Loading extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extension permission: networkStatus
1583567674142 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1583567674142 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1583567674142 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1583567674142 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1583567676987 Marionette INFO Listening on port 42129
1583567677037 Marionette WARN TLS certificate errors will be ignored for this session
1583567679556 Marionette INFO Stopped listening on port 42129
1583567701803 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileVPjWAE"
1583567702603 addons.webextension.doh-rollout@mozilla.org WARN Loading extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extension permission: networkStatus
1583567704489 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1583567704489 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1583567704489 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1583567704489 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1583567707416 Marionette INFO Listening on port 32941
1583567707423 Marionette WARN TLS certificate errors will be ignored for this session
1583567709832 Marionette INFO Stopped listening on port 32941
JavaScript error: resource://services-settings/RemoteSettingsClient.jsm, line 144: Error: Unknown callback
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
<dt>Skills</dt><dd>Nimbus, Rain Cloud, Thunderbolt</dd> <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> <dt>Lore</dt><dd>I am a cloud. When I pee you call it 'rain'.</dd>
</dl> </dl>
<button><a href="/" id='button'>Back to Heroes List</a></button>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -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><a href="/" id='button'>Back to Heroes List</a></button>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -12,5 +12,6 @@ ...@@ -12,5 +12,6 @@
<dt>Skills</dt><dd>Power Pellet, Sunshine, Pollen Punch</dd> <dt>Skills</dt><dd>Power Pellet, Sunshine, Pollen Punch</dd>
<dt>Lore</dt><dd>I am Sunflowey. Sometimes a sun, sometimes a flower.</dd> <dt>Lore</dt><dd>I am Sunflowey. Sometimes a sun, sometimes a flower.</dd>
</dl> </dl>
<button><a href="/" id='button'>Back to Heroes List</a></button>
</body> </body>
</html> </html>
\ No newline at end of file
from django.urls import resolve
from selenium import webdriver from selenium import webdriver
import unittest import unittest
from .views import home_page
class NewVisitorTest(unittest.TestCase): class NewVisitorTest(unittest.TestCase):
def setUp(self): def setUp(self):
...@@ -51,6 +54,9 @@ class NewVisitorTest(unittest.TestCase): ...@@ -51,6 +54,9 @@ class NewVisitorTest(unittest.TestCase):
detail = self.browser.find_element_by_id('heading') detail = self.browser.find_element_by_id('heading')
self.assertEqual(detail.get_attribute('innerHTML'), 'Detail - Cloud') self.assertEqual(detail.get_attribute('innerHTML'), 'Detail - Cloud')
# 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.
button = self.browser.find_element_by_id('button').click()
self.assertEqual(resolve('/').func, home_page)
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