tests: frontend test button increase timeouts

pull/4799/head
John McLear 2021-02-16 16:23:11 +00:00
parent b06e47c06e
commit 2e92e8e9d0
1 changed files with 3 additions and 3 deletions

View File

@ -44,14 +44,14 @@ describe('select formatting buttons when selection has style applied', function
const testIfFormattingButtonIsDeselected = function (style) { const testIfFormattingButtonIsDeselected = function (style) {
it(`deselects the ${style} button`, function (done) { it(`deselects the ${style} button`, function (done) {
this.timeout(50); this.timeout(100);
helper.waitFor(() => isButtonSelected(style) === false).done(done); helper.waitFor(() => isButtonSelected(style) === false).done(done);
}); });
}; };
const testIfFormattingButtonIsSelected = function (style) { const testIfFormattingButtonIsSelected = function (style) {
it(`selects the ${style} button`, function (done) { it(`selects the ${style} button`, function (done) {
this.timeout(50); this.timeout(100);
helper.waitFor(() => isButtonSelected(style)).done(done); helper.waitFor(() => isButtonSelected(style)).done(done);
}); });
}; };
@ -131,7 +131,7 @@ describe('select formatting buttons when selection has style applied', function
context('when user applies a style and the selection does not change', function () { context('when user applies a style and the selection does not change', function () {
it('selects the style button', async function () { it('selects the style button', async function () {
this.timeout(50); this.timeout(100);
const style = STYLES[0]; // italic const style = STYLES[0]; // italic
applyStyleOnLine(style, FIRST_LINE); applyStyleOnLine(style, FIRST_LINE);
await helper.waitForPromise(() => isButtonSelected(style) === true); await helper.waitForPromise(() => isButtonSelected(style) === true);