-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added framework for functional tests
- Loading branch information
1 parent
5a7a950
commit 3b84417
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from selenium import webdriver | ||
from selenium.webdriver.common.keys import Keys | ||
import time | ||
import unittest | ||
|
||
class NewVisitorTest(LiveServerTestCase): | ||
"""NewVisitorTest to check for how new user interacts with site""" | ||
|
||
def setUp(self): | ||
self.browser = webdriver.Firefox() | ||
|
||
def tearDown(self): | ||
self.browser.quit() | ||
|
||
def test_can_record_a_sleep_and_retrieve_it_later(self): | ||
|
||
# Kirsty has heard about a cool new online sleep diary for children | ||
# with SEN. She goes to check out it's homepage | ||
|
||
self.browser.get(self.live_server_url) | ||
|
||
# She notices the page title and header mention sleep diary | ||
|
||
# She is told straight away more about the sleep diary | ||
|
||
# She decides that she does want to enter some details and | ||
# She is invited to enter her login details or register | ||
|
||
# She registers for her username "Kirsty" and enters a password "Password1" | ||
|
||
# After confirmed login she is then redirected to enter a sleep diary | ||
|