fx-desktop glue & start to set up front end unit tests. #191
Conversation
|
Link to #189 |
| // A few globals | ||
| function (Polyfills, Backbone, Router, Translator, Session, FxDesktopChannel) { | ||
| // Firefox for desktop native=>FxA glue code. | ||
| var desktopChannel = new FxDesktopChannel(); |
shane-tomlinson
Jan 9, 2014
Author
Member
We will also need a channel for normal web content, for a later date.
We will also need a channel for normal web content, for a later date.
|
@zaach - and this one over here too. :D |
| @@ -12,7 +12,9 @@ | |||
| "jquery.transit": "~0.9.9", | |||
| "requirejs-mustache": "*", | |||
| "mustache": "~0.7.3", | |||
| "requirejs-text": "~2.0.10" | |||
| "requirejs-text": "~2.0.10", | |||
| "mocha": "~1.16.2", | |||
zaach
Jan 9, 2014
Contributor
I wouldn't mind keeping mocha. But can we set it up to run on sauce along with the functional tests like theintern allows?
I wouldn't mind keeping mocha. But can we set it up to run on sauce along with the functional tests like theintern allows?
shane-tomlinson
Jan 10, 2014
Author
Member
@zaach - I am attempting to port the tests over to the intern, on the surface it seems easy, but I am fighting with the AMD loader.
@zaach - I am attempting to port the tests over to the intern, on the surface it seems easy, but I am fighting with the AMD loader.
shane-tomlinson
Jan 10, 2014
Author
Member
@zaach - so I took a different approach here. I struggled with getting the intern running with RequireJS and the built in AMD loader does not support the shim configuration item to be able to shim in things like backbone, jquery, etc. So, I decided I'd create a functional test that opens the mocha tests, and then checks for errors. https://github.com/mozilla/fxa-content-server/pull/191/files#diff-7b0417d0bfcde3acae14d9aa1bfa803eR20
Ugh. Is there a better way than this?
@zaach - so I took a different approach here. I struggled with getting the intern running with RequireJS and the built in AMD loader does not support the shim configuration item to be able to shim in things like backbone, jquery, etc. So, I decided I'd create a functional test that opens the mocha tests, and then checks for errors. https://github.com/mozilla/fxa-content-server/pull/191/files#diff-7b0417d0bfcde3acae14d9aa1bfa803eR20
Ugh. Is there a better way than this?
|
@zaach - did an update to run the mocha tests as a functional test. I'm not terribly happy with it, do you know how we can get our client side code loaded correctly into an intern tdd test? |
* Add mocha & chai to the bower config. * Add a functional test shell for the confirm screen. * Go to the correct page on startup if the browser supports Fx events. * Mocha tests now run as part of the intern functional tests.
|
I was getting a couple of errors from the chrome side: I'm attempting to verify that I was still able to log in (awsbox deploys are so slow). |
|
A second time around and those errors aren't showing up, but I can't get through the whole flow because our email verification is broken #222. |
|
Good news! I was able to successfully log in, and the browser remembers my logged in state. r+ |
fx-desktop glue & start to set up front end unit tests.
I realize standalone mocha tests is not how the intern works, but I was unsure of how to get the intern working with our system and TDD. There was too much bashing my head, so I went with what I know. We can convert these.