Simplify connection flow, mobile transfer UI, and header actions
This commit is contained in:
@@ -48,18 +48,20 @@ try {
|
||||
}
|
||||
await rename(host, '방장 Mac');
|
||||
await rename(guest, '외부 기기');
|
||||
await host.getByRole('button', { name: 'QR · 코드로 연결', exact: true }).click();
|
||||
await host.getByRole('checkbox', { name: '참여할 때 내 승인 받기' }).check();
|
||||
await host.getByRole('button', { name: '다른 기기 연결', exact: true }).click();
|
||||
await host.getByRole('button', { name: '연결 공간 만들기' }).click();
|
||||
await host.getByRole('checkbox', { name: '참여할 때 내 승인 받기' }).check();
|
||||
await host.getByRole('button', { name: '만들기', exact: true }).click();
|
||||
await host.locator('.invite-code').waitFor();
|
||||
const code = (await host.locator('.invite-code').innerText()).replace(/\s/g, '');
|
||||
await host.getByRole('button', { name: '대화상자 닫기' }).click();
|
||||
await host.locator('.my-device-info .host-badge').waitFor();
|
||||
await guest.getByRole('button', { name: 'QR · 코드로 연결', exact: true }).click();
|
||||
await guest.getByRole('button', { name: '다른 기기 연결', exact: true }).click();
|
||||
await guest.getByRole('button', { name: '연결 공간 참여', exact: true }).click();
|
||||
await guest.getByRole('textbox', { name: '연결 코드' }).fill(code);
|
||||
await guest.getByRole('button', { name: '참여', exact: true }).click();
|
||||
await guest.getByRole('button', { name: '참여하기', exact: true }).click();
|
||||
await guest.locator('.room-leave').waitFor();
|
||||
await guest.getByRole('dialog', { name: 'QR · 코드로 연결' }).waitFor({ state: 'hidden' });
|
||||
await guest.locator('.modal-backdrop').waitFor({ state: 'hidden' });
|
||||
const guestCard = host.locator('.peer-entry').filter({ hasText: '외부 기기' });
|
||||
await guestCard.getByText('승인 대기', { exact: true }).waitFor();
|
||||
assert.equal(await guestCard.locator('.peer-card').isDisabled(), true);
|
||||
|
||||
Reference in New Issue
Block a user