Skip to content

Commit

Permalink
Add vr test
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Oct 22, 2024
1 parent 4874d6a commit b39f1cc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion visualRegressionTests/tests/designer/pg-editors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,4 +835,17 @@ test("popup overlay in property grid", async (t) => {

await takeElementScreenshot("pg-overlay-popup.png", getVisibleElement(".sv-popup .sv-popup__container"), t, comparer);
});
});
});
fixture`${title}`.page`${url}`.beforeEach(async (t) => { });
test("Check creator theme settings", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
await ClientFunction(() => {
(window as any).updateCreatorModel({ showCreatorThemeSettings: true }, {});
(window as any).creator.showOneCategoryInPropertyGrid = true;
})();
await t.drag(Selector(".svc-resizer-west"), -60, 0);
await t.click(Selector(".svc-sidebar-tabs__bottom-container .svc-menu-action__button"));
await takeElementScreenshot("creator-theme-settings.png", getVisibleElement(".spg-body"), t, comparer);
});
});

0 comments on commit b39f1cc

Please sign in to comment.