Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3260 from magento-borg/BugFixPR
Browse files Browse the repository at this point in the history
[2.3.0-regression] Bug Fixes
  • Loading branch information
Joan He authored Oct 7, 2018
2 parents 3001311 + 41f2669 commit 840a7aa
Show file tree
Hide file tree
Showing 23 changed files with 80 additions and 47 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Analytics/Test/Mftf/Data/UserData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->

<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
<entity name="adminNoReport" type="user">
<data key="username" unique="suffix">noreport</data>
<data key="firstname">No</data>
Expand All @@ -18,7 +18,7 @@
<data key="interface_local">en_US</data>
<data key="is_active">true</data>
<data key="current_password">123123q</data>
</entity>
</entity>
<entity name="restrictedWebUser" type="user">
<data key="username" unique="suffix">restrictedWebUser</data>
<data key="firstname">restricted</data>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
<section name="AdminConfigSection">
<element name="advancedReportingMenuItem" type="text" selector="//*[@id='system_config_tabs']/div[1]//span[text()='Advanced Reporting']"/>
<element name="advancedReportingService" type="select" selector="#analytics_general_enabled"/>
<element name="advancedReportingServiceLabel" type="text" selector="#row_analytics_general_enabled>td.label>label>span"/>
<element name="advancedReportingServiceStatus" type="text" selector="#row_analytics_general_enabled>td.value>p>span"/>
<element name="advancedReportingIndustry" type="select" selector="#analytics_general_vertical"/>
<element name="advancedReportingIndustryLabel" type="text" selector=".config-vertical-label>label>span"/>
<element name="advancedReportingHour" type="select" selector="#row_analytics_general_collection_time>td:nth-child(2)>select:nth-child(2)"/>
<element name="advancedReportingMinute" type="select" selector="#row_analytics_general_collection_time>td:nth-child(2)>select:nth-child(3)"/>
<element name="advancedReportingSeconds" type="select" selector="#row_analytics_general_collection_time>td:nth-child(2)>select:nth-child(4)"/>
<element name="advancedReportingBlankIndustryError" type="text" selector=".message-error>div"/>
<element name="advancedReportingSuccessMessage" type="text" selector=".message-success>div"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
<severity value="MAJOR"/>
<testCaseId value="MAGETWO-66465"/>
<group value="analytics"/>
<skip>
<issueId value="MAGETWO-90659"/>
</skip>
</annotations>
<after>
<amOnPage stepKey="amOnLogoutPage" url="admin/admin/auth/logout/"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
<severity value="MAJOR"/>
<testCaseId value="MAGETWO-63898"/>
<group value="analytics"/>
<skip>
<issueId value="MAGETWO-90659"/>
</skip>
</annotations>

<actionGroup ref="LoginActionGroup" stepKey="loginAsAdmin"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
<severity value="CRITICAL"/>
<testCaseId value="MAGETWO-82648"/>
<group value="analytics"/>
<skip>
<issueId value="MAGETWO-90659"/>
</skip>
</annotations>
<before>
<createData stepKey="noReportUserRole" entity="adminNoReportRole"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
<section name="BraintreeConfigurationPaymentSection">
<element name="creditCart" type="radio" selector="#braintree"/>
<element name="paymentMethodContainer" type="block" selector=".payment-method-braintree"/>
<element name="paymentMethod" type="radio" selector="//div[@class='payment-group']//input[contains(@id, 'braintree_cc_vault_')]"/>
<element name="cartFrame" type="iframe" selector="braintree-hosted-field-number"/>
<element name="monthFrame" type="iframe" selector="braintree-hosted-field-expirationMonth"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@
<!--Fill cart data-->
<click selector="{{BraintreeConfigurationPaymentSection.creditCart}}" stepKey="SelectBraintreePaymentMethod"/>
<waitForPageLoad stepKey="waitForPageLoad3"/>
<scrollTo selector="{{BraintreeConfigurationPaymentSection.creditCart}}" stepKey="ScrollToCreditCardSection"/>
<actionGroup ref="StorefrontFillCartDataActionGroup" stepKey="StorefrontFillCartDataActionGroup"/>
<waitForPageLoad stepKey="waitForPageLoad4"/>
<!--Place order-->
<click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="PlaceOrder"/>
<click selector="{{BraintreeConfigurationPaymentSection.paymentMethodContainer}} {{CheckoutPaymentSection.placeOrder}}"
stepKey="PlaceOrder"/>
<waitForPageLoad stepKey="waitForPageLoad5"/>

<!--Add product to cart again-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
<severity value="CRITICAL"/>
<testCaseId value="MC-217"/>
<group value="Bundle"/>
<skip>
<issueId value="MAGETWO-92898"/>
</skip>
</annotations>
<before>
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<waitForPageLoad stepKey="waitForStoresLoaded"/>
<click selector="{{CaptchaFormsDisplayingSection.config}}" stepKey="ClickToGoConfiguration"/>
<waitForPageLoad stepKey="waitForConfigurationsLoaded"/>
<scrollTo selector="{{CaptchaFormsDisplayingSection.customer}}" stepKey="ScrollToCustomers"/>
<scrollTo selector="{{CaptchaFormsDisplayingSection.customer}}" x="0" y="-80" stepKey="ScrollToCustomers"/>
<click selector="{{CaptchaFormsDisplayingSection.customer}}" stepKey="ClickToCustomers"/>
<waitForPageLoad stepKey="waitForCustomerConfigurationsLoaded"/>
<click selector="{{CaptchaFormsDisplayingSection.customerConfig}}" stepKey="ClickToGoCustomerConfiguration"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<element name="apply" type="button" selector="button[data-action=grid-filter-apply]" timeout="30"/>
<element name="filter" type="button" selector="//div[@class='data-grid-filters-action-wrap']/button" timeout="30"/>
<element name="typeDropDown" type="multiselect" selector="//select[@name='type_id']" timeout="30"/>
<element name="bundleOption" type="multiselect" selector="//select[@name='type_id']/option[4]" timeout="30"/>
<element name="bundleOption" type="multiselect" selector="//select[@name='type_id']/option[@value='bundle']" timeout="30"/>
<element name="applyFilters" type="button" selector="//button[@class='action-secondary']" timeout="30"/>
<element name="allCheckbox" type="checkbox" selector="//div[@data-role='grid-wrapper']//label[@data-bind='attr: {for: ko.uid}']" timeout="30"/>
<element name="actions" type="button" selector="//div[@class='action-select-wrap']/button" timeout="30"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ protected function setUp()

public function testEstimateRowSize()
{
$this->markTestSkipped('Unskip after MAGETWO-89738');
$expectedResult = 40000000;
$maxRelatedProductCount = 10;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@
<description value="Should be able to place an order as a customer with multiple addresses and tax rates."/>
<testCaseId value="MAGETWO-93109"/>
<severity value="AVERAGE"/>
<skip>
<issueId value="MQE-1187" />
</skip>
<group value="checkout"/>
</annotations>
<before>
<createData entity="SimpleSubCategory" stepKey="simplecategory"/>
Expand Down Expand Up @@ -183,6 +181,8 @@

<click stepKey="changeShippingAddress" selector="{{CheckoutShippingMethodsSection.shipHereButton}}"/>
<waitForElementNotVisible stepKey="waitForShippingMethodLoaderNotVisible" selector="{{CheckoutShippingMethodsSection.shippingMethodLoader}}" time="30"/>
<waitForElementVisible stepKey="waitForShippingMethodRadioToBeVisible" selector="{{CheckoutShippingMethodsSection.firstShippingMethod}}" time="30"/>
<waitForPageLoad stepKey="waitForPageLoad23"/>
<click stepKey="selectFirstShippingMethod2" selector="{{CheckoutShippingMethodsSection.firstShippingMethod}}"/>
<waitForElement stepKey="waitForShippingMethodSelect2" selector="{{CheckoutShippingMethodsSection.next}}" time="30"/>
<click stepKey="clickNextOnShippingMethodLoad2" selector="{{CheckoutShippingMethodsSection.next}}" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="EnabledWYSIWYG">
<amOnPage url="admin/admin/system_config/edit/section/cms/" stepKey="navigateToConfigurationPage" />
<amOnPage url="{{ConfigurationStoresPage.url}}" stepKey="navigateToConfigurationPage" />
<waitForPageLoad stepKey="wait1"/>
<conditionalClick stepKey="expandWYSIWYGOptions" selector="{{ContentManagementSection.WYSIWYGOptions}}" dependentSelector="{{ContentManagementSection.CheckIfTabExpand}}" visible="true" />
<waitForElementVisible selector="{{ContentManagementSection.EnableWYSIWYG}}" stepKey="waitForEnableWYSIWYGDropdown1" />
Expand All @@ -20,7 +20,7 @@
<click selector="{{ContentManagementSection.Save}}" stepKey="saveConfig" />
</actionGroup>
<actionGroup name="DisabledWYSIWYG">
<amOnPage url="admin/admin/system_config/edit/section/cms/" stepKey="navigateToConfigurationPage" />
<amOnPage url="{{ConfigurationStoresPage.url}}" stepKey="navigateToConfigurationPage" />
<waitForPageLoad stepKey="wait3"/>
<conditionalClick stepKey="expandWYSIWYGOptions" selector="{{ContentManagementSection.WYSIWYGOptions}}" dependentSelector="{{ContentManagementSection.CheckIfTabExpand}}" visible="true" />
<waitForElementVisible selector="{{ContentManagementSection.EnableWYSIWYG}}" stepKey="waitForEnableWYSIWYGDropdown2" time="30"/>
Expand Down
11 changes: 0 additions & 11 deletions app/code/Magento/Config/Test/Mftf/Section/AdminConfigSection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@
-->
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
<section name="AdminConfigSection">
<element name="advancedReportingMenuItem" type="text" selector="//a[contains(concat(' ',normalize-space(@class),' '),'item-nav')]/span[text()='Advanced Reporting']"/>
<element name="advancedReportingService" type="select" selector="#analytics_general_enabled"/>
<element name="advancedReportingServiceLabel" type="text" selector="#row_analytics_general_enabled>td.label>label>span"/>
<element name="advancedReportingServiceStatus" type="text" selector="#row_analytics_general_enabled>td.value>p>span"/>
<element name="advancedReportingIndustry" type="select" selector="#analytics_general_vertical"/>
<element name="advancedReportingIndustryLabel" type="text" selector=".config-vertical-label>label>span"/>
<element name="advancedReportingHour" type="select" selector="#row_analytics_general_collection_time>td:nth-child(2)>select:nth-child(2)"/>
<element name="advancedReportingMinute" type="select" selector="#row_analytics_general_collection_time>td:nth-child(2)>select:nth-child(3)"/>
<element name="advancedReportingSeconds" type="select" selector="#row_analytics_general_collection_time>td:nth-child(2)>select:nth-child(4)"/>
<element name="advancedReportingBlankIndustryError" type="text" selector=".message-error>div"/>
<element name="advancedReportingSuccessMessage" type="text" selector=".message-success>div"/>
<element name="saveButton" type="button" selector="#save"/>
</section>
</sections>
5 changes: 3 additions & 2 deletions app/code/Magento/Customer/Model/AccountManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,7 @@ public function createAccountWithPasswordHash(CustomerInterface $customer, $hash
if ($customer->getWebsiteId()) {
$storeId = $this->storeManager->getWebsite($customer->getWebsiteId())->getDefaultStore()->getId();
} else {
$this->storeManager->setCurrentStore(null);
$storeId = $this->storeManager->getStore()->getId();
}
$customer->setStoreId($storeId);
Expand Down Expand Up @@ -1011,7 +1012,7 @@ protected function createPasswordHash($password)
}

/**
* Returns eval validator
* Get EAV validator
*
* @return Backend
*/
Expand Down Expand Up @@ -1216,7 +1217,7 @@ protected function getWebsiteStoreId($customer, $defaultStoreId = null)
}

/**
* Return array with template types
* Get template types
*
* @return array
* @deprecated 100.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="clickOrderRow"/>
<click selector="{{AdminOrderDetailsMainActionsSection.invoice}}" stepKey="clickInvoice"/>
<click selector="{{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey="clickSubmitInvoice"/>
<waitForPageLoad stepKey="waitForInvoicePageLoad"/>
<see selector="{{AdminOrderDetailsMessagesSection.successMessage}}" userInput="The invoice has been created." stepKey="seeSuccessMessage"/>
<click selector="{{AdminOrderDetailsOrderViewSection.invoices}}" stepKey="clickInvoices"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMask5" />
Expand Down
6 changes: 6 additions & 0 deletions app/code/Magento/Theme/view/base/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,9 @@ var config = {
}
}
};

require(['jquery'], function ($) {
'use strict';

$.noConflict();
});
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,34 @@ public function testCreateCustomerWithErrors()
}
}

public function testCreateCustomerWithoutOptionalFields()
{
$serviceInfo = [
'rest' => [
'resourcePath' => self::RESOURCE_PATH,
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_POST, ],
'soap' => [
'service' => self::SERVICE_NAME,
'serviceVersion' => self::SERVICE_VERSION,
'operation' => self::SERVICE_NAME . 'CreateAccount',
],
];

$customerDataArray = $this->dataObjectProcessor->buildOutputDataArray(
$this->customerHelper->createSampleCustomerDataObject(),
\Magento\Customer\Api\Data\CustomerInterface::class
);
unset($customerDataArray['store_id']);
unset($customerDataArray['website_id']);
$requestData = ['customer' => $customerDataArray, 'password' => CustomerHelper::PASSWORD];
try {
$customerData = $this->_webApiCall($serviceInfo, $requestData, null, 'all');
$this->assertNotNull($customerData['id']);
} catch (\Exception $e) {
$this->fail('Customer should be created without optional fields.');
}
}

/**
* Test customer activation when it is required
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,11 @@ public function testStartActionCustomerToQuote()

/**
* Test return action with configurable product.
*
* @magentoDataFixture Magento/Paypal/_files/quote_express_configurable.php
*/
public function testReturnAction()
{
// Skipped due to MAGETWO-87333
//@magentoDataFixture Magento/Paypal/_files/quote_express_configurable.php
$this->markTestSkipped('MAGETWO-87333');
$quote = $this->_objectManager->create(Quote::class);
$quote->load('test_cart_with_configurable', 'reserved_order_id');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@ protected function setUp()
* @magentoAppIsolation enabled
* @param int $categoryId
* @param bool $expectedResult
*
* @magentoDataFixture Magento/ConfigurableProduct/_files/quote_with_configurable_product.php
* @magentoDataFixture Magento/SalesRule/_files/rules_category.php
* @dataProvider validateProductConditionDataProvider
* @magentoDbIsolation disabled
*/
public function testValidateCategorySalesRuleIncludesChildren($categoryId, $expectedResult)
{
//* @magentoDataFixture Magento/ConfigurableProduct/_files/quote_with_configurable_product.php
//* @magentoDataFixture Magento/SalesRule/_files/rules_category.php
$this->markTestSkipped('MAGETWO-87436');

// Load the quote that contains a child of a configurable product
/** @var \Magento\Quote\Model\Quote $quote */
$quote = $this->objectManager->create(\Magento\Quote\Model\Quote::class)
Expand Down
6 changes: 2 additions & 4 deletions lib/web/jquery/patches/jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ define([], function () {
return function ($) {
var majorVersion = $.fn.jquery.split('.')[0];

$.noConflict();

if (majorVersion >= 3) {
console.warn('jQuery patch for CVE-2015-9251 is no longer necessary, and should be removed');
}

ajaxResponsePatch(jQuery);
ajaxResponsePatch($);

return jQuery;
return $;
};
});

0 comments on commit 840a7aa

Please sign in to comment.