Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Credentials & secrets
*.xlsx
*.xls
*.env
*.env.*
secrets.*
credentials.*
login*info*

# Python
__pycache__/
*.py[cod]
*.pyo
.pytest_cache/
.coverage
htmlcov/

# Screenshots & reports (local test output)
screenshots/
reports/

# IDE
.idea/
.vscode/
*.iml

# OS
.DS_Store
Thumbs.db
6 changes: 3 additions & 3 deletions Login_logout/test_login_logout.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def pytest_runtest_makereport(item, call):

def test_login_with_invalid_user(login, take_screenshot):
driver = login
driver.find_element(By.XPATH, "//div[@class='login-form']//div[1]//label[1]").send_keys("clhstms+clh@connectedlife.i")
driver.find_element(By.XPATH, "//div[@class='login-form']//div[1]//label[1]").send_keys("invalid_user@example.com")
driver.find_element(By.XPATH, "//div[@class='divisions']//div[2]//label[1]//input[1]").send_keys(facility_pass)
driver.find_element(By.XPATH, "//input[@value='Sign In']").click()
message = driver.find_element(By.XPATH, "//*[@id='loginForm']/div[3]").text
Expand All @@ -94,7 +94,7 @@ def test_login_with_invalid_user(login, take_screenshot):
def test_login_with_invalid_password(login, take_screenshot):
driver = login
driver.find_element(By.XPATH, "//div[@class='login-form']//div[1]//label[1]").send_keys(facility_userid)
driver.find_element(By.XPATH, "//div[@class='divisions']//div[2]//label[1]//input[1]").send_keys("CoLifeUatSTM@123")
driver.find_element(By.XPATH, "//div[@class='divisions']//div[2]//label[1]//input[1]").send_keys("WrongPassword@000")
driver.find_element(By.XPATH, "//input[@value='Sign In']").click()
message = driver.find_element(By.XPATH, "//*[@id='loginForm']/div[3]").text
assert message == "Incorrect username or password. Please try again."
Expand All @@ -117,7 +117,7 @@ def test_login_with_valid_userid_password(login, take_screenshot):

def test_invalid_otp(loginfinal, take_screenshot):
driver = loginfinal
driver.find_element(By.XPATH, "//input[@id='inp']").send_keys("369633")
driver.find_element(By.XPATH, "//input[@id='inp']").send_keys("000000")
driver.find_element(By.XPATH, "//input[@value='Submit']").click()
message = driver.find_element(By.XPATH, "//*[@id='pinForm']/div[2]").text
assert message == "Back to Log in"
Expand Down
Loading