by Dan North in 2003 when he was a TDD trainer. The aim of BDD is to re-explain the basics of TDD replacing the word Test with Behavior. Dan North defines it as: "TDD done well".
I open a web browser And I navigate to https://google.fr When I fill the search input "TypeScript" And I click on the search button Then I am redirected on the results page And I should see links related to "TypeScript"
Given I’m on my smartphone And I say "Ok Google" When I say "Search for TypeScript on the web" Then I am redirected on the results page And I should see links related to "TypeScript"
from "chai"; import { Then } from "cucumber"; Then("I have an error", function() { const expected = 400; expect(this.actual).to.be.equal(expected); });