[fix] Close modals when user clicks both on pad inner and outer

Also: split tests for automatic reconnection and regular modal tests.
This commit is contained in:
Luiza Pagliari 2017-05-04 11:22:18 -03:00
parent 0bd4169663
commit 4eec3763b4
3 changed files with 72 additions and 14 deletions

View file

@ -33,19 +33,6 @@ describe('Automatic pad reload on Force Reconnect message', function() {
done();
});
it('disables editor', function(done) {
var editorDocument = helper.padOuter$("iframe[name='ace_inner']").get(0).contentDocument;
var editorBody = editorDocument.getElementById('innerdocbody');
var editorIsEditable = editorBody.contentEditable === 'false' // IE/Safari
|| editorDocument.designMode === 'off'; // other browsers
expect(editorIsEditable).to.be(true);
done();
});
context('and user clicks on Cancel', function() {
beforeEach(function() {
var $errorMessageModal = helper.padChrome$('#connectivity .userdup');