@stuartluscombe wrote:
My issue is very similar to ReferenceError: andThen is not defined in that when trying to follow the emberjs.com tutorial and going through sections on acceptance tests I am getting a problem with a helper method.
As with the other post, I had an issue with ‘andThen’, however I looked up async/await as suggested and the first test is now passing.
My second test though is not, because there is no ‘click’ method available:
test('should link to information about the company.', async function (assert) { await visit('/'); await click('a:contains("About")'); assert.equal(currentURL(), '/contact', 'should navigate to contact'); });
Any ideas would be most appreciated!
Posts: 2
Participants: 2