Skip to content

Commit a0f8da5

Browse files
committed
- Adding additional checks for all 3 spinners in the Magento grid UI components.
- Removing the $id property from the uniqid function so it doesn't include it in the random number that is generated. This breaks many fields in the admin sense they don't accept special characters.
1 parent 1f81574 commit a0f8da5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

+3
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ public function waitForPageLoad($timeout = 15)
195195
{
196196
$this->waitForJS('return document.readyState == "complete"', $timeout);
197197
$this->waitForAjaxLoad($timeout);
198+
$this->waitForElementNotVisible('.loading-mask', 30);
199+
$this->waitForElementNotVisible('.admin_data-grid-loading-mask', 30);
200+
$this->waitForElementNotVisible('.admin__form-loading-mask', 30);
198201
}
199202

200203
/**

src/Magento/FunctionalTestingFramework/Util/msq.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function msq($id = null)
1414
return MagentoSequence::$hash[$id];
1515
}
1616
$prefix = MagentoSequence::$prefix;
17-
$sequence = $prefix . uniqid($id);
17+
$sequence = $prefix . uniqid();
1818
if ($id) {
1919
MagentoSequence::$hash[$id] = $sequence;
2020
}
@@ -35,7 +35,7 @@ function msqs($id = null)
3535
return MagentoSequence::$suiteHash[$id];
3636
}
3737
$prefix = MagentoSequence::$prefix;
38-
$sequence = $prefix . uniqid($id);
38+
$sequence = $prefix . uniqid();
3939
if ($id) {
4040
MagentoSequence::$suiteHash[$id] = $sequence;
4141
}

0 commit comments

Comments
 (0)