Skip to content

Commit 9229669

Browse files
committed
MQE-2104: Allure attachments don't appear in report for VERBOSE_ARTIFACTS=true for passing tests
- Fixed comparison to string.
1 parent d558832 commit 9229669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Magento/FunctionalTestingFramework/Allure/Adapter/MagentoAllureAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ private function retrieveStepKey($stepLine)
398398
private function removeAttachments($step, $testFailed)
399399
{
400400
//Remove Attachments if verbose flag is not true AND test did not fail
401-
if (getenv('VERBOSE_ARTIFACTS') !== true && $testFailed === null) {
401+
if (getenv('VERBOSE_ARTIFACTS') !== "true" && $testFailed === null) {
402402
foreach ($step->getAttachments() as $index => $attachment) {
403403
$step->removeAttachment($index);
404404
unlink(Provider::getOutputDirectory() . DIRECTORY_SEPARATOR . $attachment->getSource());

0 commit comments

Comments
 (0)