mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
The disableTask options is renamed to enableTaskMiddleware, which defaults to false. This caused failure in the dom mutation breakpoint test, because we weren't waiting until the call to the server to remove the breakpoints were done. It wasn't an issue before because this was handle by the task middleware, which catch rejections. We fix this by only dispatching the action when the breakpoints are indeed removed. We also tweak to waitForAllElements helper to be able to wait for a specific count of element (it used to resolve when there was at least the specified count, which is not ideal when trying to assert removal of an element). Differential Revision: https://phabricator.services.mozilla.com/D47584
16 lines
478 B
JavaScript
16 lines
478 B
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
"use strict";
|
|
|
|
const createStore = require("../shared/redux/create-store");
|
|
const reducers = require("./reducers");
|
|
|
|
module.exports = () =>
|
|
createStore(reducers, {
|
|
enableTaskMiddleware: true,
|
|
// Uncomment this for logging in tests.
|
|
// shouldLog: true,
|
|
});
|