feat: 更新贡献上传URL逻辑,优化上传页面打开功能并更新相关测试用例

This commit is contained in:
QLHazyCoder
2026-04-21 12:40:26 +08:00
parent 239120c983
commit d85f7feaef
5 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ test('sidepanel html keeps a single contribution mode button in header', () => {
const matches = html.match(/id="btn-contribution-mode"/g) || [];
assert.equal(matches.length, 1);
assert.match(html, /id="btn-contribution-mode"[^>]*title="进入贡献模式"/);
assert.match(html, /id="btn-contribution-mode"[^>]*title="进入贡献模式并打开上传页"/);
assert.match(html, />贡献\/使用<\/button>/);
});