amzn / amazon-payments-magento-2-plugin

Extension to enable Amazon Pay on Magento 2
https://amzn.github.io/amazon-payments-magento-2-plugin/
Apache License 2.0
109 stars 77 forks source link

Account for whitespace/newline trimming on responses from #1130

Closed sgabhart22 closed 2 years ago

sgabhart22 commented 2 years ago

MagentoWebDriver's magentoCLI() function

In the MFTF version (3.9.0) included with Magento 2.4.4, the test action was changed to trim the output printed by the corresponding console command. This broke the AmazonCheckoutSuccess test since it was expecting the newline to be included in the returned string.

To accommodate both 2.4.3 and 2.4.4, we can change from an 'equals' to a 'contains' assertion.