|
1 | | -import { fixture, test } from "testcafe"; |
2 | | -import { frameworks, url_test, initSurvey, checkSurveyWithEmptyQuestion, explicitErrorHandler } from "../helper"; |
3 | | -const title = "sortablejs"; |
| 1 | +// import { fixture, test } from "testcafe"; |
| 2 | +// import { frameworks, url_test, initSurvey, checkSurveyWithEmptyQuestion, explicitErrorHandler } from "../helper"; |
| 3 | +// const title = "sortablejs"; |
4 | 4 |
|
5 | | -const json = { |
6 | | - elements: [ |
7 | | - { |
8 | | - type: "sortablelist", |
9 | | - name: "lifepriopity", |
10 | | - title: "Life Priorities ", |
11 | | - isRequired: true, |
12 | | - colCount: 0, |
13 | | - choices: ["family", "work", "pets", "travels", "games"], |
14 | | - }, |
15 | | - ], |
16 | | -}; |
| 5 | +// const json = { |
| 6 | +// elements: [ |
| 7 | +// { |
| 8 | +// type: "sortablelist", |
| 9 | +// name: "lifepriopity", |
| 10 | +// title: "Life Priorities ", |
| 11 | +// isRequired: true, |
| 12 | +// colCount: 0, |
| 13 | +// choices: ["family", "work", "pets", "travels", "games"], |
| 14 | +// }, |
| 15 | +// ], |
| 16 | +// }; |
17 | 17 |
|
18 | | -frameworks.forEach((framework) => { |
19 | | - fixture`${framework} ${title}` |
20 | | - .page`${url_test}customWidget/${framework}`.beforeEach( |
21 | | - async (ctx) => { |
22 | | - await explicitErrorHandler(); |
23 | | - await initSurvey(framework, json); |
24 | | - } |
25 | | - ); |
| 18 | +// frameworks.forEach((framework) => { |
| 19 | +// fixture`${framework} ${title}` |
| 20 | +// .page`${url_test}customWidget/${framework}`.beforeEach( |
| 21 | +// async (ctx) => { |
| 22 | +// await explicitErrorHandler(); |
| 23 | +// await initSurvey(framework, json); |
| 24 | +// } |
| 25 | +// ); |
26 | 26 |
|
27 | | - test("check integrity", async (t) => { |
28 | | - await t |
29 | | - .hover("div[data-value]:nth-child(1)") |
30 | | - .hover("div[data-value]:nth-child(2)") |
31 | | - .hover("div[data-value]:nth-child(3)") |
32 | | - .hover("div[data-value]:nth-child(4)") |
33 | | - .hover("div[data-value]:nth-child(5)"); |
34 | | - }); |
| 27 | +// test("check integrity", async (t) => { |
| 28 | +// await t |
| 29 | +// .hover("div[data-value]:nth-child(1)") |
| 30 | +// .hover("div[data-value]:nth-child(2)") |
| 31 | +// .hover("div[data-value]:nth-child(3)") |
| 32 | +// .hover("div[data-value]:nth-child(4)") |
| 33 | +// .hover("div[data-value]:nth-child(5)"); |
| 34 | +// }); |
35 | 35 |
|
36 | | - test("choose empty", async (t) => { |
37 | | - await checkSurveyWithEmptyQuestion(t); |
38 | | - }); |
| 36 | +// test("choose empty", async (t) => { |
| 37 | +// await checkSurveyWithEmptyQuestion(t); |
| 38 | +// }); |
39 | 39 |
|
40 | | - test("choose value", async (t) => { |
41 | | - // TODO d&d doesn't work https://github.com/DevExpress/testcafe/issues/897 |
42 | | - // let surveyResult; |
43 | | - // |
44 | | - // await t |
45 | | - // .dragToElement('.source div:nth-child(4)', '.result') |
46 | | - // .dragToElement('.source div:nth-child(1)', '.result') |
47 | | - // .click(`input[value=Complete]`); |
48 | | - // |
49 | | - // surveyResult = await getSurveyResult(); |
50 | | - // assert.deepEqual(surveyResult.lifepriopity, ["travels","family"]); |
51 | | - }); |
| 40 | +// test("choose value", async (t) => { |
| 41 | +// // TODO d&d doesn't work https://github.com/DevExpress/testcafe/issues/897 |
| 42 | +// // let surveyResult; |
| 43 | +// // |
| 44 | +// // await t |
| 45 | +// // .dragToElement('.source div:nth-child(4)', '.result') |
| 46 | +// // .dragToElement('.source div:nth-child(1)', '.result') |
| 47 | +// // .click(`input[value=Complete]`); |
| 48 | +// // |
| 49 | +// // surveyResult = await getSurveyResult(); |
| 50 | +// // assert.deepEqual(surveyResult.lifepriopity, ["travels","family"]); |
| 51 | +// }); |
52 | 52 |
|
53 | | - test("change priority", async (t) => { |
54 | | - // TODO d&d doesn't work https://github.com/DevExpress/testcafe/issues/897 |
55 | | - // let surveyResult; |
56 | | - // |
57 | | - // await t |
58 | | - // .dragToElement('.source div:nth-child(1)', '.result') |
59 | | - // .dragToElement('.source div:nth-child(2)', '.result') |
60 | | - // .dragToElement('.source div:nth-child(3)', '.result') |
61 | | - // .dragToElement('.source div:nth-child(4)', '.result') |
62 | | - // .dragToElement('.source div:nth-child(5)', '.result') |
63 | | - // .dragToElement('.result div:nth-child(1)', '.result div:nth-child(5) div') |
64 | | - // .dragToElement('.result div:nth-child(1)', '.result div:nth-child(4) div') |
65 | | - // .dragToElement('.result div:nth-child(1)', '.result div:nth-child(3) div') |
66 | | - // .dragToElement('.result div:nth-child(1)', '.result div:nth-child(2) div') |
67 | | - // |
68 | | - // .click(`input[value=Complete]`); |
69 | | - // |
70 | | - // surveyResult = await getSurveyResult(); |
71 | | - // assert.deepEqual(surveyResult.lifepriopity, ["games","travels","pets","work","family"]); |
72 | | - }); |
73 | | -}); |
| 53 | +// test("change priority", async (t) => { |
| 54 | +// // TODO d&d doesn't work https://github.com/DevExpress/testcafe/issues/897 |
| 55 | +// // let surveyResult; |
| 56 | +// // |
| 57 | +// // await t |
| 58 | +// // .dragToElement('.source div:nth-child(1)', '.result') |
| 59 | +// // .dragToElement('.source div:nth-child(2)', '.result') |
| 60 | +// // .dragToElement('.source div:nth-child(3)', '.result') |
| 61 | +// // .dragToElement('.source div:nth-child(4)', '.result') |
| 62 | +// // .dragToElement('.source div:nth-child(5)', '.result') |
| 63 | +// // .dragToElement('.result div:nth-child(1)', '.result div:nth-child(5) div') |
| 64 | +// // .dragToElement('.result div:nth-child(1)', '.result div:nth-child(4) div') |
| 65 | +// // .dragToElement('.result div:nth-child(1)', '.result div:nth-child(3) div') |
| 66 | +// // .dragToElement('.result div:nth-child(1)', '.result div:nth-child(2) div') |
| 67 | +// // |
| 68 | +// // .click(`input[value=Complete]`); |
| 69 | +// // |
| 70 | +// // surveyResult = await getSurveyResult(); |
| 71 | +// // assert.deepEqual(surveyResult.lifepriopity, ["games","travels","pets","work","family"]); |
| 72 | +// }); |
| 73 | +// }); |
0 commit comments