Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump owl version #2252

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"xmlSelfClosingSpace": false
},
"dependencies": {
"@odoo/owl": "2.0.3",
"@odoo/owl": "2.0.9",
"bootstrap": "^5.1.3"
},
"jest": {
Expand Down
2 changes: 1 addition & 1 deletion tests/components/__snapshots__/context_menu.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Context Menu context menu simple rendering 1`] = `
exports[`Context Menu integration tests context menu simple rendering 1`] = `
<div
class="o-menu"
>
Expand Down
14 changes: 1 addition & 13 deletions tests/components/autocomplete_dropdown.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { App } from "@odoo/owl";
import { Spreadsheet } from "../../src";
import { args, functionRegistry } from "../../src/functions/index";
import { Model } from "../../src/model";
import { selectCell } from "../test_helpers/commands_helpers";
import { clickCell } from "../test_helpers/dom_helper";
import { getCellText } from "../test_helpers/getters_helpers";
import {
clearFunctions,
makeTestFixture,
mountSpreadsheet,
nextTick,
restoreDefaultFunctions,
Expand All @@ -21,8 +18,6 @@ jest.mock("../../src/components/composer/content_editable_helper", () =>
let model: Model;
let composerEl: Element;
let fixture: HTMLElement;
let parent: Spreadsheet;
let app: App;
let cehMock: ContentEditableHelper;

async function typeInComposerGrid(text: string, fromScratch: boolean = true) {
Expand All @@ -34,21 +29,14 @@ async function typeInComposerGrid(text: string, fromScratch: boolean = true) {
}

beforeEach(async () => {
fixture = makeTestFixture();
({ app, parent } = await mountSpreadsheet(fixture));
model = parent.model;
({ model, fixture } = await mountSpreadsheet());

// start composition
fixture.querySelector(".o-grid")!.dispatchEvent(new KeyboardEvent("keydown", { key: "Enter" }));
await nextTick();
composerEl = fixture.querySelector(".o-grid div.o-composer")!;
});

afterEach(() => {
fixture.remove();
app.destroy();
});

describe("Functions autocomplete", () => {
beforeEach(() => {
clearFunctions();
Expand Down
14 changes: 3 additions & 11 deletions tests/components/autofill.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { App, Component, xml } from "@odoo/owl";
import { Component, xml } from "@odoo/owl";
import { Spreadsheet } from "../../src";
import {
DEFAULT_CELL_HEIGHT,
Expand All @@ -9,22 +9,14 @@ import {
import { Model } from "../../src/model";
import { setCellContent, setSelection, setViewportOffset } from "../test_helpers/commands_helpers";
import { clickCell, triggerMouseEvent } from "../test_helpers/dom_helper";
import { makeTestFixture, mountSpreadsheet, nextTick, spyDispatch } from "../test_helpers/helpers";
import { mountSpreadsheet, nextTick, spyDispatch } from "../test_helpers/helpers";

let fixture: HTMLElement;
let model: Model;
let parent: Spreadsheet;
let app: App;

beforeEach(async () => {
fixture = makeTestFixture();
({ app, parent } = await mountSpreadsheet(fixture));
model = parent.model;
});

afterEach(() => {
fixture.remove();
app.destroy();
({ parent, model, fixture } = await mountSpreadsheet());
});

describe("Autofill component", () => {
Expand Down
Loading