feat: select school terms and smooth refractive Dock motion
This commit is contained in:
@@ -11,8 +11,8 @@ const timetable = 'https://yjsjy.uestc.edu.cn/pyxx/pygl/xskbcx/index/1';
|
||||
function term(id) {
|
||||
const result = {
|
||||
selectedIndex: 1,
|
||||
options: [false, false].map(selected => ({
|
||||
selected,
|
||||
options: [false, false].map((selected, index) => ({
|
||||
selected, value: String(73 - index),
|
||||
setAttribute() { this.selected = true; },
|
||||
removeAttribute() { this.selected = false; },
|
||||
})),
|
||||
@@ -56,6 +56,7 @@ assert.equal(probe(doc('https://yjsjy.uestc.edu.cn/pyxx/jzsso/login')).authentic
|
||||
|
||||
const top = probe(doc(timetable, {table: true}));
|
||||
assert.equal(top.pages.length, 1);
|
||||
assert.deepEqual(top.terms, [73, 72], 'bounded school term choices contain only dropdown IDs');
|
||||
assert.match(top.pages[0].html, /value="1" selected="selected"/);
|
||||
assert.doesNotMatch(top.pages[0].html, /value="0" selected/);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user