function assertEmailErrorMessage(message, container) {
  const element = dom.getElementByClass('firebaseui-id-email-error', container);
  assertContains(message, dom.getTextContent(element));
}
Asserts the email error is displayed with the correct message.
@param {string} message The email error message.
@param {!Element} container The html element container of the widget.