Ejemplo n.º 1
0
 public Task LoginUsingForm(string email, string name)
 {
     _page.TypeAsync(Cy.InputName("EmailLogin"), email).ConfigureAwait(false).GetAwaiter().GetResult();
     _page.TypeAsync(Cy.InputName("NameLogin"), name).ConfigureAwait(false).GetAwaiter().GetResult();
     _page.ClickAsync(Cy.Name("LoginButton")).ConfigureAwait(false).GetAwaiter().GetResult();
     _page.WaitForTimeoutAsync(1000).MakeItSync();
     return(Task.CompletedTask);
 }
Ejemplo n.º 2
0
 public Task EnterNameAndEmail(string name, string email)
 {
     _page.TypeAsync(Cy.InputName("NewPersonEmail"), email).MakeItSync();
     _page.TypeAsync(Cy.InputName("NewPersonName"), name).MakeItSync();
     return(Task.CompletedTask);
 }