Hello, I have a file that calls several test methods that I created with protractor, it looks something like this:
import {MeuCadastro} from './MeuCadastro/MeuCadastro.spec';
import {Rotas} from './Rotas/rotas.spec';
let rotas: Rotas = new Rotas();
let meuCadastro: MeuCadastro = new MeuCadastro();
rotas.rotas();
meuCadastro.cadastro();
The problem is that the "My registration" test does not wait for the "routes" to finish, and ends up generating an error in the test's wait.
What is the best way to use these methods so that they work after the top is finished?
Thanks in advance for any help.