Spaces:
Build error
Build error
FauziIsyrinApridal
commited on
Commit
·
4ab9ddf
1
Parent(s):
e2fbcaf
ws init
Browse files- tests/test_admin.py +3 -3
tests/test_admin.py
CHANGED
@@ -25,8 +25,8 @@ def run_test():
|
|
25 |
print("[📷] Berhasil Screenshot Halaman Login.")
|
26 |
|
27 |
# 2️⃣ Login dengan admin
|
28 |
-
page.fill("input[name='email']", "
|
29 |
-
page.fill("input[name='password']", "
|
30 |
page.wait_for_selector("button[type='submit']", timeout=10000)
|
31 |
page.click("button[type='submit']")
|
32 |
page.wait_for_timeout(3000)
|
@@ -74,7 +74,7 @@ def run_test():
|
|
74 |
page.click("text=All Semesters")
|
75 |
page.wait_for_timeout(1000)
|
76 |
|
77 |
-
page.click("div.font-medium:has-text('Ganjil 2025
|
78 |
page.wait_for_timeout(2000)
|
79 |
|
80 |
page.screenshot(path=f"{SCREENSHOTS_DIR}/06_after_filter.png")
|
|
|
25 |
print("[📷] Berhasil Screenshot Halaman Login.")
|
26 |
|
27 |
# 2️⃣ Login dengan admin
|
28 |
+
page.fill("input[name='email']", "pnpbot87@gmail.com")
|
29 |
+
page.fill("input[name='password']", "Pnp_Bot87")
|
30 |
page.wait_for_selector("button[type='submit']", timeout=10000)
|
31 |
page.click("button[type='submit']")
|
32 |
page.wait_for_timeout(3000)
|
|
|
74 |
page.click("text=All Semesters")
|
75 |
page.wait_for_timeout(1000)
|
76 |
|
77 |
+
page.click("div.font-medium:has-text('Ganjil 2024/2025')")
|
78 |
page.wait_for_timeout(2000)
|
79 |
|
80 |
page.screenshot(path=f"{SCREENSHOTS_DIR}/06_after_filter.png")
|