mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
tests: timeouts for tests (#4773)
This commit is contained in:
parent
f9ec49d7ac
commit
e585d321f9
42 changed files with 368 additions and 4 deletions
|
@ -18,6 +18,7 @@ describe('Pad modal', function () {
|
|||
});
|
||||
|
||||
it('disables editor', function (done) {
|
||||
this.timeout(200);
|
||||
expect(isEditorDisabled()).to.be(true);
|
||||
|
||||
done();
|
||||
|
@ -25,6 +26,7 @@ describe('Pad modal', function () {
|
|||
|
||||
context('and user clicks on editor', function () {
|
||||
it('does not close the modal', function (done) {
|
||||
this.timeout(200);
|
||||
clickOnPadInner();
|
||||
const $modal = helper.padChrome$(MODAL_SELECTOR);
|
||||
const modalIsVisible = $modal.hasClass('popup-show');
|
||||
|
@ -37,6 +39,7 @@ describe('Pad modal', function () {
|
|||
|
||||
context('and user clicks on pad outer', function () {
|
||||
it('does not close the modal', function (done) {
|
||||
this.timeout(200);
|
||||
clickOnPadOuter();
|
||||
const $modal = helper.padChrome$(MODAL_SELECTOR);
|
||||
const modalIsVisible = $modal.hasClass('popup-show');
|
||||
|
@ -68,6 +71,7 @@ describe('Pad modal', function () {
|
|||
*/
|
||||
context('and user clicks on editor', function () {
|
||||
it('closes the modal', async function () {
|
||||
this.timeout(200);
|
||||
clickOnPadInner();
|
||||
await helper.waitForPromise(() => isModalOpened(MODAL_SELECTOR) === false);
|
||||
});
|
||||
|
@ -75,6 +79,7 @@ describe('Pad modal', function () {
|
|||
|
||||
context('and user clicks on pad outer', function () {
|
||||
it('closes the modal', async function () {
|
||||
this.timeout(200);
|
||||
clickOnPadOuter();
|
||||
await helper.waitForPromise(() => isModalOpened(MODAL_SELECTOR) === false);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue