Set more test timeouts

This commit is contained in:
JC Brand 2020-04-28 12:19:22 +02:00
parent 82b7e2846a
commit 6cd2fac33c
2 changed files with 7 additions and 2 deletions

View File

@ -2,13 +2,13 @@
const { Promise, $msg, $pres, sizzle } = converse.env;
const u = converse.env.utils;
const originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
const original_timeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
describe("Emojis", function () {
describe("The emoji picker", function () {
beforeEach(() => (jasmine.DEFAULT_TIMEOUT_INTERVAL = 7000));
afterEach(() => (jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout));
afterEach(() => (jasmine.DEFAULT_TIMEOUT_INTERVAL = original_timeout));
it("can be opened by clicking a button in the chat toolbar",
mock.initConverse(

View File

@ -1,8 +1,13 @@
/*global mock */
// See: https://xmpp.org/rfcs/rfc3921.html
const original_timeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
describe("A sent presence stanza", function () {
beforeEach(() => (jasmine.DEFAULT_TIMEOUT_INTERVAL = 7000));
afterEach(() => (jasmine.DEFAULT_TIMEOUT_INTERVAL = original_timeout));
it("includes a entity capabilities node",
mock.initConverse(
['rosterGroupsFetched'], {},