Skip to content

Commit

Permalink
#6879 - test both cases
Browse files Browse the repository at this point in the history
  • Loading branch information
novikov82 committed Sep 7, 2023
1 parent f8bfc76 commit 6d323db
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 31 additions & 1 deletion visualRegressionTests/tests/defaultV2/responsiveness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ frameworks.forEach(framework => {
{
"type": "matrix",
"name": "Quality",
"alternateRows": true,
"title": "Please indicate if you agree or disagree with the following statements",
"columns": ["Strongly Disagree",
"Disagree",
Expand All @@ -215,6 +214,37 @@ frameworks.forEach(framework => {
await takeElementScreenshot("responsiveness-matrix.png", Selector(".sd-question"), t, comparer);
});
});
test("Check matrix on small screen - alt rows", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(600, 1080);
await initSurvey(framework, {
showQuestionNumbers: "off",
elements: [
{
"type": "matrix",
"name": "Quality",
"alternateRows": true,
"title": "Please indicate if you agree or disagree with the following statements",
"columns": ["Strongly Disagree",
"Disagree",
"Neutral",
"Agree",
"Strongly Agree",
],
"rows": [
"Product is affordable",
"Product does what it claims",
"Product is better than other products on the market"
]
}
]
});
await ClientFunction(() => {
document.body.focus();
})();
await takeElementScreenshot("responsiveness-matrix-alt-rows.png", Selector(".sd-question"), t, comparer);
});
});
test("Check matrixdynamic on small screen", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(600, 1080);
Expand Down

0 comments on commit 6d323db

Please sign in to comment.