better-payment / bp-plugin-shopware6-api2

Shopware 6 Plugin for Better Payment API2
Other
0 stars 0 forks source link

[Testing] E2E testing by cypress #75

Open hasanzade-hasan opened 1 year ago

hasanzade-hasan commented 1 year ago

Requirements

  1. Add a single success and failure case for each of these flows:

If a payment method's flow depends on a specific configuration option, in a different context, set that configuration option and test that flow.

If you don't have access to modify the configuration options, then this can be tricky.

  1. Test plugin installation

  2. Test configuration options

  1. Processing a webhook

An example test case can be to fill in the information, check-in a radio box or checkbox then refresh the page. Page should expect those values to be seen or checked in, selected etc...

hasanzade-hasan commented 1 year ago

Consider following test cases:

SETUP: upload plugin (move unzipped plugin source code to core's /custom/plugins/ directory) plugin:zip-import - Imports a plugin from a zip file, see shopware 6 commands

SETUP: configure plugin to add keys, and set provided options

system:config:get | Get a config value
system:config:set | Set a config value

Test Login&Sign-up settings are configured:

SETUP: assign payment methods to (Storefront) sales channel

Admin Panel:

these test cases are derived from manual testing of plugin with shopware 6.5 core version
hasanzade-hasan commented 1 year ago

https://developer.shopware.com/docs/resources/references/core-reference/commands-reference

bin/console system:config:set -j core.loginRegistration.showBirthdayField false