Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OWASP ZAP] 会員管理 会員登録 #5330

Merged
merged 8 commits into from
May 19, 2022

Conversation

carkn
Copy link
Contributor

@carkn carkn commented Mar 18, 2022

概要(Overview・Refs Issue)

Owasp ZAP 自動化: 管理画面 > 会員管理 会員登録 > 新規登録

方針(Policy)

実装に関する補足(Appendix)

テスト(Test)

手元の環境で動作確認を行っています。

相談(Discussion)

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更はありません
  • フックポイントの呼び出しタイミングの変更はありません
  • フックポイントのパラメータの削除・データ型の変更はありません
  • twigファイルに渡しているパラメータの削除・データ型の変更はありません
  • Serviceクラスの公開関数の、引数の削除・データ型の変更はありません
  • 入出力ファイル(CSVなど)のフォーマット変更はありません

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか
    • 権限を超えた操作が可能にならないか
    • 不要なファイルアップロードがないか
    • 外部へ公開されるファイルや機能の追加ではないか
    • テンプレートでのエスケープ漏れがないか

@codecov-commenter
Copy link

codecov-commenter commented Mar 19, 2022

Codecov Report

Merging #5330 (e0edae9) into 4.1 (d1d6996) will increase coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##                4.1    #5330   +/-   ##
=========================================
  Coverage     68.55%   68.56%           
  Complexity     6159     6159           
=========================================
  Files           463      463           
  Lines         25279    25279           
=========================================
+ Hits          17331    17333    +2     
+ Misses         7948     7946    -2     
Flag Coverage Δ
E2E 57.77% <ø> (ø)
Unit 76.16% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...be/Service/PurchaseFlow/Processor/TaxProcessor.php 73.77% <0.00%> (+3.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1d6996...e0edae9. Read the comment docs.

await page.selectOption('select[name="admin_customer\\[address\\]\\[pref\\]"]', '1');
await page.fill('[placeholder="市区町村名\\(例:大阪市北区\\)"]', '大阪市北区梅田');
await page.fill('[placeholder="番地・ビル名\\(例:西梅田1丁目6-8\\)"]', '2-4-9');
await page.fill('[placeholder="例:ec-cube\\@example\\.com"]', 'taro_yamada@test.local');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

メールアドレスが固定されているため、 常に このメールアドレスは利用できません というエラーになってしまうようです。
entityManager->flush() を抑制するパッチを当てる必要がありそうですが、いかがでしょうか。

await page.fill('input[name="admin_customer\\[birth\\]"]', '1980-04-01');
await page.fill('input[name="admin_customer\\[point\\]"]', '10');
await page.fill('textarea[name="admin_customer\\[note\\]"]', '国語国語国語国語国語国語国語国語国語国語国語国語国語国語国語国語国語国語国語国語国語国語');
await page.click('button:has-text("登録")');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
await page.click('button:has-text("登録")');
await page.click('button >> text=登録');

で、いかがでしょうか?

});
});

test('ユーザ情報を入力します', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

エスケープ文字 \\ で煩雑な記述になっているため、ID 指定の方がシンプルに記述できそうですが、いかがでしょう?

@carkn
Copy link
Contributor Author

carkn commented Apr 1, 2022

@nanasess
ご確認ありがとうございます。
諸々修正させていただきました。

@chihiro-adachi chihiro-adachi modified the milestones: 4.1.x, 4.1.3 Apr 22, 2022
@chihiro-adachi chihiro-adachi merged commit 12fd1ab into EC-CUBE:4.1 May 19, 2022
@Yangsin Yangsin modified the milestones: 4.1.3, 4.2.0 Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants