Skip to content

Commit 24ac1d9

Browse files
authored
Merge pull request #334 from magento/MQE-1457
MQE-1457
2 parents 9b5d79c + bd990cc commit 24ac1d9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Magento/FunctionalTestingFramework/Module/MagentoPwaWebDriver.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class MagentoPwaWebDriver extends MagentoWebDriver
1717
{
1818
/**
1919
* Wait for a PWA Element to NOT be visible using JavaScript.
20+
* Add the WAIT_TIMEOUT variable to your .env file for this action.
2021
*
2122
* @param null $selector
2223
* @param null $timeout
@@ -25,8 +26,6 @@ class MagentoPwaWebDriver extends MagentoWebDriver
2526
*/
2627
public function waitForPwaElementNotVisible($selector, $timeout = null)
2728
{
28-
$timeout = $timeout ?? $this->_getConfig()['pageload_timeout'];
29-
3029
// Determine what type of Selector is used.
3130
// Then use the correct JavaScript to locate the Element.
3231
if (\Codeception\Util\Locator::isXPath($selector)) {
@@ -38,6 +37,7 @@ public function waitForPwaElementNotVisible($selector, $timeout = null)
3837

3938
/**
4039
* Wait for a PWA Element to be visible using JavaScript.
40+
* Add the WAIT_TIMEOUT variable to your .env file for this action.
4141
*
4242
* @param null $selector
4343
* @param null $timeout
@@ -46,8 +46,6 @@ public function waitForPwaElementNotVisible($selector, $timeout = null)
4646
*/
4747
public function waitForPwaElementVisible($selector, $timeout = null)
4848
{
49-
$timeout = $timeout ?? $this->_getConfig()['pageload_timeout'];
50-
5149
// Determine what type of Selector is used.
5250
// Then use the correct JavaScript to locate the Element.
5351
if (\Codeception\Util\Locator::isXPath($selector)) {

0 commit comments

Comments
 (0)