Моя среда: em> php:8.2 / mageno:2.4.7
имя теста: AddConfigurableProductToOrderFromShoppingCartTest
несколько шагов до провала:
Код: Выделить всё
[selectOption1] select option "//\*[@id='product-options-wrapper']//div[@class='fieldset']//label[contains(.,'')]/../div[@class='control']//select","4"
[fillProductQuantity] fill field "input.input-text.qty","1"
[fillProductQuantityWaitForPageLoad] wait for page load 30
[waitForAddToCartButtonToRemoveDisabledState] wait for element not visible "#product-addtocart-button[disabled]",60
[waitForAddToCartButtonToRemoveDisabledStateWaitForPageLoad] wait for page load 60
[waitForAddToCartButton] wait for element clickable "#product-addtocart-button"
[waitForAddToCartButtonWaitForPageLoad] wait for page load 60
[clickOnAddToCartButton] click "#product-addtocart-button"
[clickOnAddToCartButtonWaitForPageLoad] wait for page load 60
[] javascript ERROR(SEVERE) - http://magento2.docker/static/version1734077859/frontend/Magento/luma/en_US/Magento_Customer/js/customer-data.js 97:22 Uncaught Error: [object Object]
[saveScreenshot] save screenshot
В строке 29 AllureHelper.php:
Код: Выделить всё
\[Exception\]
Exception trace:
at /app/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Allure/AllureHelper.php:29
Magento\\FunctionalTestingFramework\\Allure\\AllureHelper::addAttachmentToCurrentStep() at /app/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php:333
Magento\\FunctionalTestingFramework\\Extension\\TestContextExtension-\>attachExceptionToAllure() at /app/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php:142
Magento\\FunctionalTestingFramework\\Extension\\TestContextExtension-\>testEnd() at /app/vendor/symfony/event-dispatcher/EventDispatcher.php:206
Symfony\\Component\\EventDispatcher\\EventDispatcher-\>callListeners() at /app/vendor/symfony/event-dispatcher/EventDispatcher.php:56
Symfony\\Component\\EventDispatcher\\EventDispatcher-\>dispatch() at /app/vendor/codeception/codeception/src/Codeception/Test/Test.php:229
Codeception\\Test\\Test-\>realRun() at /app/vendor/codeception/codeception/src/Codeception/Suite.php:130
Codeception\\Suite-\>run() at /app/vendor/codeception/codeception/src/Codeception/SuiteManager.php:151
Codeception\\SuiteManager-\>run() at /app/vendor/codeception/codeception/src/Codeception/Codecept.php:260
Codeception\\Codecept-\>runSuite() at /app/vendor/codeception/codeception/src/Codeception/Codecept.php:216
Codeception\\Codecept-\>run() at /app/vendor/codeception/codeception/src/Codeception/Command/Run.php:435
Codeception\\Command\\Run-\>execute() at /app/vendor/symfony/console/Command/Command.php:326
Symfony\\Component\\Console\\Command\\Command-\>run() at /app/vendor/symfony/console/Application.php:1078
Symfony\\Component\\Console\\Application-\>doRunCommand() at /app/vendor/symfony/console/Application.php:324
Symfony\\Component\\Console\\Application-\>doRun() at /app/vendor/symfony/console/Application.php:175
Symfony\\Component\\Console\\Application-\>run() at /app/vendor/codeception/codeception/src/Codeception/Application.php:112
Codeception\\Application-\>run() at /app/vendor/codeception/codeception/app.php:45
{closure}() at /app/vendor/codeception/codeception/app.php:46
require() at /app/vendor/codeception/codeception/codecept:7
include() at /app/vendor/bin/codecept:119
но у меня это не воспроизводится. Я прохожу тестовый поток без ошибок.
Кроме того, я пытался отключить следующий код из setCookiePath, но ничего не изменилось.
Код: Выделить всё
if (!preg_match('/SameSite/', $path)) {
$path .= '; SameSite=None';
$this->setOption('session.cookie_path', $path);
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... mands-json
Мобильная версия