more realistic timeouts for slower devices

This commit is contained in:
John McLear 2021-01-27 05:15:17 +00:00
parent edf1dabe65
commit 88d99c0d60
6 changed files with 14 additions and 16 deletions

View file

@ -7,7 +7,7 @@ describe('change username value', function () {
}); });
it('Remembers the user name after a refresh', async function () { it('Remembers the user name after a refresh', async function () {
this.timeout(100); this.timeout(200);
helper.toggleUserList(); helper.toggleUserList();
helper.setUserName('😃'); helper.setUserName('😃');
@ -22,7 +22,7 @@ describe('change username value', function () {
}); });
it('Own user name is shown when you enter a chat', async function () { it('Own user name is shown when you enter a chat', async function () {
this.timeout(100); this.timeout(200);
helper.toggleUserList(); helper.toggleUserList();
helper.setUserName('😃'); helper.setUserName('😃');

View file

@ -7,7 +7,7 @@ describe('Chat messages and UI', function () {
}); });
it('opens chat, sends a message, makes sure it exists and hides chat', async function () { it('opens chat, sends a message, makes sure it exists and hides chat', async function () {
this.timeout(100); this.timeout(1000);
const chatValue = 'JohnMcLear'; const chatValue = 'JohnMcLear';
await helper.showChat(); await helper.showChat();
@ -30,7 +30,7 @@ describe('Chat messages and UI', function () {
}); });
it("makes sure that an empty message can't be sent", async function () { it("makes sure that an empty message can't be sent", async function () {
this.timeout(100); this.timeout(1000);
const chatValue = 'mluto'; const chatValue = 'mluto';
await helper.showChat(); await helper.showChat();
@ -50,7 +50,7 @@ describe('Chat messages and UI', function () {
}); });
it('makes chat stick to right side of the screen via settings, remove sticky via settings, close it', async function () { it('makes chat stick to right side of the screen via settings, remove sticky via settings, close it', async function () {
this.timeout(200); this.timeout(1000);
await helper.showSettings(); await helper.showSettings();
await helper.enableStickyChatviaSettings(); await helper.enableStickyChatviaSettings();
@ -67,7 +67,7 @@ describe('Chat messages and UI', function () {
}); });
it('makes chat stick to right side of the screen via icon on the top right, remove sticky via icon, close it', async function () { it('makes chat stick to right side of the screen via icon on the top right, remove sticky via icon, close it', async function () {
this.timeout(200); this.timeout(1000);
await helper.showChat(); await helper.showChat();
await helper.enableStickyChatviaIcon(); await helper.enableStickyChatviaIcon();

View file

@ -16,8 +16,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}`;

View file

@ -36,7 +36,7 @@ describe('indentation button', function () {
}); });
it('keeps the indent on enter for the new line', function (done) { it('keeps the indent on enter for the new line', function (done) {
this.timeout(150); this.timeout(500);
const inner$ = helper.padInner$; const inner$ = helper.padInner$;
const chrome$ = helper.padChrome$; const chrome$ = helper.padChrome$;
@ -61,7 +61,7 @@ describe('indentation button', function () {
}); });
it("indents text with spaces on enter if previous line ends with ':', '[', '(', or '{'", function (done) { it("indents text with spaces on enter if previous line ends with ':', '[', '(', or '{'", function (done) {
this.timeout(150); this.timeout(500);
const inner$ = helper.padInner$; const inner$ = helper.padInner$;
// type a bit, make a line break and type again // type a bit, make a line break and type again
@ -112,7 +112,7 @@ describe('indentation button', function () {
}); });
it("appends indentation to the indent of previous line if previous line ends with ':', '[', '(', or '{'", function (done) { it("appends indentation to the indent of previous line if previous line ends with ':', '[', '(', or '{'", function (done) {
this.timeout(150); this.timeout(500);
const inner$ = helper.padInner$; const inner$ = helper.padInner$;
// type a bit, make a line break and type again // type a bit, make a line break and type again
@ -137,7 +137,7 @@ describe('indentation button', function () {
}); });
it("issue #2772 shows '*' when multiple indented lines receive a style and are outdented", function (done) { it("issue #2772 shows '*' when multiple indented lines receive a style and are outdented", function (done) {
this.timeout(150); this.timeout(500);
const inner$ = helper.padInner$; const inner$ = helper.padInner$;
const chrome$ = helper.padChrome$; const chrome$ = helper.padChrome$;

View file

@ -16,7 +16,7 @@ describe('Language select and change', function () {
// Destroy language cookies // Destroy language cookies
it('makes text german', function (done) { it('makes text german', function (done) {
this.timeout(100); this.timeout(200);
const chrome$ = helper.padChrome$; const chrome$ = helper.padChrome$;
// click on the settings button to make settings visible // click on the settings button to make settings visible
@ -46,7 +46,7 @@ describe('Language select and change', function () {
}); });
it('makes text English', function (done) { it('makes text English', function (done) {
this.timeout(100); this.timeout(200);
const chrome$ = helper.padChrome$; const chrome$ = helper.padChrome$;
// click on the settings button to make settings visible // click on the settings button to make settings visible

View file

@ -7,7 +7,7 @@ describe('undo button', function () {
}); });
it('undo some typing by clicking undo button', function (done) { it('undo some typing by clicking undo button', function (done) {
this.timeout(100); this.timeout(150);
const inner$ = helper.padInner$; const inner$ = helper.padInner$;
const chrome$ = helper.padChrome$; const chrome$ = helper.padChrome$;
@ -32,7 +32,7 @@ describe('undo button', function () {
}); });
it('undo some typing using a keypress', function (done) { it('undo some typing using a keypress', function (done) {
this.timeout(100); this.timeout(150);
const inner$ = helper.padInner$; const inner$ = helper.padInner$;
// get the first text element inside the editable space // get the first text element inside the editable space