(rp: RemotePage, opts: CommonWorkOptions)
| 967 | } |
| 968 | |
| 969 | function doChoice(rp: RemotePage, opts: CommonWorkOptions) { |
| 970 | const is_multiple = !!$el('.multipleChoice'); |
| 971 | return handleCommonUnitTest(rp, opts, { |
| 972 | type: is_multiple ? 'multiple' : 'single', |
| 973 | test_type: 'choice', |
| 974 | root: '.question-common-abs-choice', |
| 975 | elements: { |
| 976 | title: '.ques-title', |
| 977 | options: '.option-wrap .option .content' |
| 978 | } |
| 979 | }); |
| 980 | } |
| 981 | |
| 982 | function doReading(rp: RemotePage, opts: CommonWorkOptions) { |
| 983 | const is_multiple = !!$el('.multipleChoice'); |
no test coverage detected