File tree Expand file tree Collapse file tree 3 files changed +32
-5
lines changed
app/code/Magento/Backend/Test/Mftf Expand file tree Collapse file tree 3 files changed +32
-5
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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminAssertNoErrorMessageActionGroup" >
12
+ <dontSeeElement selector =" {{AdminMessagesSection.error}}" stepKey =" dontSeeErrorMessage" />
13
+ </actionGroup >
14
+ </actionGroups >
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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminClickLogoutActionGroup" >
12
+ <grabAttributeFrom selector =" {{AdminHeaderSection.signOut}}" userInput =" href" stepKey =" logoutUrl" />
13
+ <amOnPage url =" {$logoutUrl}" stepKey =" logout2" />
14
+ </actionGroup >
15
+ </actionGroups >
Original file line number Diff line number Diff line change 30
30
</after >
31
31
32
32
<!-- Assert succesful login without any error message -->
33
- <dontSeeElement selector = " {{AdminMessagesSection.error}} " stepKey =" dontSeeErrorMessage1" />
33
+ <actionGroup ref = " AdminAssertNoErrorMessageActionGroup " stepKey =" dontSeeErrorMessage1" />
34
34
<!-- Assert current page is dashboard -->
35
35
<seeCurrentUrlMatches regex =" ~\/admin\/dashboard\/~" stepKey =" seeCurrentUrlMatchesDashboardUrl" />
36
- <grabFromCurrentUrl stepKey =" dashboardUrl" />
37
36
<!-- Navigate to web configuration -->
38
37
<actionGroup ref =" AdminNavigateMenuActionGroup" stepKey =" navigateToFindPartnersAndExtensions" >
39
38
<argument name =" menuUiId" value =" magento-backend-stores" />
45
44
<!-- Grab current URL -->
46
45
<grabFromCurrentUrl stepKey =" webConfigurationUrl" />
47
46
<!-- Logout -->
48
- <grabAttributeFrom selector =" {{AdminHeaderSection.signOut}}" userInput =" href" stepKey =" logoutUrl" />
49
- <amOnPage url =" {$logoutUrl}" stepKey =" logout2" />
47
+ <actionGroup ref =" AdminClickLogoutActionGroup" stepKey =" logout2" />
50
48
<!-- Login with directt url -->
51
49
<actionGroup ref =" AdminLoginWithCustomUrlActionGroup" stepKey =" loginAndRedirectToRequestedPage" >
52
50
<argument name =" customUrl" value =" $webConfigurationUrl" />
53
51
</actionGroup >
54
52
<!-- Assert succesful login without any error message -->
55
- <dontSeeElement selector = " {{AdminMessagesSection.error}} " stepKey =" dontSeeErrorMessage2" />
53
+ <actionGroup ref = " AdminAssertNoErrorMessageActionGroup " stepKey =" dontSeeErrorMessage2" />
56
54
<!-- Assert current page is dashboard -->
57
55
<seeCurrentUrlMatches regex =" ~\/admin\/dashboard\/~" stepKey =" seeCurrentUrlMatchesDashboardUrl2" />
58
56
</test >
You can’t perform that action at this time.
0 commit comments