Skip to content

Commit

Permalink
#6068 v-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
novikov82 committed Nov 14, 2024
1 parent bf862e5 commit 087678a
Show file tree
Hide file tree
Showing 5 changed files with 24 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.
11 changes: 11 additions & 0 deletions visualRegressionTests-V2/tests/designer/pg-button-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,15 @@ test("Check section", async (t) => {
await t.hover(Selector("span").withExactText("Bottom").filterVisible());
await takeElementScreenshot("button-group-unselected-hovered.png", buttongroup, t, comparer);
});
});
test("Check long texts", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await ClientFunction(() => window["creator"].showOneCategoryInPropertyGrid = true)();
await t.resizeWindow(1920, 1080);

await t.click(Selector('[title="Logo in the Survey Header"]'));
await t.drag(Selector(".svc-resizer-west"), 200, 0);
const buttongroup = Selector('[data-name="logoFit"] .spg-button-group').filterVisible();
await takeElementScreenshot("button-group-ellipsis.png", buttongroup, t, comparer);
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion visualRegressionTests/tests/designer/pg-button-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const title = "Button group Screenshot";
fixture`${title}`.page`${url}`.beforeEach(async (t) => {
});

test("Check section", async (t) => {
test("Check styles", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await ClientFunction(() => window["creator"].showOneCategoryInPropertyGrid = true)();
await t.resizeWindow(1920, 1080);
Expand All @@ -23,4 +23,16 @@ test("Check section", async (t) => {
await t.hover(Selector("span").withExactText("Bottom").filterVisible());
await takeElementScreenshot("button-group-unselected-hovered.png", buttongroup, t, comparer);
});
});

test("Check long texts", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await ClientFunction(() => window["creator"].showOneCategoryInPropertyGrid = true)();
await t.resizeWindow(1920, 1080);

await t.click(Selector('[title="Logo in the Survey Header"]'));
await t.drag(Selector(".svc-resizer-west"), 200, 0);
const buttongroup = Selector('[data-name="logoFit"] .spg-button-group').filterVisible();
await takeElementScreenshot("button-group-ellipsis.png", buttongroup, t, comparer);
});
});

0 comments on commit 087678a

Please sign in to comment.