Run Functional Tests using a Headless Browser - browser.fill function now returns a promise and the solution must be changed

Tell us what’s happening:
Hey,

Apparently, the browser.fill function now returns a promises, and chaining requests like presented in the solution no longer works;
.fill(…).pressButton(…) must become .fill(…).then( () => { browser.pressButton(…) } );

With this change, I can pass the chain tests themselves.

However, freeCodeCamp doesn’t recognize my solution as valid (I assume because it parses the code to check correctness?).

Is this a known problem, or am I misinterpreting what’s happening? Thanks.

Your project link(s)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Challenge: Run Functional Tests using a Headless Browser

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.