From 4fbcaa5c5f2f2f7dab7f40292280a3d8cf341254 Mon Sep 17 00:00:00 2001 From: kagg-design Date: Mon, 31 Jul 2023 15:01:37 +0300 Subject: [PATCH] Fix tests. --- .tests/php/integration/AMainTest.php | 18 ++++++++++++++++++ .tests/php/unit/HCaptchaTestCase.php | 9 +++++++++ 2 files changed, 27 insertions(+) diff --git a/.tests/php/integration/AMainTest.php b/.tests/php/integration/AMainTest.php index 245a5951..df23258b 100644 --- a/.tests/php/integration/AMainTest.php +++ b/.tests/php/integration/AMainTest.php @@ -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; } @@ -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', diff --git a/.tests/php/unit/HCaptchaTestCase.php b/.tests/php/unit/HCaptchaTestCase.php index 650db53f..573007e2 100644 --- a/.tests/php/unit/HCaptchaTestCase.php +++ b/.tests/php/unit/HCaptchaTestCase.php @@ -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',