Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Jul 31, 2023
1 parent bb7d55b commit 4fbcaa5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .tests/php/integration/AMainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,9 @@ public function test_print_inline_styles() {
.elementor-field-type-hcaptcha .h-captcha {
margin-bottom: unset;
}
#wppb-loginform .h-captcha {
margin-bottom: 14px;
}
div[style*="z-index: 2147483647"] div[style*="border-width: 11px"][style*="position: absolute"][style*="pointer-events: none"] {
border-style: none;
}
Expand Down Expand Up @@ -1189,6 +1192,21 @@ public function dp_test_load_modules() {
'paid-memberships-pro/paid-memberships-pro.php',
\HCaptcha\PaidMembershipsPro\Login::class,
],
'Profile Builder Login' => [
[ 'profile_builder_status', 'login' ],
'profile-builder/index.php',
\HCaptcha\ProfileBuilder\Login::class,
],
'Profile Builder Register' => [
[ 'profile_builder_status', 'register' ],
'profile-builder/index.php',
\HCaptcha\ProfileBuilder\Register::class,
],
'Profile Builder Recover Password' => [
[ 'profile_builder_status', 'lost_pass' ],
'profile-builder/index.php',
\HCaptcha\ProfileBuilder\LostPassword::class,
],
'Quform' => [
[ 'quform_status', 'form' ],
'quform/quform.php',
Expand Down
9 changes: 9 additions & 0 deletions .tests/php/unit/HCaptchaTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,15 @@ protected function get_test_integrations_form_fields() {
'login' => 'Login Form',
],
],
'profile_builder_status' => [
'label' => 'Profile Builder',
'type' => 'checkbox',
'options' => [
'login' => 'Login Form',
'lost_pass' => 'Recover Password Form',
'register' => 'Register Form',
],
],
'quform_status' =>
[
'label' => 'Quform',
Expand Down

0 comments on commit 4fbcaa5

Please sign in to comment.