Verify Cypress can test a modern web application login flow
Preconditions (2)
Step 1: Open the web application homepage
Step 2: Locate the username input field and enter 'testuser'
Step 3: Locate the password input field and enter 'Test@1234'
Step 4: Click the login button
Step 5: Wait for the dashboard page to load
Step 6: Verify the URL contains '/dashboard'
Step 7: Verify the dashboard page shows a welcome message containing 'Welcome, testuser'
✅ Expected Result: User is successfully logged in and redirected to the dashboard page with a welcome message