Add a try/catch block around the click(); DOM method, since PhantomJS does not support it. The click() method is supported in all other browsers we care about for this test, so I don't think it's worth the extra code required to create a cross-browser version.
Changes
Add a try/catch block around the
click();
DOM method, since PhantomJS does not support it. Theclick()
method is supported in all other browsers we care about for this test, so I don't think it's worth the extra code required to create a cross-browser version.For review: @DoSomething/front-end