Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
novikov82 committed Aug 17, 2023
2 parents 87ba5cb + 6729e60 commit 7fdc45f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/defaultV2-theme/blocks/sd-element.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@

.sv-string-viewer {
white-space: normal;
&::before {
content: "\200B";
}
}
}

Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions visualRegressionTests/tests/defaultV2/question.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,26 @@ frameworks.forEach(framework => {
});
});

test("Check question with empty title", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
await initSurvey(framework, {
questions: [
{
type: "text",
title: " ",
name: "question",
minWidth: "708px",
maxWidth: "708px",
width: "708px",
},
]
});
const questionRoot = Selector(".sd-question");
await resetFocusToBody();
await takeElementScreenshot("question-empty-title.png", questionRoot, t, comparer);
});
});
test("Check question num", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
Expand Down

0 comments on commit 7fdc45f

Please sign in to comment.