0

I'm not sure if I'm supposed to ask this question somewhere else. That said, please excuse me if I'm using this site wrong.

As for my question, is there a way on how to display the response of the API using codeceptjs? I've recently learned about the 'I.say()', however I'm not quite sure how to get the proper response and actually put it in there.

Thanks in advance.

DayIsGreen
  • 255
  • 1
  • 4
  • 16
  • I forgot to mention that the expected output is a JSON (or whatever result as seen in Postman) as I'm using Codeceptjs with the API alone. – DayIsGreen Jun 20 '18 at 09:27

1 Answers1

0

I found the answer.

Basically, I added the 'async' in the Scenario, and then added a variable, being equal to the I.sendGetRequest with an 'await' before it.

DayIsGreen
  • 255
  • 1
  • 4
  • 16