Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { browser, $, ExpectedConditions } from 'protractor';
describe('Account', () => {
it('should register successfully', async () => {
const email = `test_${}`;
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