BenchaminDimitriu/Ecom22_TeamProject

register feature

Opened this issue · 0 comments

The register feature is not correct. You must write the actions and the consequence that verifies that the actions have succeeded. See below for a correct version, assuming you get redirected to the login page once you have completed the initial step to register.

Feature: register
In order to register a new account
As a user
I need to click on the register link

Scenario: try to register user "user"
Given I am on "Main/register"
When I fill in "username" with "newUser"
And I fill in "password" with "newPassword"
And I click "register"
And I fill in "username" with "newUser"
And I fill in "password" with "newPassword"
And I click "login"
Then I see "Welcome newUser"