Complete the code to define a BDD scenario title.
Scenario: [1]The scenario title in BDD describes the behavior to test, like 'User logs in successfully'.
Complete the code to write a Given step in BDD.
Given [1]The Given step sets the initial context or state, like 'the user is on the login page'.
Fix the error in the When step by completing the code.
When [1]The When step describes the action or event, such as 'the user enters valid credentials'.
Fill both blanks to complete the Then step describing the expected outcome.
Then [1] and [2]
The Then step describes expected results, like 'the user sees the dashboard' and 'the login is successful'.
Fill all three blanks to complete a BDD scenario outline with placeholders.
Scenario Outline: [1] Given [2] When [3]
A Scenario Outline uses placeholders like <username> and <password> to test multiple cases. The title and steps describe the behavior clearly.