diff --git a/src/Magento/FunctionalTestingFramework/Module/MagentoPwaWebDriver.php b/src/Magento/FunctionalTestingFramework/Module/MagentoPwaWebDriver.php index 2c981b244..9b75cb10d 100644 --- a/src/Magento/FunctionalTestingFramework/Module/MagentoPwaWebDriver.php +++ b/src/Magento/FunctionalTestingFramework/Module/MagentoPwaWebDriver.php @@ -6,6 +6,8 @@ namespace Magento\FunctionalTestingFramework\Module; +use Codeception\Module\WebDriver; + /** * Class MagentoPwaActions * @@ -15,6 +17,21 @@ */ class MagentoPwaWebDriver extends MagentoWebDriver { + /** + * Go to the page. + * + * Overriding the MagentoWebDriver version because it contains 'waitForPageLoad'. + * The AJAX check in 'waitForPageLoad' does NOT work with a PWA. + * + * @param string $page + * @throws \Exception + * @return void + */ + public function amOnPage($page) + { + WebDriver::amOnPage($page); + } + /** * Wait for a PWA Element to NOT be visible using JavaScript. * Add the WAIT_TIMEOUT variable to your .env file for this action.