/* eslint-disable import/prefer-default-export */
// TODO: remove ^

/**
 * @param {String} todo
 */
export async function addTodo(todo) {
  await browser.click('.new-todo');
  await browser.keys(todo);
  await browser.keys(['Enter']);
}

/* eslint-disable import/prefer-default-export */
// TODO: remove ^

/**
 * @param {String} todo
 */
export async function addTodo(todo) {
  await browser.setValue('.new-todo', [todo, 'Enter']);
}

Use browser.setValue instead of browser.keys
Use browser.setValue instead of browser.keys

browser.keys doesn't work in Firefox, it seems it's been deprecated from the
spec.
