Verify login functionality in headless mode for CI
Preconditions (2)
Step 1: Open the browser in headless mode
Step 2: Navigate to 'https://example.com/login'
Step 3: Enter 'testuser' in the username field with id 'username'
Step 4: Enter 'Test@1234' in the password field with id 'password'
Step 5: Click the login button with id 'loginBtn'
Step 6: Wait until the dashboard page loads and URL changes to 'https://example.com/dashboard'
Step 7: Verify that the element with id 'welcomeMessage' contains text 'Welcome, testuser!'
✅ Expected Result: User is successfully logged in and dashboard page is displayed with welcome message confirming login