Description
Issue found:
When we try to create a masked quote id in a scenario, "When a new customer is created on storefront and on using mutations to create customer token for same customer and a cart using CustomerCart on CustomerCart resolver in Magento/QuoteGraphQl/Model/Resolver/CustomerCart.php.
We figured out that masked quote id is empty (" ")is given from Magento/Quote/Model/QuoteIdToMaskedQuoteId.php and quoteidmask table, even when quote->getId() is created in Quote table,
We fixed it on resolver level, but it needs a core code fix. An additional logic need to be added in Magento/Quote/Model/QuoteIdToMaskedQuoteId.php that checks for such cases where a quote id is present and create a non empty masked id on a requested quote.
After fixing this, revert the changes accordingly in Magento/QuoteGraphQl/Model/Resolver/CustomerCart.php and make sure that the testGetLoggedInCustomerCartWithoutMaskedQuoteId still passes in dev/tests/api/functional/testsuite/Magento/GraphQl/Quote/Customer/GetCustomerCartTest.php without any changes.