From ca330235563ea91715dfe8c0b56aa35fbf570a21 Mon Sep 17 00:00:00 2001 From: voluntas Date: Fri, 1 Mar 2024 11:46:31 +0900 Subject: [PATCH] =?UTF-8?q?page2=20=E3=81=8B=E3=82=89=E3=82=82=E3=83=A1?= =?UTF-8?q?=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=82=92=E9=80=81=E3=81=A3?= =?UTF-8?q?=E3=81=A6=E3=81=BF=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/messaging.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/messaging.spec.ts b/tests/messaging.spec.ts index db6d1db8..c0014e4c 100644 --- a/tests/messaging.spec.ts +++ b/tests/messaging.spec.ts @@ -32,13 +32,13 @@ test('messaging pages', async ({ browser }) => { // console.log(`Received message on page2: ${receivedMessage1}`) // test.expect(receivedMessage1).toBe('Hello from page1') - // // page2からpage1へメッセージを送信 - // await page2.fill('input[name="message"]', 'Hello from page2') - // await page2.click('#send-message') + // page2からpage1へメッセージを送信 + await page2.fill('input[name="message"]', 'Hello from page2') + await page2.click('#send-message') - // // page1でメッセージが受信されたことを確認 - // await page1.waitForSelector('li', { state: 'attached' }) - // const receivedMessage2 = await page1.$eval('#received-messages li', (el) => el.textContent) + // page1でメッセージが受信されたことを確認 + await page1.waitForSelector('li', { state: 'attached' }) + const receivedMessage2 = await page1.$eval('#received-messages li', (el) => el.textContent) // // 受信したメッセージが期待したものであるか検証 // console.log(`Received message on page1: ${receivedMessage2}`)