The when is the action taken by the user. There should be one action and only one action. This action will depend on the context defined by the Given and output the result expected by the Then. In our applications, this is equivalent to a function or method call.
When we start writing our tests, a When is analogous to the Act section of a test.