()
| 139 | } |
| 140 | |
| 141 | async function getCourseInstanceUrl() { |
| 142 | const body = await request({uri: baseUrl, jar: cookies}); |
| 143 | const $ = cheerio.load(body); |
| 144 | const elemList = $(`td a:contains("${exampleCourseName}")`); |
| 145 | assert(elemList.length == 1); |
| 146 | return serverUrl + elemList[0].attribs.href; |
| 147 | } |
| 148 | |
| 149 | async function getQuestionUrl(courseInstanceUrl) { |
| 150 | const questionsUrl = courseInstanceUrl + '/instructor/questions'; |
no test coverage detected