From dcd0e522c7c95e2c7580e88857f7a2d41484c64f Mon Sep 17 00:00:00 2001 From: newtech7j Date: Tue, 7 May 2024 12:45:03 +0100 Subject: [PATCH] updated code tha uses fixture to restore the database. make sure the link of the database sql file is set nomally. this is the demo video https://cloud.zjnu.edu.cn/share/5d5a595aa863203768489383cd --- Admin.php | 2 +- test/SeleniumNeil/conftest.py | 48 +++++++++++++++++++++ test/SeleniumNeil/test_cases.py | 76 ++++++++++++++++++--------------- 3 files changed, 90 insertions(+), 36 deletions(-) create mode 100644 test/SeleniumNeil/conftest.py diff --git a/Admin.php b/Admin.php index 103a480..fd4dfbe 100644 --- a/Admin.php +++ b/Admin.php @@ -72,7 +72,7 @@ if ($_SESSION['user_type'] != "Lecturer" && $_SESSION['user_type'] != "Admin") { Email
Initial password (Enter a strong password or leave it empty to let LRR generate one) -
+
User type: