Verify URL parts using cy.location() after login
Preconditions (2)
Step 1: Enter 'testuser' in the username input field with id 'username'
Step 2: Enter 'Test@1234' in the password input field with id 'password'
Step 3: Click the login button with id 'loginBtn'
Step 4: Wait for navigation to complete
Step 5: Use cy.location() to get the current URL parts
Step 6: Verify the protocol is 'https:'
Step 7: Verify the hostname is 'example.com'
Step 8: Verify the pathname is '/dashboard'
Step 9: Verify the search query string is '?welcome=true'
✅ Expected Result: After login, the URL should have protocol 'https:', hostname 'example.com', pathname '/dashboard', and search query '?welcome=true'