feat(viewer): hide link text under QR in share sheet (user request) — QR + copy button remain
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -187,9 +187,7 @@ describe('album header info area (UI-02 V02)', () => {
|
||||
await Promise.resolve();
|
||||
// 弹层出现:链接文本 + 复制按钮(页面级「已复制」提示已退役)。
|
||||
expect(sheetEl()).not.toBeNull();
|
||||
expect(sheetEl()!.querySelector('[data-test="share-sheet-url"]')!.textContent).toBe(
|
||||
'http://localhost:3000/a/tokfixture0000000000aaaa?lang=zh-CN',
|
||||
);
|
||||
// 链接文本已隐藏(2026-09-24):二维码 + 复制按钮仍在。
|
||||
expect(document.querySelector('.share-status')).toBeNull();
|
||||
|
||||
const copyBtn = sheetEl()!.querySelector<HTMLButtonElement>('[data-test="share-sheet-copy"]')!;
|
||||
|
||||
@@ -602,9 +602,7 @@ describe('photo lightbox interactions (UI-02 V05)', () => {
|
||||
await flushPromises();
|
||||
// 弹层出现并携带照片深链(页面级提示已退役)。
|
||||
expect(lbSheet()).not.toBeNull();
|
||||
expect(
|
||||
lbSheet()!.querySelector('[data-test="share-sheet-url"]')!.textContent,
|
||||
).toBe('/a/tok-lb/p/p1?lang=zh-CN');
|
||||
// 链接文本已隐藏(2026-09-24)。
|
||||
expect(wrapper.find('.share-status').exists()).toBe(false);
|
||||
|
||||
const nativeBtn = lbSheet()!.querySelector<HTMLButtonElement>('[data-test="share-sheet-native"]')!;
|
||||
|
||||
Reference in New Issue
Block a user