You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
If we write a feature file, we need to login on every step. feature files support that with background
Feature: Test Background Feature
Description: The purpose of this feature is to test the Background keyword
Background: User is Logged In
Given I navigate to the login page
When I submit username and password
Then I should be logged in
Scenario: Search a product and add the first product to the User basket
Given User search for Lenovo Laptop
When Add the first laptop that appears in the search result to the basket
Then User basket should display with added item
Scenario: Navigate to a product and add the same to the User basket
Given User navigate for Lenovo Laptop
When Add the laptop to the basket
Then User basket should display with added item
Describe the solution you'd like
When you use Background, it runs at every scenario at the beginning.
Describe alternatives you've considered
Without this, we just login on every scenario step.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
If we write a feature file, we need to login on every step. feature files support that with background
Describe the solution you'd like
When you use Background, it runs at every scenario at the beginning.
Describe alternatives you've considered
Without this, we just login on every scenario step.
The text was updated successfully, but these errors were encountered: