提交 1a59b6fc 编写于 作者: P pissang

test(visual): default current test name

上级 010f24c9
......@@ -262,6 +262,10 @@ const app = new Vue({
setTimeout(() => {
this.scrollToCurrent();
}, 100);
},
'currentTestName'(newVal, oldVal) {
updateUrl();
}
},
......@@ -279,7 +283,6 @@ const app = new Vue({
changeTest(target, testName) {
if (!target.matches('input[type="checkbox"]') && !target.matches('.el-checkbox__inner')) {
app.currentTestName = testName;
updateUrl();
}
},
toggleSort() {
......@@ -445,6 +448,10 @@ socket.on('update', msg => {
app.running = !!msg.running;
app.fullTests = processTestsData(msg.tests, app.fullTests);
if (!app.currentTestName) {
app.currentTestName = app.fullTests[0].name;
}
firstUpdate = false;
});
socket.on('finish', res => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册