add tests from origin/develop

This commit is contained in:
webzwo0i 2020-08-30 14:19:09 +02:00
parent 6a3e4c69b8
commit 2df2d7d60a
71 changed files with 18931 additions and 4032 deletions

View file

@ -1,6 +1,6 @@
describe('Pad modal', function() {
context('when modal is a "force reconnect" message', function() {
var MODAL_SELECTOR = '#connectivity .slowcommit';
var MODAL_SELECTOR = '#connectivity';
beforeEach(function(done) {
helper.newPad(function() {
@ -10,7 +10,7 @@ describe('Pad modal', function() {
// wait for modal to be displayed
var $modal = helper.padChrome$(MODAL_SELECTOR);
helper.waitFor(function() {
return $modal.is(':visible');
return $modal.hasClass('popup-show');
}, 50000).done(done);
});
@ -30,7 +30,7 @@ describe('Pad modal', function() {
it('does not close the modal', function(done) {
var $modal = helper.padChrome$(MODAL_SELECTOR);
var modalIsVisible = $modal.is(':visible');
var modalIsVisible = $modal.hasClass('popup-show');
expect(modalIsVisible).to.be(true);
@ -45,7 +45,7 @@ describe('Pad modal', function() {
it('does not close the modal', function(done) {
var $modal = helper.padChrome$(MODAL_SELECTOR);
var modalIsVisible = $modal.is(':visible');
var modalIsVisible = $modal.hasClass('popup-show');
expect(modalIsVisible).to.be(true);
@ -65,12 +65,13 @@ describe('Pad modal', function() {
this.timeout(60000);
});
// This test breaks safari testing
/*
it('does not disable editor', function(done) {
expect(isEditorDisabled()).to.be(false);
done();
});
*/
context('and user clicks on editor', function() {
beforeEach(function() {
clickOnPadInner();
@ -126,6 +127,7 @@ describe('Pad modal', function() {
var isModalOpened = function(modalSelector) {
var $modal = helper.padChrome$(modalSelector);
return $modal.is(':visible');
return $modal.hasClass('popup-show');
}
});