Verify user login using JSON fixture data
Preconditions (2)
Step 1: Open the login page at 'https://example.com/login'.
Step 2: Load the 'user.json' fixture file containing username and password.
Step 3: Enter the username from the fixture into the username input field with id 'username'.
Step 4: Enter the password from the fixture into the password input field with id 'password'.
Step 5: Click the login button with id 'loginBtn'.
Step 6: Verify that the URL changes to 'https://example.com/dashboard'.
Step 7: Verify that a welcome message with id 'welcomeMsg' contains the username from the fixture.
✅ Expected Result: User is successfully logged in and redirected to the dashboard page with a welcome message showing the username.