mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
tests: Refine frontend tests
* Switch from `helper.newPad()` to `helper.aNewPad()`. * Promisify. * Delete redundant logic. * Lint fixes.
This commit is contained in:
parent
3790c0e41c
commit
bbf89dfcf9
35 changed files with 697 additions and 842 deletions
|
@ -500,8 +500,7 @@ describe('importexport.js', function () {
|
|||
let confirm;
|
||||
before(async function () {
|
||||
this.timeout(60000);
|
||||
await new Promise(
|
||||
(resolve, reject) => helper.newPad((err) => err != null ? reject(err) : resolve()));
|
||||
await helper.aNewPad();
|
||||
confirm = helper.padChrome$.window.confirm;
|
||||
helper.padChrome$.window.confirm = () => true;
|
||||
// As of 2021-02-22 a mutable FileList cannot be directly created so DataTransfer is used as a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue