Skip to content

Commit

Permalink
Work for #6966 - warnings&erros related to ResizeObserver - removed e…
Browse files Browse the repository at this point in the history
…xplicitErrorHandler
  • Loading branch information
tsv2013 committed Sep 18, 2023
1 parent 7b83ab2 commit 751eab8
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions visualRegressionTests/tests/defaultV2/paneldynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,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) => {

Expand Down Expand Up @@ -94,16 +94,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);
Expand Down Expand Up @@ -152,9 +152,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);
Expand Down Expand Up @@ -259,9 +259,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);
Expand Down Expand Up @@ -365,7 +365,7 @@ frameworks.forEach(framework => {
isRequired: true,
startWithNewLine: false,
visibleIf:
"{panel.isalive} = 'No' and {panel.causeofdeathknown} = 'Yes'"
"{panel.isalive} = 'No' and {panel.causeofdeathknown} = 'Yes'"
}
],
panelCount: 1,
Expand All @@ -378,11 +378,10 @@ frameworks.forEach(framework => {
};
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await explicitErrorHandler();
await applyTheme(theme);
await initSurvey(framework, json);
});
test("Paneldynamic without buttons", async (t)=>{
await applyTheme(theme);
await initSurvey(framework, json);
});
test("Paneldynamic without buttons", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1280, 900);
await ClientFunction(() => {
Expand Down

0 comments on commit 751eab8

Please sign in to comment.