Improve supplier settings logick
This commit is contained in:
@@ -22,3 +22,10 @@ end
|
||||
step "I visit the supplier settings path" do
|
||||
visit "/supplier#/settings"
|
||||
end
|
||||
|
||||
|
||||
## ASSERTIONS
|
||||
|
||||
step "the supplier should be redirected to the root path" do
|
||||
ember_route.should == '/'
|
||||
end
|
||||
|
||||
@@ -27,12 +27,17 @@ step "an email should have been sent to the original supplier email with email c
|
||||
@confirmation_link = confirmation_link_match[1]
|
||||
end
|
||||
|
||||
step "the supplier changes the name to :name in the settings page" do |new_name|
|
||||
page.find('input.supplier-name').set new_name
|
||||
end
|
||||
|
||||
step "the supplier clicks on the new email confirmation link" do
|
||||
visit @confirmation_link
|
||||
end
|
||||
|
||||
step "the supplier gets redirected to the supplier settings path" do
|
||||
route_should_be 'supplier#edit'
|
||||
step "the supplier should be redirected to the supplier settings path" do
|
||||
# route_should_be 'supplier#edit'
|
||||
ember_route.should == '/settings'
|
||||
end
|
||||
|
||||
step "the supplier email is the new email and the unconfirmed email is empty" do
|
||||
|
||||
Reference in New Issue
Block a user