From 010743aca88d3dde232629d2cc2512886ffd433e Mon Sep 17 00:00:00 2001 From: tsv2013 Date: Thu, 28 Dec 2023 15:21:55 +0300 Subject: [PATCH 1/2] Fixed #7596 - Dynamic panel has wrong focus for tabs --- .../blocks/sd-paneldynamic.scss | 4 +- .../etalons/paneldynamic-focused-tab.png | Bin 0 -> 10239 bytes .../tests/defaultV2/paneldynamic.ts | 79 ++++++++++++------ 3 files changed, 58 insertions(+), 25 deletions(-) create mode 100644 visualRegressionTests/tests/defaultV2/etalons/paneldynamic-focused-tab.png diff --git a/src/defaultV2-theme/blocks/sd-paneldynamic.scss b/src/defaultV2-theme/blocks/sd-paneldynamic.scss index 5419ae2c38..bbd22fb8f2 100644 --- a/src/defaultV2-theme/blocks/sd-paneldynamic.scss +++ b/src/defaultV2-theme/blocks/sd-paneldynamic.scss @@ -197,7 +197,9 @@ overflow-x: hidden; white-space: nowrap; - &:hover { + &:hover, + &:focus-visible { + outline: none; box-shadow: inset 0px -2px 0px $primary; } } diff --git a/visualRegressionTests/tests/defaultV2/etalons/paneldynamic-focused-tab.png b/visualRegressionTests/tests/defaultV2/etalons/paneldynamic-focused-tab.png new file mode 100644 index 0000000000000000000000000000000000000000..83f8ee87ab275309e681619fbadd0c23c7edf201 GIT binary patch literal 10239 zcmdsdWmKEn*C(Z=f|N^<7H^?g8=$z8wpeku;uea#g#zVri@O9X?i$>sEe?S|aHl|m zhvFJCp?7Ajcdhv_UuMmk|N9}yd7g95vvYoXpS}0_?I%o4MUI4!h7b=Ak3{~1v<4m? z{ueyFJ6|5&$K8=&8SlXT;LA(D)AGKvOXH8g!((f@z1sUh>I^vv+`QVqTI&h9e8nAg zSy;%jG}EEg(%r*CXCKxxZfTRO2af6+`P*tlVQ=cw20jv2?Y>c0&gXDE!tN|r&^rG$ zGbc*SGpyFOsZ1Fx-PP>;h?6E-uV#?{Q*83zZ8N$)T!9OCH(fderHew6%WyVr09A-a z357ZZ5BT^Kt`YxI{&M9R4bAHBUtQfUu+h=K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AGxQDgM0shHE4y8-v3(vH~(KZURczEWV|*qf~Hj^x?_Ns7P17H~ss60F)MU AFaQ7m literal 0 HcmV?d00001 diff --git a/visualRegressionTests/tests/defaultV2/paneldynamic.ts b/visualRegressionTests/tests/defaultV2/paneldynamic.ts index 66e2f03dd1..674590685f 100644 --- a/visualRegressionTests/tests/defaultV2/paneldynamic.ts +++ b/visualRegressionTests/tests/defaultV2/paneldynamic.ts @@ -53,9 +53,9 @@ const theme = "defaultV2"; frameworks.forEach(framework => { fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json); - }); + await applyTheme(theme); + await initSurvey(framework, json); + }); test("Paneldynamic progressTop mode", async (t) => { await wrapVisualTest(t, async (t, comparer) => { @@ -95,16 +95,16 @@ frameworks.forEach(framework => { frameworks.forEach(framework => { fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json, { - onGetPanelFooterActions: (_, opt) => { - opt.actions.push({ - title: "Duplicate", - action: () => { } - }); - } + await applyTheme(theme); + await initSurvey(framework, json, { + onGetPanelFooterActions: (_, opt) => { + opt.actions.push({ + title: "Duplicate", + action: () => { } + }); + } + }); }); - }); test("Check paneldynamic with custom actions", async (t) => { await wrapVisualTest(t, async (t, comparer) => { await t.resizeWindow(1920, 1080); @@ -153,9 +153,9 @@ frameworks.forEach(framework => { }; fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json); - }); + await applyTheme(theme); + await initSurvey(framework, json); + }); test("Two Paneldynamics in one row", async (t) => { await wrapVisualTest(t, async (t, comparer) => { await t.resizeWindow(1920, 1920); @@ -260,9 +260,9 @@ frameworks.forEach(framework => { }; fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json); - }); + await applyTheme(theme); + await initSurvey(framework, json); + }); test("Navigation panel by tabs", async (t) => { await wrapVisualTest(t, async (t, comparer) => { await t.resizeWindow(1280, 900); @@ -379,9 +379,9 @@ frameworks.forEach(framework => { }; fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json); - }); + await applyTheme(theme); + await initSurvey(framework, json); + }); test("Paneldynamic without buttons", async (t) => { await wrapVisualTest(t, async (t, comparer) => { await t.resizeWindow(1280, 900); @@ -416,9 +416,9 @@ frameworks.forEach(framework => { }; fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json); - }); + await applyTheme(theme); + await initSurvey(framework, json); + }); test("Paneldynamic confirm dialog", async (t) => { await wrapVisualTest(t, async (t, comparer) => { await t.resizeWindow(1280, 900); @@ -427,4 +427,35 @@ frameworks.forEach(framework => { await takeElementScreenshot("paneldynamic-confirm-dialog", Selector(".sv-popup--confirm-delete .sv-popup__body-content"), t, comparer); }); }); + test("tab focused state for panel dynamic", async (t) => { + await wrapVisualTest(t, async (t, comparer) => { + await t.resizeWindow(1280, 900); + await initSurvey(framework, { + "pages": [ + { + "name": "page1", + "elements": [ + { + "type": "paneldynamic", + "name": "question1", + "templateElements": [ + { + "type": "text", + "name": "question2" + } + ], + "panelCount": 4, + "minPanelCount": 4, + "renderMode": "tab" + } + ] + } + ] + }); + await t + .click(Selector("button[title='Panel 1']")) + .pressKey("tab"); + await takeElementScreenshot("paneldynamic-focused-tab", Selector(".sd-question--paneldynamic"), t, comparer); + }); + }); }); From dfb1b196f699776e61c67934e409f4a985858c0c Mon Sep 17 00:00:00 2001 From: tsv2013 Date: Thu, 28 Dec 2023 15:27:00 +0300 Subject: [PATCH 2/2] Fixed eslint --- .../tests/defaultV2/paneldynamic.ts | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/visualRegressionTests/tests/defaultV2/paneldynamic.ts b/visualRegressionTests/tests/defaultV2/paneldynamic.ts index 674590685f..686c35460c 100644 --- a/visualRegressionTests/tests/defaultV2/paneldynamic.ts +++ b/visualRegressionTests/tests/defaultV2/paneldynamic.ts @@ -53,9 +53,9 @@ const theme = "defaultV2"; frameworks.forEach(framework => { fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json); - }); + await applyTheme(theme); + await initSurvey(framework, json); + }); test("Paneldynamic progressTop mode", async (t) => { await wrapVisualTest(t, async (t, comparer) => { @@ -95,16 +95,16 @@ frameworks.forEach(framework => { frameworks.forEach(framework => { fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json, { - onGetPanelFooterActions: (_, opt) => { - opt.actions.push({ - title: "Duplicate", - action: () => { } - }); - } - }); + await applyTheme(theme); + await initSurvey(framework, json, { + onGetPanelFooterActions: (_, opt) => { + opt.actions.push({ + title: "Duplicate", + action: () => { } + }); + } }); + }); test("Check paneldynamic with custom actions", async (t) => { await wrapVisualTest(t, async (t, comparer) => { await t.resizeWindow(1920, 1080); @@ -153,9 +153,9 @@ frameworks.forEach(framework => { }; fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json); - }); + await applyTheme(theme); + await initSurvey(framework, json); + }); test("Two Paneldynamics in one row", async (t) => { await wrapVisualTest(t, async (t, comparer) => { await t.resizeWindow(1920, 1920); @@ -260,9 +260,9 @@ frameworks.forEach(framework => { }; fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json); - }); + await applyTheme(theme); + await initSurvey(framework, json); + }); test("Navigation panel by tabs", async (t) => { await wrapVisualTest(t, async (t, comparer) => { await t.resizeWindow(1280, 900); @@ -379,9 +379,9 @@ frameworks.forEach(framework => { }; fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json); - }); + await applyTheme(theme); + await initSurvey(framework, json); + }); test("Paneldynamic without buttons", async (t) => { await wrapVisualTest(t, async (t, comparer) => { await t.resizeWindow(1280, 900); @@ -416,9 +416,9 @@ frameworks.forEach(framework => { }; fixture`${framework} ${title} ${theme}` .page`${url_test}${theme}/${framework}`.beforeEach(async t => { - await applyTheme(theme); - await initSurvey(framework, json); - }); + await applyTheme(theme); + await initSurvey(framework, json); + }); test("Paneldynamic confirm dialog", async (t) => { await wrapVisualTest(t, async (t, comparer) => { await t.resizeWindow(1280, 900);