Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi
Created June 7, 2021 09:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cyrilletuzi/7a8e2698f7b43545dddbc5cfd3374219 to your computer and use it in GitHub Desktop.
import { browser, $, ExpectedConditions } from 'protractor';
describe('Account', () => {
it('should register successfully', async () => {
const email = `test_${Date.now()}@example.com`;
const password = 'test';
await browser.get('/account/register');
await $('input[type="email"]').sendKeys(email);
await $('input[type="password"]').sendKeys(password);
await $('button[type="submit"]').click();
await browser.wait(ExpectedConditions.urlContains('/account/login'));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment