add different view types

This commit is contained in:
Géry Debongnie
2019-03-06 17:36:22 +01:00
parent 4fe7745a8a
commit 4b02b74440
13 changed files with 124 additions and 17 deletions
+14
View File
@@ -76,3 +76,17 @@ test("clicks on client action with invalid key => empty widget is rendered + war
expect(fixture.innerHTML).toMatchSnapshot();
});
test("open act window action with invalid viewtype => empty widget is rendered + warning", async () => {
const data = await makeTestData();
data.viewRegistry = new Registry();
const testEnv = makeTestEnv(data);
const root = new Root(testEnv, testEnv.store);
await root.mount(fixture);
// note menu item
await (<any>document.querySelector('[data-menu="205"]')).click();
await helpers.nextTick();
expect(fixture.innerHTML).toMatchSnapshot();
});