File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
CatalogRule/Test/Mftf/ActionGroup Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 150
150
<fillField selector =" {{AdminCatalogPriceRuleActionsSection.discountAmount}}" userInput =" {{catalogRule.discount_amount}}" stepKey =" fillDiscountValue" />
151
151
<selectOption selector =" {{AdminCatalogPriceRuleActionsSection.disregardRules}}" userInput =" Yes" stepKey =" discardSubsequentRules" />
152
152
</actionGroup >
153
-
153
+
154
154
<actionGroup name =" AdminFillCatalogRuleConditionActionGroup" >
155
155
<arguments >
156
156
<argument name =" condition" type =" string" />
Original file line number Diff line number Diff line change 11
11
use Magento \Framework \Event \ObserverInterface ;
12
12
use Magento \Framework \Exception \NoSuchEntityException ;
13
13
use Magento \Quote \Api \CartRepositoryInterface ;
14
- use Magento \Quote \Api \Data \CartInterface ;
15
14
use Magento \Quote \Model \Quote ;
16
15
17
16
/**
@@ -132,6 +131,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
132
131
$ this ->_eventManager ->dispatch ('persistent_session_expired ' );
133
132
$ this ->quoteManager ->expire ();
134
133
$ this ->_checkoutSession ->clearQuote ();
134
+ $ this ->_customerSession ->setCustomerId (null )->setCustomerGroupId (null );
135
135
return ;
136
136
}
137
137
@@ -156,7 +156,8 @@ public function execute(\Magento\Framework\Event\Observer $observer)
156
156
*/
157
157
private function isPersistentQuoteOutdated (): bool
158
158
{
159
- if (!$ this ->_persistentData ->isEnabled () && !$ this ->_customerSession ->isLoggedIn ()
159
+ if ((!$ this ->_persistentData ->isEnabled () || !$ this ->_persistentData ->isShoppingCartPersist ())
160
+ && !$ this ->_customerSession ->isLoggedIn ()
160
161
&& $ this ->_checkoutSession ->getQuoteId ()
161
162
&& $ this ->isActiveQuote ()
162
163
) {
Original file line number Diff line number Diff line change 52
52
<actionGroup ref =" logout" stepKey =" logout" />
53
53
</after >
54
54
<!-- Open order by Id-->
55
- <actionGroup ref =" OpenOrderById " stepKey =" openOrderById" >
55
+ <actionGroup ref =" OpenOrderByName " stepKey =" openOrderById" >
56
56
<argument name =" orderId" value =" $createGuestCart.return$" />
57
+ <argument name =" orderName" value =" {{ShippingAddressTX.fullname}}" />
57
58
</actionGroup >
58
59
<!-- Reorder-->
59
60
<click selector =" {{AdminOrderDetailsMainActionsSection.reorder}}" stepKey =" clickReorder" />
Original file line number Diff line number Diff line change 76
76
},
77
77
"require-dev" : {
78
78
"allure-framework/allure-phpunit" : " ~1.2.0" ,
79
- "magento/magento2-functional-testing-framework" : " 2.4.5 " ,
79
+ "magento/magento2-functional-testing-framework" : " 2.5.0 " ,
80
80
"phpunit/phpunit" : " ~6.2.0" ,
81
81
"squizlabs/php_codesniffer" : " 3.2.2" ,
82
82
"phpmd/phpmd" : " @stable" ,
You can’t perform that action at this time.
0 commit comments