Skip to content

Commit f52a408

Browse files
committed
Changed the location of the rewrite
1 parent c5624e2 commit f52a408

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
@@ -554,4 +554,17 @@ public function saveScreenshot()
554554
$this->_saveScreenshot($this->pngReport = $outputDir . mb_strcut($filename, 0, 245, 'utf-8') . '.fail.png');
555555
$this->_savePageSource($this->htmlReport = $outputDir . mb_strcut($filename, 0, 244, 'utf-8') . '.fail.html');
556556
}
557+
558+
/**
559+
* Go to a page and wait for ajax requests to finish
560+
*
561+
* @param string $page
562+
* @throws \Exception
563+
* @return void
564+
*/
565+
public function amOnPage($page)
566+
{
567+
parent::amOnPage($page)
568+
$this->waitForPageLoad();
569+
}
557570
}

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,19 +1866,4 @@ private function printRuleErrorToConsole($key, $tagName, $attributes)
18661866
$message .= '" can be use for action "' . $tagName . "\".\n";
18671867
print $message;
18681868
}
1869-
1870-
/**
1871-
* Go to a page and wait for ajax requests to finish
1872-
*
1873-
* @param string $page
1874-
* @throws \Exception
1875-
* @return void
1876-
*/
1877-
public function amOnPage($page)
1878-
{
1879-
$url = Uri::appendPath($this->config['url'], $page);
1880-
$this->debugSection('GET', $url);
1881-
$this->webDriver->get($url);
1882-
$this->waitForPageLoad();
1883-
}
18841869
}

0 commit comments

Comments
 (0)