Skip to content

SystemConfig value set not working with google captcha v2 #499

Description

@frobel

Affected file:
[shopware/shopware] - Repo ->
tests/acceptance/tests/Forms/GoogleReCaptchaV2Login.spec.ts
tests/acceptance/tests/Settings/Wishlist/WishlistGuestFunctionalities.spec.ts
tests/acceptance/tests/Forms/GoogleReCaptchaV2UI.spec.ts
tests/acceptance/tests/Forms/GoogleReCaptchaV3UI.spec.ts

Workaround:
SystemConfig set directly within the test in beforeEach function.

Expected behaviour:
Using of following snippet should pass the test:

await TestDataService.setSystemConfig({
                'core.basicInformation.activeCaptchasV2': {
                    googleReCaptchaV2: {
                        name: 'googleReCaptchaV2',
                        isActive: true,
                        config: {
                            siteKey: reCaptcha_V2_site_key,
                            secretKey: reCaptcha_V2_secret_key,
                            invisible: true,
                        },
                    },
                },
            });
        });

Additionally, it is also not working with the following test: tests/acceptance/tests/Settings/Wishlist/WishlistGuestFunctionalities.spec.ts

Technical notes:

  • Check the Test: SystemConfig.spec.ts (in ATS Repo) and extend test if necessary

Metadata

Metadata

Labels

bugSomething isn't working

Type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions