B
B
beefront172018-02-28 15:47:59
JavaScript
beefront17, 2018-02-28 15:47:59

Testing with CodeceptJS, what's the problem?

Hello! Please tell me who knows how to solve the problem with CodeceptJS tests?
I got a project on react in which there are such tests and you need to somehow make them work)
The task is to test the routing.
Error at the moment

Test routing
       test accepts:
     [Wrapped Error] {"message":"navigation error","code":-102,"details":"ERR_CONNECTION_REFUSED","url":"http://localhost:3000/ror"}

The test itself
Feature('Test routing');

Scenario('test accepts',  (I) => {
  I.amOnPage('/ror');
  I.seeCurrentUrlEquals('/ror');
});

What else needs to be added?
Never worked with it, I will be grateful for the help!
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question