Я получаю ошибку ниже при выполнении тестовых случаев Cucumber,
Ниже приведены подробности ошибки при выполнении команды cucumber
➜ cart git:(master) ✗ cucumber
Feature: To see cart options
Everybody should see all cart menus
Scenario: should see menu title # features/cart_homepage.feature:4
Given I am on the home page # features/step_definitions/homepage.rb:1
Request to '/' failed to reach server, check DNS and/or server status (Capybara::Poltergeist::StatusFailError)
./features/step_definitions/homepage.rb:2:in `"I am on the home page"'
features/cart_homepage.feature:5:in `Given I am on the home page'
When I visit homepage I should see title as Menu Items # features/step_definitions/homepage.rb:5
Failing Scenarios:
cucumber features/cart_homepage.feature:4 # Scenario: should see menu title
1 scenario (1 failed)
2 steps (1 failed, 1 skipped)
Ruby Code, который создает проблемы.
Given("I am on the home page") do
visit "/"
end
When("I visit homepage I should see title as Menu Items") do
pending # Write code here that turns the phrase above into concrete actions
end