summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/mixins/with_mail_sandbox.spec.js
blob: a1c2d6240eaec0da53262f891d823df6d5356b5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
describeMixin('mixins/with_mail_sandbox', function() {
  'use strict';

  beforeEach(function() {
    this.setupComponent('<iframe id="read-sandbox" sandbox="allow-popups allow-scripts" src="sandbox/sandbox.html" scrolling="no"></iframe>');
  });

  it('should open reply container', function () {
    var showContainerEvent = spyOnEvent(document, Pixelated.events.ui.replyBox.showReplyContainer);
    this.component.showMailOnSandbox(Pixelated.testData().parsedMail.html);
    expect(showContainerEvent).toHaveBeenTriggeredOn(document);
  });

});