Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Dec 21, 2021
1 parent 7d168d8 commit 0fd9a80
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zap/selenium/ci/TypeScript/test/front_login/contact.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 0fd9a80

Please sign in to comment.