From 3ff4360b1719f62c0f4a1d366f77eb556f6be8ed Mon Sep 17 00:00:00 2001 From: Kentaro Ohkouchi Date: Tue, 29 Mar 2022 16:28:33 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A8=E3=83=A9=E3=83=BC=E3=83=8F=E3=83=B3?= =?UTF-8?q?=E3=83=89=E3=83=AA=E3=83=B3=E3=82=B0=E3=81=AEE2E=E3=83=86?= =?UTF-8?q?=E3=82=B9=E3=83=88=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see https://github.com/EC-CUBE/ec-cube2/pull/536 --- e2e-tests/test/front_login/contact.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/e2e-tests/test/front_login/contact.test.ts b/e2e-tests/test/front_login/contact.test.ts index 4649273734..3ca949b9db 100644 --- a/e2e-tests/test/front_login/contact.test.ts +++ b/e2e-tests/test/front_login/contact.test.ts @@ -134,4 +134,16 @@ test.describe.serial('お問い合わせページのテストをします', () = .then(alerts => expect(alerts).toEqual([])); }); }); + + /** + * https://github.com/EC-CUBE/ec-cube2/pull/536 のE2Eテスト + */ + test('ラーメッセージの表示を確認します', async () => { + await page.goto(PlaywrightConfig.use.baseURL); // ログアウトしてしまう場合があるので一旦トップへ遷移する + await page.goto(url); + await page.click('input[name=confirm]'); + await page.pause(); + await expect(page.locator('span.attention >> nth=13')).toContainText('※ お問い合わせ内容が入力されていません。'); + await expect(page.locator('textarea[name=contents]')).toHaveAttribute('style', 'background-color:#ffe8e8; ime-mode: active;'); + }); });