Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Tests from GetCustomerCartTest failed locally. Tests have assertions outside of testFunctions #1055

Closed
TomashKhamlai opened this issue Nov 11, 2019 · 0 comments

Comments

@TomashKhamlai
Copy link
Contributor

Preconditions (*)

  1. Latest Magento 2.3-develop
  2. Test Framework is configured to run GraphQL api-functional tests

Steps to reproduce (*)

  1. Run tests for Quote module or just
  • testGetNewCustomerCart
  • testGetCustomerCartAfterTokenRevoked
  • testRequestCustomerCartTwice

Expected result (*)

  1. Tests are "green"

Actual result (*)

  1. Test failures:
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.
....................................................................................I..E.EE.............................................................................................................................S..................................... 254 / 464 ( 54%)
..................................................................................................................................................................................................................                                             464 / 464 (100%)
Time: 8.15 hours, Memory: 270.50MB
There were 3 errors:
1) Magento\GraphQl\Quote\Customer\GetCustomerCartTest::testGetNewCustomerCart
Magento\TestFramework\TestCase\GraphQl\ResponseContainsErrorsException: GraphQL response contains errors: The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php:183
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php:119
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php:71
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQlAbstract.php:76
/var/www/html/coverage/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCustomerCartTest.php:212
/var/www/html/coverage/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCustomerCartTest.php:93
2) Magento\GraphQl\Quote\Customer\GetCustomerCartTest::testGetCustomerCartAfterTokenRevoked
Magento\TestFramework\TestCase\GraphQl\ResponseContainsErrorsException: GraphQL response contains errors: The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php:183
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php:119
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php:71
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQlAbstract.php:76
/var/www/html/coverage/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCustomerCartTest.php:212
/var/www/html/coverage/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCustomerCartTest.php:124
3) Magento\GraphQl\Quote\Customer\GetCustomerCartTest::testRequestCustomerCartTwice
Magento\TestFramework\TestCase\GraphQl\ResponseContainsErrorsException: GraphQL response contains errors: The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php:183
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php:119
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl/Client.php:71
/var/www/html/coverage/dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQlAbstract.php:76
/var/www/html/coverage/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCustomerCartTest.php:212
/var/www/html/coverage/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCustomerCartTest.php:147
ERRORS!
Tests: 464, Assertions: 1753, Errors: 3, Skipped: 1, Incomplete: 1.
=== Memory Usage System Stats ===
Memory usage (OS):      302.15M (111.70% of 270.50M reported by PHP)
Estimated memory leak:  31.65M (10.48% of used memory)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants