Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
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
Bienvenido Villabroza
willowisp
Commits
c73b4565
Commit
c73b4565
authored
Mar 07, 2020
by
thisLexic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
back button created and made to work. test for it also added
parent
8889444f
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
1 deletion
+57
-1
geckodriver.log
willowisp/geckodriver.log
+47
-0
tests.cpython-37.pyc
willowisp/heroes/__pycache__/tests.cpython-37.pyc
+0
-0
detail_cloud.html
willowisp/heroes/templates/heroes/detail_cloud.html
+1
-0
detail_jester.html
willowisp/heroes/templates/heroes/detail_jester.html
+1
-0
detail_sunflowey.html
willowisp/heroes/templates/heroes/detail_sunflowey.html
+1
-0
tests.py
willowisp/heroes/tests.py
+7
-1
No files found.
willowisp/geckodriver.log
View file @
c73b4565
...
@@ -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
willowisp/heroes/__pycache__/tests.cpython-37.pyc
View file @
c73b4565
No preview for this file type
willowisp/heroes/templates/heroes/detail_cloud.html
View file @
c73b4565
...
@@ -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
willowisp/heroes/templates/heroes/detail_jester.html
View file @
c73b4565
...
@@ -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
willowisp/heroes/templates/heroes/detail_sunflowey.html
View file @
c73b4565
...
@@ -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
willowisp/heroes/tests.py
View file @
c73b4565
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
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