File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
app/code/Magento/Customer/Test/Mftf Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 40
40
<fillField stepKey =" fillConfirmPassword" userInput =" {{customer.password}}" selector =" {{StorefrontCustomerCreateFormSection.confirmPasswordField}}" />
41
41
<click stepKey =" clickCreateAccountButton" selector =" {{StorefrontCustomerCreateFormSection.createAccountButton}}" />
42
42
<waitForPageLoad stepKey =" waitForCreateAccountButtonToLoad" />
43
- <see stepKey =" seeThankYouMessage" userInput =" Thank you for registering with Main Website Store." />
43
+ </actionGroup >
44
+ <actionGroup name =" AssertSignedUpNewsletterActionGroup" >
45
+ <arguments >
46
+ <argument name =" customer" defaultValue =" CustomerEntityOne" />
47
+ <argument name =" storeName" defaultValue =" Main Website" type =" string" />
48
+ </arguments >
49
+ <see stepKey =" successMessage" userInput =" Thank you for registering with {{storeName}} Store." selector =" {{AdminCustomerMessagesSection.successMessage}}" />
44
50
<see stepKey =" seeFirstName" userInput =" {{customer.firstname}}" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
45
51
<see stepKey =" seeLastName" userInput =" {{customer.lastname}}" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
46
52
<see stepKey =" seeEmail" userInput =" {{customer.email}}" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
Original file line number Diff line number Diff line change 29
29
<actionGroup ref =" logout" stepKey =" logout" />
30
30
</after >
31
31
32
- <!-- Create new customer on storefront-->
33
- <actionGroup ref =" SignUpNewUserFromStorefrontActionGroup" stepKey =" SignUpNewUser" >
34
- <argument name =" Customer" value =" CustomerEntityOne" />
32
+ <!-- Create new customer on storefront and perform the asserts-->
33
+ <actionGroup ref =" SignUpNewUserFromStorefrontActionGroup" stepKey =" signUpNewUser" >
34
+ <argument name =" customer" value =" CustomerEntityOne" />
35
+ </actionGroup >
36
+ <actionGroup ref =" AssertSignedUpNewsletterActionGroup" stepKey =" assertSignedUpNewsLetter" >
37
+ <argument name =" customer" value =" CustomerEntityOne" />
35
38
</actionGroup >
36
- <seeInCurrentUrl url =" {{StorefrontCustomerDashboardPage.url}}" stepKey =" seeAssertInCurrentUrl" />
37
39
</test >
38
40
</tests >
You can’t perform that action at this time.
0 commit comments