mirror of
https://github.com/bringout/oca-ocb-report.git
synced 2026-04-22 11:22:02 +02:00
19.0 vanilla
This commit is contained in:
parent
62d197ac8b
commit
184bb0e321
667 changed files with 691406 additions and 239886 deletions
|
|
@ -0,0 +1,35 @@
|
|||
import { describe, expect, test } from "@odoo/hoot";
|
||||
import { mountSpreadsheet } from "@spreadsheet/../tests/helpers/ui";
|
||||
import { createModelWithDataSource } from "@spreadsheet/../tests/helpers/model";
|
||||
import { animationFrame } from "@odoo/hoot-mock";
|
||||
import { press } from "@odoo/hoot-dom";
|
||||
import { defineSpreadsheetModels } from "@spreadsheet/../tests/helpers/data";
|
||||
import { WebClient } from "@web/webclient/webclient";
|
||||
import { mountWithCleanup } from "@web/../tests/web_test_helpers";
|
||||
|
||||
const serverData = /** @type {ServerData} */ ({});
|
||||
|
||||
describe.current.tags("desktop");
|
||||
defineSpreadsheetModels();
|
||||
|
||||
test("Command palette is active on spreadsheet", async function () {
|
||||
await mountWithCleanup(WebClient);
|
||||
const { model } = await createModelWithDataSource({
|
||||
serverData,
|
||||
});
|
||||
await mountSpreadsheet(model);
|
||||
await press(["control", "k"]);
|
||||
await animationFrame();
|
||||
expect(".o_command_palette").toHaveCount(1);
|
||||
});
|
||||
|
||||
test("First item of command palette is insert link", async function () {
|
||||
await mountWithCleanup(WebClient);
|
||||
const { model } = await createModelWithDataSource({
|
||||
serverData,
|
||||
});
|
||||
await mountSpreadsheet(model);
|
||||
await press(["control", "k"]);
|
||||
await animationFrame();
|
||||
expect(".o_command_name:first").toHaveText("Insert / Link");
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue