Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
feat(test): Add functional tests to ensure fxaccounts:loaded is sent.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Tomlinson committed Jun 13, 2017
1 parent b2d4051 commit a8142d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/functional/mob_android_v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ define([

const COMMAND_CAN_LINK_ACCOUNT = 'fxaccounts:can_link_account';
const COMMAND_EMAIL_VERIFIED = 'fxaccounts:email_verified';
const COMMAND_LOADED = 'fxaccounts:loaded';
const COMMAND_LOGIN = 'fxaccounts:login';

let email;
Expand Down Expand Up @@ -61,6 +62,7 @@ define([
}
}))
.then(noSuchElement(selectors.SIGNUP.CUSTOMIZE_SYNC_CHECKBOX))
.then(testIsBrowserNotified(COMMAND_LOADED))
.then(fillOutSignUp(email, PASSWORD))

.then(testElementExists(selectors.CONFIRM_SIGNUP.HEADER))
Expand All @@ -83,6 +85,7 @@ define([
[COMMAND_CAN_LINK_ACCOUNT]: { ok: true }
}
}))
.then(testIsBrowserNotified(COMMAND_LOADED))
.then(fillOutSignIn(email, PASSWORD))

.then(testElementExists(selectors.CONFIRM_SIGNIN.HEADER))
Expand Down
3 changes: 3 additions & 0 deletions tests/functional/mob_ios_v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ define([

const COMMAND_CAN_LINK_ACCOUNT = 'fxaccounts:can_link_account';
const COMMAND_EMAIL_VERIFIED = 'fxaccounts:email_verified';
const COMMAND_LOADED = 'fxaccounts:loaded';
const COMMAND_LOGIN = 'fxaccounts:login';

let email;
Expand Down Expand Up @@ -61,6 +62,7 @@ define([
}
}))
.then(noSuchElement(selectors.SIGNUP.CUSTOMIZE_SYNC_CHECKBOX))
.then(testIsBrowserNotified(COMMAND_LOADED))
.then(fillOutSignUp(email, PASSWORD))

.then(testElementExists(selectors.CONFIRM_SIGNUP.HEADER))
Expand All @@ -83,6 +85,7 @@ define([
[COMMAND_CAN_LINK_ACCOUNT]: { ok: true }
}
}))
.then(testIsBrowserNotified(COMMAND_LOADED))
.then(fillOutSignIn(email, PASSWORD))

.then(testElementExists(selectors.CONFIRM_SIGNIN.HEADER))
Expand Down

0 comments on commit a8142d4

Please sign in to comment.