{"action":"closed","issue":{"url":"https://api.github.com/repos/jamesshore/quixote/issues/17","labels_url":"https://api.github.com/repos/jamesshore/quixote/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/jamesshore/quixote/issues/17/comments","events_url":"https://api.github.com/repos/jamesshore/quixote/issues/17/events","html_url":"https://github.com/jamesshore/quixote/issues/17","id":111245807,"number":17,"title":"Support  for AngularJS, React, etc.","user":{"login":"cognivator","id":4024050,"avatar_url":"https://avatars.githubusercontent.com/u/4024050?v=3","gravatar_id":"","url":"https://api.github.com/users/cognivator","html_url":"https://github.com/cognivator","followers_url":"https://api.github.com/users/cognivator/followers","following_url":"https://api.github.com/users/cognivator/following{/other_user}","gists_url":"https://api.github.com/users/cognivator/gists{/gist_id}","starred_url":"https://api.github.com/users/cognivator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cognivator/subscriptions","organizations_url":"https://api.github.com/users/cognivator/orgs","repos_url":"https://api.github.com/users/cognivator/repos","events_url":"https://api.github.com/users/cognivator/events{/privacy}","received_events_url":"https://api.github.com/users/cognivator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jamesshore/quixote/labels/discussion","name":"discussion","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-13T18:55:51Z","updated_at":"2015-11-18T17:55:15Z","closed_at":"2015-11-18T17:55:15Z","body":"**tl;dr**\r\nI propose a new `frame.reload()` method, and possibly a `frame.restart()` method that can re-initialize SPA apps built with the common MV* frameworks: Angular, React, etc. See below for details. I'm happy to begin work on these proposals.\r\n\r\n**Details**\r\nI've discovered the `frame.reset()` method doesn't do enough to re-initialize an SPA built with Angular, React, and probably any other MV* frameworks that have their own bootstrap process. In fact, `frame.reset()` may even do more harm than good for these frameworks, directly replacing body.InnerHTML as it does.\r\n\r\nThe workaround I'm using is to `frame.remove()` followed by `quixote.createFrame()` anywhere `frame.reset()` would normally be used (e.g. beforeEach.) This seems a bit heavyweight, but it's the only way I found to properly restart an SPA built with either Angular or React.\r\n\r\n_**I propose one or two new ways to reinitialize the quixote frame.**_\r\n\r\n**frame.reload** - intended to reload the test page in the quixote frame, as if a user had hit Ctrl-reload in the browser to avoid caching and do a server round-trip on the base url. There are undoubtedly more nuances to work through, but this is the general idea.\r\n\r\n**frame.restart** - intended to restart the SPA framework, if such a thing is possible and desirable for the SPA being tested. Some initial thoughts are to support specific frameworks' bootstrap processes, and/or supply an event that the SPA can listen for and manage it's own restart.\r\n\r\nI'm happy to begin work on these proposals. I suspect opening two separate issues, one per method, is appropriate, yes?\r\n\r\n\r\n\r\n"}}