remove custom timeouts

This commit is contained in:
webzwo0i 2021-04-05 10:02:25 +02:00 committed by Richard Hansen
parent af19a010c5
commit 9408d4395f
32 changed files with 0 additions and 46 deletions

View file

@ -5,7 +5,6 @@ describe('All the alphabet works n stuff', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -7,7 +7,6 @@ describe('author of pad edition', function () {
// author 1 creates a new pad with some content (regular lines and lists)
before(async function () {
this.timeout(60000);
const padId = await helper.aNewPad();
// make sure pad has at least 3 lines

View file

@ -3,7 +3,6 @@
describe('bold button', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -3,7 +3,6 @@
describe('change user color', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -87,7 +87,6 @@ describe('Chat messages and UI', function () {
xit('Checks showChat=false URL Parameter hides chat then' +
' when removed it shows chat', async function () {
this.timeout(60000);
// give it a second to save the username on the server side
await new Promise((resolve) => setTimeout(resolve, 3000));

View file

@ -4,7 +4,6 @@ describe('chat-load-messages', function () {
let padName;
it('creates a pad', async function () {
this.timeout(60000);
padName = await helper.aNewPad();
});
@ -15,8 +14,6 @@ describe('chat-load-messages', function () {
const chatInput = chrome$('#chatinput');
const chatText = chrome$('#chattext');
this.timeout(60000);
const messages = 140;
for (let i = 1; i <= messages; i++) {
let num = `${i}`;

View file

@ -3,7 +3,6 @@
describe('clear authorship colors button', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -3,7 +3,6 @@
describe('delete keystroke', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -3,7 +3,6 @@
// WARNING: drag and drop is only simulated on these tests, manual testing might also be necessary
describe('drag and drop', function () {
before(async function () {
this.timeout(60000);
await helper.aNewPad();
await createScriptWithSeveralLines();
});

View file

@ -51,7 +51,6 @@ describe('embed links', function () {
describe('read and write', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});
@ -86,7 +85,6 @@ describe('embed links', function () {
describe('when read only option is set', function () {
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -3,7 +3,6 @@
describe('enter keystroke', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -3,7 +3,6 @@
describe('font select', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -28,8 +28,6 @@ describe('the test helper', function () {
// timeout may or may end up in the code. None the less, we test here
// to catch it if the bug comes up again.
it('clears cookies', async function () {
this.timeout(60000);
// 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('language', 'bar', {expires: 7 /* days */});
@ -95,7 +93,6 @@ describe('the test helper', function () {
});
it('sets pad prefs cookie', async function () {
this.timeout(60000);
await helper.aNewPad({padPrefs: {foo: 'padPrefs test'}});
const {padcookie} = helper.padChrome$.window.require('ep_etherpad-lite/static/js/pad_cookie');
expect(padcookie.getPref('foo')).to.be('padPrefs test');
@ -239,7 +236,6 @@ describe('the test helper', function () {
};
before(async function () {
this.timeout(60000);
await helper.aNewPad();
// create some lines to be used on the tests

View file

@ -499,7 +499,6 @@ describe('importexport.js', function () {
let confirm;
before(async function () {
this.timeout(60000);
await helper.aNewPad();
confirm = helper.padChrome$.window.confirm;
helper.padChrome$.window.confirm = () => true;

View file

@ -2,7 +2,6 @@
describe('import indents functionality', function () {
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -3,7 +3,6 @@
describe('indentation button', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -3,7 +3,6 @@
describe('italic some text', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -6,7 +6,6 @@ describe('Language select and change', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -3,7 +3,6 @@
describe('author of pad edition', function () {
// author 1 creates a new pad with some content (regular lines and lists)
before(async function () {
this.timeout(60000);
const padId = await helper.aNewPad();
// make sure pad has at least 3 lines

View file

@ -4,7 +4,6 @@ describe('ordered_list.js', function () {
describe('assign ordered list', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});
@ -169,7 +168,6 @@ describe('ordered_list.js', function () {
describe('Pressing Tab in an OL increases and decreases indentation', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});
@ -204,7 +202,6 @@ describe('ordered_list.js', function () {
'decreases indentation and bullet / ol formatting', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -5,7 +5,6 @@ describe('Pad modal', function () {
const MODAL_SELECTOR = '#connectivity';
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
// force a "slowcommit" error
@ -46,7 +45,6 @@ describe('Pad modal', function () {
const MODAL_SELECTOR = '#settings';
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
await openSettingsAndWaitForModalToBeVisible();
});

View file

@ -2,7 +2,6 @@
describe('undo button then redo button', function () {
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -4,7 +4,6 @@ describe('scrollTo.js', function () {
describe('scrolls to line', function () {
// create a new pad with URL hash set before each test run
before(async function () {
this.timeout(60000);
await helper.aNewPad({hash: 'L4'});
});
@ -21,7 +20,6 @@ describe('scrollTo.js', function () {
describe('doesnt break on weird hash input', function () {
// create a new pad with URL hash set before each test run
before(async function () {
this.timeout(60000);
await helper.aNewPad({hash: '#DEEZ123123NUTS'});
});

View file

@ -6,7 +6,6 @@ describe('select formatting buttons when selection has style applied', function
const FIRST_LINE = 0;
before(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -3,7 +3,6 @@
describe('strikethrough button', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -3,7 +3,6 @@
// 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 () {
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -9,7 +9,6 @@ describe('timeslider', 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.gotoTimeslider(1);

View file

@ -3,7 +3,6 @@
describe('timeslider', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -2,7 +2,6 @@
describe('undo button', function () {
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -4,7 +4,6 @@ describe('unordered_list.js', function () {
describe('assign unordered list', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});
@ -30,7 +29,6 @@ describe('unordered_list.js', function () {
describe('unassign unordered list', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});
@ -57,7 +55,6 @@ describe('unordered_list.js', function () {
describe('keep unordered list on enter key', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});
@ -87,7 +84,6 @@ describe('unordered_list.js', function () {
describe('Pressing Tab in an UL increases and decreases indentation', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});
@ -121,7 +117,6 @@ describe('unordered_list.js', function () {
'and bullet / ol formatting', function () {
// create a new pad before each test run
beforeEach(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -6,7 +6,6 @@ describe('urls', function () {
const txt = () => helper.padInner$('div').first();
before(async function () {
this.timeout(60000);
await helper.aNewPad();
});

View file

@ -4,7 +4,6 @@ describe('Automatic pad reload on Force Reconnect message', function () {
let padId, $originalPadFrame;
beforeEach(async function () {
this.timeout(60000);
padId = await helper.aNewPad();
// enable userdup error to have timer to force reconnect