Skip to content

Commit

Permalink
Update e2e tests and respective pages
Browse files Browse the repository at this point in the history
  • Loading branch information
altaywtf committed Jan 30, 2019
1 parent 14e46b7 commit be3e085
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 126 deletions.
15 changes: 8 additions & 7 deletions e2e/register.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ describe('Register Flow', () => {
it('should have passphrase text and continue button', async () => {
const passphraseText = element(by.id('passphraseText'));
await waitFor(passphraseText).toExist().withTimeout(500);
await expect(passphraseText).toHaveText(passphrase);

const continueButton = element(by.id('registerSafeKeepingButton'));
await expect(continueButton).toExist();
Expand All @@ -35,12 +34,6 @@ describe('Register Flow', () => {
});

describe('Confirm', () => {
it('renders passphrase container', async () => {
const passphraseContainer = element(by.id('passphraseContainer'));
await waitFor(passphraseContainer).toExist().withTimeout(250);
await expect(passphraseContainer).toExist();
});

passphrase.split(' ').forEach((word) => {
it('has passphrase placeholders', async () => {
const wordPlaceholderButton = element(by.id(`passphrasePlaceholderFor-${word}`));
Expand Down Expand Up @@ -75,6 +68,14 @@ describe('Register Flow', () => {
});
});

describe('Security Reminder', () => {
it('ends up in success step', async () => {
const continueButton = element(by.id('registerInitializationButton'));
await expect(continueButton).toExist();
await continueButton.tap();
});
});

describe('Success', () => {
it('ends up in success step', async () => {
const container = element(by.id('registerSuccess'));
Expand Down

0 comments on commit be3e085

Please sign in to comment.