update form with new context name

This commit is contained in:
Carsten Otto 2015-04-02 17:00:55 +02:00
parent 556c68c2e6
commit ae4ce272ff
4 changed files with 15 additions and 2 deletions

View file

@ -119,6 +119,11 @@ Then /^the project field of the new todo form should contain "([^"]*)"$/ do |pro
expect(project_name).to eq(page.find(:xpath, xpath).value)
end
Then /^the context field of the new todo form should contain "([^"]*)"$/ do |context_name|
xpath= "//form[@id='todo-form-new-action']/input[@id='todo_context_name']"
expect(page.find(:xpath, xpath).value).to eq(context_name)
end
Then /^the default context of the new todo form should be "([^"]*)"$/ do |context_name|
xpath= "//form[@id='todo-form-new-action']/input[@id='todo_context_name']"
expect(context_name).to eq(page.find(:xpath, xpath).value)