# Testing a facebook application

**URL:** <https://discuss.emberjs.com/t/testing-a-facebook-application/9133>\
**Category:** Testing\
**Created:** [November 18, 2015, 9:01pm UTC](https://discuss.emberjs.com/t/testing-a-facebook-application/9133 "2015-11-18T21:01:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergio\_101](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sergio\_101](https://discuss.emberjs.com/u/sergio_101)\
**Post date:** [November 18, 2015, 9:01pm UTC](https://discuss.emberjs.com/t/testing-a-facebook-application/9133/1 "2015-11-18T21:01:43Z")

</div>

I am wondering how to go about testing a Facebook application using the included testing framework.

The idea is that a Facebook application is just a web app (ember app in this case) inside an iframe on the Facebook page.

The trick is, if a use goes to this page from outside Facebook, they will be immediately directed back to the Facebook url for this application.

All this being said, how would i go about running tests? How would i address the DOM inside the iframe?

Thanks!
