mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
lint: Fix bugs and style issues introduced in PR #4718
This fixes issues introduced in commit
f8a19c4527
.
This commit is contained in:
parent
0ff8274d2e
commit
294f2a251f
6 changed files with 165 additions and 179 deletions
|
@ -28,7 +28,7 @@ describe('Pad modal', function () {
|
|||
clickOnPadInner();
|
||||
const $modal = helper.padChrome$(MODAL_SELECTOR);
|
||||
const modalIsVisible = $modal.hasClass('popup-show');
|
||||
helper.waitForPromise(() => $modal.hasClass('popup-show') === true);
|
||||
|
||||
expect(modalIsVisible).to.be(true);
|
||||
|
||||
done();
|
||||
|
@ -37,12 +37,10 @@ describe('Pad modal', function () {
|
|||
|
||||
context('and user clicks on pad outer', function () {
|
||||
it('does not close the modal', function (done) {
|
||||
clickOnPadOuter();
|
||||
const $modal = helper.padChrome$(MODAL_SELECTOR);
|
||||
const modalIsVisible = $modal.hasClass('popup-show');
|
||||
|
||||
clickOnPadOuter();
|
||||
|
||||
helper.waitForPromise(() => $modal.hasClass('popup-show') === true);
|
||||
expect(modalIsVisible).to.be(true);
|
||||
|
||||
done();
|
||||
|
@ -69,20 +67,16 @@ describe('Pad modal', function () {
|
|||
});
|
||||
*/
|
||||
context('and user clicks on editor', function () {
|
||||
it('closes the modal', function (done) {
|
||||
it('closes the modal', async function () {
|
||||
clickOnPadInner();
|
||||
helper.waitForPromise(() => isModalOpened(MODAL_SELECTOR) === false);
|
||||
expect(isModalOpened(MODAL_SELECTOR)).to.be(false);
|
||||
done();
|
||||
await helper.waitForPromise(() => isModalOpened(MODAL_SELECTOR) === false);
|
||||
});
|
||||
});
|
||||
|
||||
context('and user clicks on pad outer', function () {
|
||||
it('closes the modal', function (done) {
|
||||
it('closes the modal', async function () {
|
||||
clickOnPadOuter();
|
||||
helper.waitForPromise(() => isModalOpened(MODAL_SELECTOR) === false);
|
||||
expect(isModalOpened(MODAL_SELECTOR)).to.be(false);
|
||||
done();
|
||||
await helper.waitForPromise(() => isModalOpened(MODAL_SELECTOR) === false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue