Skip to content

Commit

Permalink
Fixed lint for #6966
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Sep 18, 2023
1 parent 3c9df59 commit 61fb232
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 52 deletions.
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/boolean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const theme = "defaultV2";
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});

test("Check boolean question", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
Expand Down
12 changes: 6 additions & 6 deletions visualRegressionTests/tests/defaultV2/brandinfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ const json = {
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
await initSurvey(framework, json);
await ClientFunction(() => {
document.body.focus();
})();
});
await applyTheme(theme);
await initSurvey(framework, json);
await ClientFunction(() => {
document.body.focus();
})();
});
test("Check brand info banner", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
Expand Down
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/buttongroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const registerButtongroup = ClientFunction((framework) => {
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});
test("Check dropdown question", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
Expand Down
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/complex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ const json = {
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});
test("Check complex question", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1800);
Expand Down
12 changes: 6 additions & 6 deletions visualRegressionTests/tests/defaultV2/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ const json = {
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
await initSurvey(framework, json);
await ClientFunction(() => {
document.body.focus();
})();
});
await applyTheme(theme);
await initSurvey(framework, json);
await ClientFunction(() => {
document.body.focus();
})();
});

test("Check file question", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
Expand Down
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const theme = "defaultV2";
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});
test("Check html question", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
Expand Down
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const theme = "defaultV2";
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});
test("Check image question", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
Expand Down
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/multipletext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const theme = "defaultV2";
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});
test("Check multipletext question", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
Expand Down
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const theme = "defaultV2";
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});

test("Check oridinary panel", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
Expand Down
36 changes: 18 additions & 18 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
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/question.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const theme = "defaultV2";
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});

test("Check question without title", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
Expand Down
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/rating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const theme = "defaultV2";
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});
test("Check rating question", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
Expand Down
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/responsiveness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const theme = "defaultV2";
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});
test("Check simple question in small screen", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(600, 1080);
Expand Down
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/selectbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const theme = "defaultV2";
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});
test("Check checkbox question", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
Expand Down

0 comments on commit 61fb232

Please sign in to comment.