-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from andrewloftus24/develop
Develop
- Loading branch information
Showing
5 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1,3 +1,23 @@ | ||
from django.test import TestCase | ||
from django.test import LiveServerTestCase | ||
from selenium import webdriver | ||
from selenium.webdriver.common.keys import Keys | ||
from webdriver_manager.chrome import ChromeDriverManager | ||
import time | ||
|
||
# Create your tests here. | ||
class LoginTest(LiveServerTestCase): | ||
port = 8000 | ||
|
||
def testlogin(self): | ||
driver = webdriver.Chrome(ChromeDriverManager().install()) | ||
driver.get('http://127.0.0.1:8000/') | ||
loginButton = driver.find_element_by_link_text('Login') | ||
|
||
loginButton.send_keys(Keys.RETURN) | ||
username= driver.find_element_by_id("login-username") | ||
password = driver.find_element_by_id("login-password") | ||
|
||
username.send_keys('447spotify04@gmail.com') | ||
password.send_keys('Quasar04') | ||
submitButton = driver.find_element_by_id("login-button") | ||
submitButton.send_keys(Keys.RETURN) |
Binary file not shown.
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