mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
lint: lint and various fixes of frontend test specs
This commit is contained in:
parent
da10d42183
commit
f8a19c4527
9 changed files with 261 additions and 240 deletions
|
@ -23,9 +23,13 @@ describe('drag and drop', function () {
|
|||
});
|
||||
|
||||
context('and user triggers UNDO', function () {
|
||||
before(function () {
|
||||
before(async function () {
|
||||
const originalHTML = helper.padInner$('body').html();
|
||||
const $undoButton = helper.padChrome$('.buttonicon-undo');
|
||||
$undoButton.click();
|
||||
await helper.waitForPromise(
|
||||
() => originalHTML !== helper.padInner$('body').html()
|
||||
);
|
||||
});
|
||||
|
||||
it('moves text back to its original place', function (done) {
|
||||
|
@ -58,9 +62,13 @@ describe('drag and drop', function () {
|
|||
});
|
||||
|
||||
context('and user triggers UNDO', function () {
|
||||
before(function () {
|
||||
before(async function () {
|
||||
const originalHTML = helper.padInner$('body').html();
|
||||
const $undoButton = helper.padChrome$('.buttonicon-undo');
|
||||
$undoButton.click();
|
||||
await helper.waitForPromise(
|
||||
() => originalHTML !== helper.padInner$('body').html()
|
||||
);
|
||||
});
|
||||
|
||||
it('moves text back to its original place', function (done) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue