Login form test using JSON test data
Preconditions (2)
Step 1: Open the login page URL
Step 2: Read the username and password from the JSON file
Step 3: Enter the username into the username input field with id 'username'
Step 4: Enter the password into the password input field with id 'password'
Step 5: Click the login button with id 'loginBtn'
Step 6: Wait for the page to load and verify the URL contains '/dashboard'
✅ Expected Result: User is successfully logged in and redirected to the dashboard page