Skip to content

Commit

Permalink
work for preact #8245
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Jun 4, 2024
1 parent 8a7311d commit 441d188
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/jquery-ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
<head>
<title>Welcome to JQuery</title>

<script src="https://cdnjs.cloudflare.com/ajax/libs/preact/10.22.0/preact.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />

<!-- <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css"> -->
<link rel="stylesheet" href="../../build/survey-jquery-ui/survey.css" />
<!-- <link rel="stylesheet" href="../../build/survey-jquery-ui/survey.css" /> -->
<!-- <link rel="stylesheet" href="../../build/survey-jquery-ui/modern.css" /> -->
<link rel="stylesheet" href="../../build/survey-jquery-ui/defaultV2.css" />
<script src="../../build/survey-core/survey.core.js"></script>
Expand Down
9 changes: 8 additions & 1 deletion testCafe/survey/survey.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ frameworks.forEach((framework) => {
})();
await t.expect(Selector("span").withText("question1").visible).ok();
});
});

frameworks.forEach((framework) => {
fixture`${framework} ${title}`
.page`${url_test}${themeName}/${framework}`.beforeEach(async (t) => {
await t.resizeWindow(1600, 900);
});
test("Check matrix fail when showing preview", async (t) => {
await initSurvey(framework, {
showPreviewBeforeComplete: "showAnsweredQuestions",
Expand Down Expand Up @@ -207,4 +214,4 @@ frameworks.forEach((framework) => {
await t.expect(Selector(".sd-title").visible).ok();
await t.expect(Selector(".sv-header").visible).notOk();
});
});
});

0 comments on commit 441d188

Please sign in to comment.