[FIX] l10n_fr_pos_cert: fix Chrome mount in QUnit tests
In the QUnit tests, the Chrome is mounted with the popup services mocked but the globalState in the French localization for the PoS is using it. This led to error when Chrome tried to load a popup. The popup service is now correctly mounted in the QUnit tests of the PoS. closes odoo/odoo#134736 Runbot-bug-id: 23080 X-original-commit: 53143a48e4804415c5e8c52c8e6f6cdbdafab8a8 Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com> Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
This commit is contained in:
@@ -8,6 +8,7 @@ import { numberBufferService } from "@point_of_sale/app/utils/number_buffer_serv
|
||||
import { barcodeReaderService } from "@point_of_sale/app/barcode/barcode_reader_service";
|
||||
import { EventBus } from "@odoo/owl";
|
||||
import { uiService } from "@web/core/ui/ui_service";
|
||||
import { popupService } from "@point_of_sale/app/popup/popup_service";
|
||||
|
||||
QUnit.module("Chrome", {
|
||||
beforeEach() {
|
||||
@@ -17,6 +18,7 @@ QUnit.module("Chrome", {
|
||||
.add("number_buffer", numberBufferService)
|
||||
.add("barcode_reader", barcodeReaderService)
|
||||
.add("ui", uiService)
|
||||
.add("popup", popupService)
|
||||
.add("barcode", {
|
||||
start() {
|
||||
return { bus: new EventBus() };
|
||||
@@ -28,14 +30,7 @@ QUnit.module("Chrome", {
|
||||
},
|
||||
});
|
||||
|
||||
for (const service of [
|
||||
"popup",
|
||||
"hardware_proxy",
|
||||
"debug",
|
||||
"pos_notification",
|
||||
"sound",
|
||||
"action",
|
||||
]) {
|
||||
for (const service of ["hardware_proxy", "debug", "pos_notification", "sound", "action"]) {
|
||||
registry.category("services").add(service, {
|
||||
start() {
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user