File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!--
3+ /**
4+ * Copyright © Magento, Inc. All rights reserved.
5+ * See COPYING.txt for license details.
6+ */
7+ -->
8+
9+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11+ <test name =" AwsS3StorefrontCaptchaOnCustomerLoginTest" extends =" StorefrontCaptchaOnCustomerLoginTest" >
12+ <annotations >
13+ <features value =" Captcha" />
14+ <stories value =" Login with Customer Account + Captcha" />
15+ <title value =" AWS S3 Captcha customer login page test" />
16+ <description value =" Check CAPTCHA on Storefront Login Page." />
17+ <severity value =" MAJOR" />
18+ <testCaseId value =" MC-39491" />
19+ <group value =" remote_storage_aws_s3" />
20+ </annotations >
21+ <before >
22+ <magentoCLI command =" setup:config:set {{RemoteStorageAwsS3ConfigData.enable_options}}" stepKey =" enableRemoteStorage" />
23+ </before >
24+ <after >
25+ <magentoCLI command =" setup:config:set {{RemoteStorageAwsS3ConfigData.disable_options}}" stepKey =" disableRemoteStorage" />
26+ </after >
27+ </test >
28+ </tests >
Original file line number Diff line number Diff line change @@ -150,7 +150,8 @@ public function getFonts()
150150 */
151151 public function getImgDir ($ website = null )
152152 {
153- $ mediaDir = $ this ->_filesystem ->getDirectoryWrite (DirectoryList::MEDIA );
153+ // Captcha images are not re-used and should be stored only locally.
154+ $ mediaDir = $ this ->_filesystem ->getDirectoryWrite (DirectoryList::MEDIA , Filesystem \DriverPool::FILE );
154155 $ captchaDir = '/captcha/ ' . $ this ->_getWebsiteCode ($ website );
155156 $ mediaDir ->create ($ captchaDir );
156157 return $ mediaDir ->getAbsolutePath ($ captchaDir ) . '/ ' ;
You can’t perform that action at this time.
0 commit comments