mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
remove custom timeouts
This commit is contained in:
parent
af19a010c5
commit
9408d4395f
32 changed files with 0 additions and 46 deletions
|
@ -5,7 +5,6 @@ describe('All the alphabet works n stuff', function () {
|
||||||
|
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ describe('author of pad edition', function () {
|
||||||
|
|
||||||
// author 1 creates a new pad with some content (regular lines and lists)
|
// author 1 creates a new pad with some content (regular lines and lists)
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
const padId = await helper.aNewPad();
|
const padId = await helper.aNewPad();
|
||||||
|
|
||||||
// make sure pad has at least 3 lines
|
// make sure pad has at least 3 lines
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
describe('bold button', function () {
|
describe('bold button', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
describe('change user color', function () {
|
describe('change user color', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,6 @@ describe('Chat messages and UI', function () {
|
||||||
|
|
||||||
xit('Checks showChat=false URL Parameter hides chat then' +
|
xit('Checks showChat=false URL Parameter hides chat then' +
|
||||||
' when removed it shows chat', async function () {
|
' when removed it shows chat', async function () {
|
||||||
this.timeout(60000);
|
|
||||||
|
|
||||||
// give it a second to save the username on the server side
|
// give it a second to save the username on the server side
|
||||||
await new Promise((resolve) => setTimeout(resolve, 3000));
|
await new Promise((resolve) => setTimeout(resolve, 3000));
|
||||||
|
|
|
@ -4,7 +4,6 @@ describe('chat-load-messages', function () {
|
||||||
let padName;
|
let padName;
|
||||||
|
|
||||||
it('creates a pad', async function () {
|
it('creates a pad', async function () {
|
||||||
this.timeout(60000);
|
|
||||||
padName = await helper.aNewPad();
|
padName = await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -15,8 +14,6 @@ describe('chat-load-messages', function () {
|
||||||
const chatInput = chrome$('#chatinput');
|
const chatInput = chrome$('#chatinput');
|
||||||
const chatText = chrome$('#chattext');
|
const chatText = chrome$('#chattext');
|
||||||
|
|
||||||
this.timeout(60000);
|
|
||||||
|
|
||||||
const messages = 140;
|
const messages = 140;
|
||||||
for (let i = 1; i <= messages; i++) {
|
for (let i = 1; i <= messages; i++) {
|
||||||
let num = `${i}`;
|
let num = `${i}`;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
describe('clear authorship colors button', function () {
|
describe('clear authorship colors button', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
describe('delete keystroke', function () {
|
describe('delete keystroke', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
// WARNING: drag and drop is only simulated on these tests, manual testing might also be necessary
|
// WARNING: drag and drop is only simulated on these tests, manual testing might also be necessary
|
||||||
describe('drag and drop', function () {
|
describe('drag and drop', function () {
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
await createScriptWithSeveralLines();
|
await createScriptWithSeveralLines();
|
||||||
});
|
});
|
||||||
|
|
|
@ -51,7 +51,6 @@ describe('embed links', function () {
|
||||||
describe('read and write', function () {
|
describe('read and write', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -86,7 +85,6 @@ describe('embed links', function () {
|
||||||
|
|
||||||
describe('when read only option is set', function () {
|
describe('when read only option is set', function () {
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
describe('enter keystroke', function () {
|
describe('enter keystroke', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
describe('font select', function () {
|
describe('font select', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,6 @@ describe('the test helper', function () {
|
||||||
// timeout may or may end up in the code. None the less, we test here
|
// timeout may or may end up in the code. None the less, we test here
|
||||||
// to catch it if the bug comes up again.
|
// to catch it if the bug comes up again.
|
||||||
it('clears cookies', async function () {
|
it('clears cookies', async function () {
|
||||||
this.timeout(60000);
|
|
||||||
|
|
||||||
// set cookies far into the future to make sure they're not expired yet
|
// set cookies far into the future to make sure they're not expired yet
|
||||||
window.Cookies.set('token', 'foo', {expires: 7 /* days */});
|
window.Cookies.set('token', 'foo', {expires: 7 /* days */});
|
||||||
window.Cookies.set('language', 'bar', {expires: 7 /* days */});
|
window.Cookies.set('language', 'bar', {expires: 7 /* days */});
|
||||||
|
@ -95,7 +93,6 @@ describe('the test helper', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('sets pad prefs cookie', async function () {
|
it('sets pad prefs cookie', async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad({padPrefs: {foo: 'padPrefs test'}});
|
await helper.aNewPad({padPrefs: {foo: 'padPrefs test'}});
|
||||||
const {padcookie} = helper.padChrome$.window.require('ep_etherpad-lite/static/js/pad_cookie');
|
const {padcookie} = helper.padChrome$.window.require('ep_etherpad-lite/static/js/pad_cookie');
|
||||||
expect(padcookie.getPref('foo')).to.be('padPrefs test');
|
expect(padcookie.getPref('foo')).to.be('padPrefs test');
|
||||||
|
@ -239,7 +236,6 @@ describe('the test helper', function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
|
|
||||||
// create some lines to be used on the tests
|
// create some lines to be used on the tests
|
||||||
|
|
|
@ -499,7 +499,6 @@ describe('importexport.js', function () {
|
||||||
|
|
||||||
let confirm;
|
let confirm;
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
confirm = helper.padChrome$.window.confirm;
|
confirm = helper.padChrome$.window.confirm;
|
||||||
helper.padChrome$.window.confirm = () => true;
|
helper.padChrome$.window.confirm = () => true;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
describe('import indents functionality', function () {
|
describe('import indents functionality', function () {
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
describe('indentation button', function () {
|
describe('indentation button', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
describe('italic some text', function () {
|
describe('italic some text', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ describe('Language select and change', function () {
|
||||||
|
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
describe('author of pad edition', function () {
|
describe('author of pad edition', function () {
|
||||||
// author 1 creates a new pad with some content (regular lines and lists)
|
// author 1 creates a new pad with some content (regular lines and lists)
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
const padId = await helper.aNewPad();
|
const padId = await helper.aNewPad();
|
||||||
|
|
||||||
// make sure pad has at least 3 lines
|
// make sure pad has at least 3 lines
|
||||||
|
|
|
@ -4,7 +4,6 @@ describe('ordered_list.js', function () {
|
||||||
describe('assign ordered list', function () {
|
describe('assign ordered list', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -169,7 +168,6 @@ describe('ordered_list.js', function () {
|
||||||
describe('Pressing Tab in an OL increases and decreases indentation', function () {
|
describe('Pressing Tab in an OL increases and decreases indentation', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -204,7 +202,6 @@ describe('ordered_list.js', function () {
|
||||||
'decreases indentation and bullet / ol formatting', function () {
|
'decreases indentation and bullet / ol formatting', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ describe('Pad modal', function () {
|
||||||
const MODAL_SELECTOR = '#connectivity';
|
const MODAL_SELECTOR = '#connectivity';
|
||||||
|
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
|
|
||||||
// force a "slowcommit" error
|
// force a "slowcommit" error
|
||||||
|
@ -46,7 +45,6 @@ describe('Pad modal', function () {
|
||||||
const MODAL_SELECTOR = '#settings';
|
const MODAL_SELECTOR = '#settings';
|
||||||
|
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
await openSettingsAndWaitForModalToBeVisible();
|
await openSettingsAndWaitForModalToBeVisible();
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
describe('undo button then redo button', function () {
|
describe('undo button then redo button', function () {
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ describe('scrollTo.js', function () {
|
||||||
describe('scrolls to line', function () {
|
describe('scrolls to line', function () {
|
||||||
// create a new pad with URL hash set before each test run
|
// create a new pad with URL hash set before each test run
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad({hash: 'L4'});
|
await helper.aNewPad({hash: 'L4'});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -21,7 +20,6 @@ describe('scrollTo.js', function () {
|
||||||
describe('doesnt break on weird hash input', function () {
|
describe('doesnt break on weird hash input', function () {
|
||||||
// create a new pad with URL hash set before each test run
|
// create a new pad with URL hash set before each test run
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad({hash: '#DEEZ123123NUTS'});
|
await helper.aNewPad({hash: '#DEEZ123123NUTS'});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ describe('select formatting buttons when selection has style applied', function
|
||||||
const FIRST_LINE = 0;
|
const FIRST_LINE = 0;
|
||||||
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
describe('strikethrough button', function () {
|
describe('strikethrough button', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
// deactivated, we need a nice way to get the timeslider, this is ugly
|
// deactivated, we need a nice way to get the timeslider, this is ugly
|
||||||
xdescribe('timeslider button takes you to the timeslider of a pad', function () {
|
xdescribe('timeslider button takes you to the timeslider of a pad', function () {
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ describe('timeslider', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Makes sure the export URIs are as expected when the padID is numeric', async function () {
|
it('Makes sure the export URIs are as expected when the padID is numeric', async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.edit('a\n');
|
await helper.edit('a\n');
|
||||||
|
|
||||||
await helper.gotoTimeslider(1);
|
await helper.gotoTimeslider(1);
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
describe('timeslider', function () {
|
describe('timeslider', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
describe('undo button', function () {
|
describe('undo button', function () {
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ describe('unordered_list.js', function () {
|
||||||
describe('assign unordered list', function () {
|
describe('assign unordered list', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -30,7 +29,6 @@ describe('unordered_list.js', function () {
|
||||||
describe('unassign unordered list', function () {
|
describe('unassign unordered list', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -57,7 +55,6 @@ describe('unordered_list.js', function () {
|
||||||
describe('keep unordered list on enter key', function () {
|
describe('keep unordered list on enter key', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -87,7 +84,6 @@ describe('unordered_list.js', function () {
|
||||||
describe('Pressing Tab in an UL increases and decreases indentation', function () {
|
describe('Pressing Tab in an UL increases and decreases indentation', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -121,7 +117,6 @@ describe('unordered_list.js', function () {
|
||||||
'and bullet / ol formatting', function () {
|
'and bullet / ol formatting', function () {
|
||||||
// create a new pad before each test run
|
// create a new pad before each test run
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ describe('urls', function () {
|
||||||
const txt = () => helper.padInner$('div').first();
|
const txt = () => helper.padInner$('div').first();
|
||||||
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
await helper.aNewPad();
|
await helper.aNewPad();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ describe('Automatic pad reload on Force Reconnect message', function () {
|
||||||
let padId, $originalPadFrame;
|
let padId, $originalPadFrame;
|
||||||
|
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.timeout(60000);
|
|
||||||
padId = await helper.aNewPad();
|
padId = await helper.aNewPad();
|
||||||
|
|
||||||
// enable userdup error to have timer to force reconnect
|
// enable userdup error to have timer to force reconnect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue