Skip to content

Commit fe58411

Browse files
Cristian101aljcalandra
authored andcommitted
Changed the location of the rewrite
1 parent a7cdc51 commit fe58411

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,4 +599,17 @@ public function saveScreenshot()
599599
$this->_saveScreenshot($this->pngReport = $outputDir . mb_strcut($filename, 0, 245, 'utf-8') . '.fail.png');
600600
$this->_savePageSource($this->htmlReport = $outputDir . mb_strcut($filename, 0, 244, 'utf-8') . '.fail.html');
601601
}
602+
603+
/**
604+
* Go to a page and wait for ajax requests to finish
605+
*
606+
* @param string $page
607+
* @throws \Exception
608+
* @return void
609+
*/
610+
public function amOnPage($page)
611+
{
612+
parent::amOnPage($page)
613+
$this->waitForPageLoad();
614+
}
602615
}

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,19 +1898,4 @@ private function printRuleErrorToConsole($key, $tagName, $attributes)
18981898
$message .= '" can be use for action "' . $tagName . "\".\n";
18991899
print $message;
19001900
}
1901-
1902-
/**
1903-
* Go to a page and wait for ajax requests to finish
1904-
*
1905-
* @param string $page
1906-
* @throws \Exception
1907-
* @return void
1908-
*/
1909-
public function amOnPage($page)
1910-
{
1911-
$url = Uri::appendPath($this->config['url'], $page);
1912-
$this->debugSection('GET', $url);
1913-
$this->webDriver->get($url);
1914-
$this->waitForPageLoad();
1915-
}
19161901
}

0 commit comments

Comments
 (0)