Add plain text clipboard transfers and refine input feedback

This commit is contained in:
2026-10-13 14:07:03 +09:00
parent af004a2942
commit 8a8df417aa
32 changed files with 1263 additions and 197 deletions

View File

@@ -106,8 +106,8 @@ try {
await receiver.locator('.room-leave').waitFor();
await receiver.locator('.modal-backdrop').waitFor({ state: 'hidden' });
await sender.locator('.peer-card').first().click();
await sender.getByRole('button', { name: '대신 링크 붙여넣기', exact: true }).click();
await sender.getByLabel('보낼 URL').fill('https://example.com/received');
await sender.locator('.current-url, .current-text').fill('https://example.com/received');
await sender.getByRole('button', { name: '전송하기', exact: true }).click();
const automaticallyOpened = receiver.waitForEvent('popup');
await receiver.getByRole('button', { name: '수락', exact: true }).click();
@@ -125,14 +125,14 @@ try {
await sender.getByRole('button', { name: '보관함에 담기', exact: true }).click();
await sender
.getByRole('dialog', { name: '보관함에 담기' })
.getByRole('button', { name: '링크 저장', exact: true })
.getByRole('button', { name: '클립보드 저장', exact: true })
.click();
assert.equal(
await sender.getByRole('dialog', { name: '보관함에 담기' }).locator('input[type=file]').count(),
0,
);
await sender.getByLabel('한 줄 메모', { exact: true }).fill('나중에 읽을 글');
await sender.getByLabel('보낼 URL').fill('https://example.com/saved');
await sender.locator('.current-url, .current-text').fill('https://example.com/saved');
await sender.getByRole('button', { name: '저장하기', exact: true }).click();
await sender.locator('.item-card').filter({ hasText: '나중에 읽을 글' }).waitFor();
await sender.getByRole('button', { name: '메모 수정', exact: true }).click();