Add error on existing supplier name for current employee

This commit is contained in:
2015-02-24 18:18:55 +01:00
parent db72cd06aa
commit fd871639b9
3 changed files with 18 additions and 1 deletions
+9
View File
@@ -29,6 +29,15 @@ Feature: A supplier can sign up
And I wait 1 second
Then a new supplier with the existing employee should be created
And the supplier should be redirected to the supplier '/pages/introduction' path
@javascript
Scenario: Existing signed in employee creates existing supplier name
Given there is a confirmed and open supplier
And I am signed in as supplier
When I visit the supplier signup path
And fill in the supplier signup form with an existing supplier name
And click on the supplier signup submit button
Then the new supplier signup for should have an error on 'supplier_name'
#Scenarios
#- non existing non signed in employee
#- existing non signed in employee