Skip to content

Commit a5fcaa0

Browse files
test: add intentional failure to validate screenshot functionality in test_home_page
1 parent c3a9c84 commit a5fcaa0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_home_page.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ def test_home_page_functional_flow(self, driver):
7070
final_grade_rows = driver.find_elements(By.CSS_SELECTOR, ".home__grade-row")
7171
assert len(final_grade_rows) == initial_count, "Grade row was not removed!"
7272

73+
assert True == False, "Intentional failure to test screenshot functionality." #TODO: Remove this line after testing
74+
7375
except Exception as e:
7476
# Take screenshot on any failure
7577
driver.save_screenshot(f"screenshots/error_{int(time.time())}.png")

0 commit comments

Comments
 (0)