File tree Expand file tree Collapse file tree 5 files changed +25
-26
lines changed Expand file tree Collapse file tree 5 files changed +25
-26
lines changed Original file line number Diff line number Diff line change 41
41
</after >
42
42
43
43
<!-- Login Customer Storefront -->
44
-
45
- <amOnPage url = " {{StorefrontCustomerSignInPage.url}} " stepKey =" amOnSignInPage " / >
46
- < fillField userInput =" $$createCustomer.email$$ " selector = " {{StorefrontCustomerSignInFormSection.emailField}} " stepKey = " fillEmail " />
47
- <fillField userInput = " $$createCustomer.password$$ " selector = " {{StorefrontCustomerSignInFormSection.passwordField}} " stepKey = " fillPassword " / >
48
- <click selector = " {{StorefrontCustomerSignInFormSection.signInAccountButton}} " stepKey =" clickSignInAccountButton" />
44
+ < actionGroup ref = " StorefrontOpenCustomerLoginPageActionGroup " stepKey = " goToSignInPage " />
45
+ <actionGroup ref = " StorefrontFillCustomerLoginFormActionGroup " stepKey =" fillLoginFormWithCorrectCredentials " >
46
+ < argument name = " customer " value =" $$createCustomer$$ " />
47
+ </ actionGroup >
48
+ <actionGroup ref = " StorefrontClickSignOnCustomerLoginFormActionGroup " stepKey =" clickSignInAccountButton" />
49
49
50
50
<!-- Checking the correctness of displayed prices for user parameters -->
51
51
Original file line number Diff line number Diff line change 23
23
<after >
24
24
<deleteData createDataKey =" createCustomer" stepKey =" deleteCustomer" />
25
25
</after >
26
- <amOnPage stepKey =" amOnSignInPage" url =" {{StorefrontCustomerSignInPage.url}}" />
27
- <fillField stepKey =" fillEmail" userInput =" $$createCustomer.email$$" selector =" {{StorefrontCustomerSignInFormSection.emailField}}" />
28
- <fillField stepKey =" fillPassword" userInput =" $$createCustomer.password$$" selector =" {{StorefrontCustomerSignInFormSection.passwordField}}" />
29
- <click stepKey =" clickSignInAccountButton" selector =" {{StorefrontCustomerSignInFormSection.signInAccountButton}}" />
26
+ <actionGroup ref =" StorefrontOpenCustomerLoginPageActionGroup" stepKey =" goToSignInPage" />
27
+ <actionGroup ref =" StorefrontFillCustomerLoginFormActionGroup" stepKey =" fillLoginFormWithCorrectCredentials" >
28
+ <argument name =" customer" value =" $$createCustomer$$" />
29
+ </actionGroup >
30
+ <actionGroup ref =" StorefrontClickSignOnCustomerLoginFormActionGroup" stepKey =" clickSignInAccountButton" />
30
31
<actionGroup ref =" EnterCustomerAddressInfoActionGroup" stepKey =" enterAddressInfo" >
31
32
<argument name =" Address" value =" US_Address_NY" />
32
33
</actionGroup >
Original file line number Diff line number Diff line change 24
24
<after >
25
25
<deleteData stepKey =" deleteCustomer" createDataKey =" customer" />
26
26
</after >
27
-
28
- <amOnPage stepKey = " amOnSignInPage " url = " {{StorefrontCustomerSignInPage.url}} " / >
29
- < fillField stepKey = " fillEmail " userInput =" $$customer.email$$ " selector = " {{StorefrontCustomerSignInFormSection.emailField}} " />
30
- <fillField stepKey = " fillPassword " userInput = " $$customer.password$$ " selector = " {{StorefrontCustomerSignInFormSection.passwordField}} " / >
31
- <click stepKey = " clickSignInAccountButton " selector = " {{StorefrontCustomerSignInFormSection.signInAccountButton}} " />
27
+ < actionGroup ref = " StorefrontOpenCustomerLoginPageActionGroup " stepKey = " goToSignInPage " />
28
+ <actionGroup ref = " StorefrontFillCustomerLoginFormActionGroup " stepKey = " fillLoginFormWithCorrectCredentials " >
29
+ < argument name = " customer " value =" $$customer$$ " />
30
+ </ actionGroup >
31
+ <actionGroup ref = " StorefrontClickSignOnCustomerLoginFormActionGroup " stepKey = " clickSignInAccountButton " />
32
32
<see stepKey =" seeFirstName" userInput =" $$customer.firstname$$" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
33
33
<see stepKey =" seeLastName" userInput =" $$customer.lastname$$" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
34
34
<see stepKey =" seeEmail" userInput =" $$customer.email$$" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
Original file line number Diff line number Diff line change 56
56
<actionGroup ref =" SaveProductFormActionGroup" stepKey =" saveSimpleProduct" />
57
57
58
58
<!-- Sign in as customer -->
59
- <amOnPage url = " {{StorefrontCustomerSignInPage.url}} " stepKey =" amOnSignInPage " />
60
- <fillField userInput = " $$customer.email$$ " selector = " {{StorefrontCustomerSignInFormSection.emailField}} " stepKey =" fillEmail " / >
61
- < fillField userInput = " $$ customer.password$$ " selector = " {{StorefrontCustomerSignInFormSection.passwordField}} " stepKey = " fillPassword " />
62
- <waitForElementVisible selector = " {{StorefrontCustomerSignInFormSection.signInAccountButton}} " stepKey = " waitForButton " / >
63
- <click selector = " {{StorefrontCustomerSignInFormSection.signInAccountButton}} " stepKey =" clickSignInAccountButton" />
59
+ <actionGroup ref = " StorefrontOpenCustomerLoginPageActionGroup " stepKey =" goToSignInPage " />
60
+ <actionGroup ref = " StorefrontFillCustomerLoginFormActionGroup " stepKey =" fillLoginFormWithCorrectCredentials " >
61
+ < argument name = " customer" value = " $$customer$$ " />
62
+ </ actionGroup >
63
+ <actionGroup ref = " StorefrontClickSignOnCustomerLoginFormActionGroup " stepKey =" clickSignInAccountButton" />
64
64
<see userInput =" $$customer.firstname$$" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" stepKey =" seeFirstName" />
65
65
<see userInput =" $$customer.lastname$$" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" stepKey =" seeLastName" />
66
66
<see userInput =" $$customer.email$$" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" stepKey =" seeEmail" />
Original file line number Diff line number Diff line change 34
34
<deleteData stepKey =" deleteCustomer" createDataKey =" customer" />
35
35
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" adminLogout" />
36
36
</after >
37
-
38
- <amOnPage stepKey =" amOnSignInPage" url =" {{StorefrontCustomerSignInPage.url}}" />
39
- <waitForPageLoad stepKey =" waitForLoginPage" />
40
- <fillField stepKey =" fillEmail" userInput =" $$customer.email$$" selector =" {{StorefrontCustomerSignInFormSection.emailField}}" />
41
- <fillField stepKey =" fillPassword" userInput =" $$customer.password$$" selector =" {{StorefrontCustomerSignInFormSection.passwordField}}" />
42
- <waitForElementVisible stepKey =" waitForButton" selector =" {{StorefrontCustomerSignInFormSection.signInAccountButton}}" />
43
- <click stepKey =" clickSignInAccountButton" selector =" {{StorefrontCustomerSignInFormSection.signInAccountButton}}" />
37
+ <actionGroup ref =" StorefrontOpenCustomerLoginPageActionGroup" stepKey =" goToSignInPage" />
38
+ <actionGroup ref =" StorefrontFillCustomerLoginFormActionGroup" stepKey =" fillLoginFormWithCorrectCredentials" >
39
+ <argument name =" customer" value =" $$customer$$" />
40
+ </actionGroup >
41
+ <actionGroup ref =" StorefrontClickSignOnCustomerLoginFormActionGroup" stepKey =" clickSignInAccountButton" />
44
42
<see stepKey =" seeFirstName" userInput =" $$customer.firstname$$" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
45
43
<see stepKey =" seeLastName" userInput =" $$customer.lastname$$" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
46
44
<see stepKey =" seeEmail" userInput =" $$customer.email$$" selector =" {{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
You can’t perform that action at this time.
0 commit comments