Verify login functionality using Cypress
Preconditions (2)
Step 1: Open the login page at 'http://localhost:3000/login'
Step 2: Enter 'testuser' in the username input field with id 'username'
Step 3: Enter 'Test@1234' in the password input field with id 'password'
Step 4: Click the login button with id 'loginBtn'
Step 5: Wait for the dashboard page to load
Step 6: Verify that the URL is 'http://localhost:3000/dashboard'
Step 7: Verify that the page contains a welcome message with id 'welcomeMsg' and text 'Welcome, testuser!'
✅ Expected Result: User is successfully logged in and redirected to the dashboard page with the welcome message displayed.