mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
b0c59233f3
Test page loads fixtures and renders the inbox view. This may be useful for smoke testing style changes or generating screenshots with pseudo-realistic data. Includes a couple small changes to get rendering working outside the app.
17 lines
554 B
JavaScript
17 lines
554 B
JavaScript
'use strict';
|
|
|
|
describe("Fixtures", function() {
|
|
before(function(done) {
|
|
Whisper.Fixtures.saveAll().then(done);
|
|
});
|
|
it('renders', function(done) {
|
|
ConversationController.updateInbox().then(function() {
|
|
var view = new Whisper.InboxView({appWindow: {contentWindow: window}});
|
|
view.$el.prependTo($('#render-android'));
|
|
|
|
var view = new Whisper.InboxView({appWindow: {contentWindow: window}});
|
|
view.$el.removeClass('android').addClass('ios');
|
|
view.$el.prependTo($('#render-ios'));
|
|
}).then(done,done);
|
|
});
|
|
});
|