forked from EC-CUBE/ec-cube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,11 @@ test.describe('お問い合わせフォームのテストをします', () => { | |
await page.click('button >> text=確認ページへ'); | ||
}); | ||
|
||
test('入力内容を確認します', async () => { | ||
await expect(page.locator('#contact_email')).toBeHidden(); | ||
await expect(page.locator('#contact_email')).toHaveValue('[email protected]'); | ||
}); | ||
|
||
let message: HttpMessage; | ||
test('HttpMessage を取得します', async () => { | ||
message = await zapClient.getLastMessage(url); | ||
|
@@ -94,6 +99,10 @@ test.describe('お問い合わせフォームのテストをします', () => { | |
let scanId: number; | ||
test('アクティブスキャンを実行します', async () => { | ||
const completeMessage = await zapClient.getLastMessage(url); | ||
console.log(completeMessage.requestHeader); | ||
console.log(completeMessage.requestBody); | ||
console.log(completeMessage.responseHeader); | ||
console.log(completeMessage.responseBody); | ||
expect(completeMessage.responseHeader).toContain('HTTP/1.1 302 Found'); | ||
expect(completeMessage.responseHeader).toContain('Location: /contact/complete'); | ||
|
||
|