Created
June 7, 2021 09:46
-
-
Save cyrilletuzi/7a8e2698f7b43545dddbc5cfd3374219 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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