Call test script function [protractor]

0

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.

    
asked by anonymous 22.03.2017 / 19:59

0 answers