Skip to content

Commit b023da8

Browse files
committed
MQE-1650: Update MFTF configuration to read Test entities from new location
1 parent ca9ab11 commit b023da8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

etc/config/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ BROWSER=chrome
4343
#DEFAULT_TIMEZONE=America/Los_Angeles
4444

4545
#*** These properties impact the modules loaded into MFTF, you can point to your own full path, or a custom set of modules located with the core set
46-
MODULE_WHITELIST=Magento_Framework,Magento_ConfigurableProductWishlist,Magento_ConfigurableProductCatalogSearch
46+
MODULE_WHITELIST=Magento_Framework,ConfigurableProductWishlist,ConfigurableProductCatalogSearch
4747
#CUSTOM_MODULE_PATHS=
4848

4949
#*** Bool property which allows the user to toggle debug output during test execution

src/Magento/FunctionalTestingFramework/Util/ModuleResolver.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,11 @@ private function flipAndFilterArray($objectArray, $filterArray = null)
298298
foreach ($objectArray as $path => $modules) {
299299
if (count($modules) == 1) {
300300
if (!is_array($filterArray)
301-
|| (is_array($filterArray) && in_array($modules[0], $filterArray))) {
301+
|| (is_array($filterArray) && in_array($modules[0], $filterArray))
302+
|| isset($this->knownDirectories[$modules[0]])) {
303+
if (strpos($modules[0], '_') === false) {
304+
$modules[0] = $this->getPossibleVendorName($path);
305+
}
302306
$flippedArray[$modules[0]] = $path;
303307
}
304308
} else {

0 commit comments

Comments
 (0)