Using Cucumber with Javascript and Selenium I have the following Gherking file:
Feature: Login
Background:
Given database is filled with these emails and passwords.
| [email protected] | 12345678 |
| [email protected] | 87654321 |
Scenario Outline:
Given I navigate to the landing page
When I submit the login form with "<email>" and "<password>"
Then I can see the welcome message
Examples:
| email | password |
| [email protected] | 12345678 |
| [email protected] | 87654321 |
My issue is that the background runs twice. Is there a way I can run it only once?