Skip to content

Commit c9e6df3

Browse files
#222: Add validation for error message - test fix.
1 parent 9340f8f commit c9e6df3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ReCaptchaCustomer/Observer/AjaxLoginObserver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public function __construct(
8080

8181
/**
8282
* @inheritdoc
83+
*
8384
* @throws LocalizedException
8485
*/
8586
public function execute(Observer $observer): void

ReCaptchaCustomer/Test/Integration/EditFromTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private function checkFailedPostResponse(array $postValues = []): void
236236

237237
$this->assertRedirect(self::stringStartsWith($this->url->getRouteUrl('customer/account/edit')));
238238
$this->assertSessionMessages(
239-
self::equalTo(['reCAPTCHA verification failed']),
239+
self::equalTo(['Something went wrong with reCAPTCHA. Please contact the store owner.']),
240240
MessageInterface::TYPE_ERROR
241241
);
242242

0 commit comments

Comments
 (0)