From e7798e90f495ab947ab69f381aa6f79859fbd67a Mon Sep 17 00:00:00 2001 From: Emmanuel Garcia Date: Fri, 27 Mar 2020 13:10:39 -0700 Subject: [PATCH] Add name to the XCTAttachments in the scenario test app (flutter/engine#17355) --- .../ios/Scenarios/ScenariosUITests/GoldenPlatformViewTests.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosUITests/GoldenPlatformViewTests.m b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosUITests/GoldenPlatformViewTests.m index a08519b46b4..a3658e337fc 100644 --- a/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosUITests/GoldenPlatformViewTests.m +++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosUITests/GoldenPlatformViewTests.m @@ -49,11 +49,13 @@ static const NSInteger kSecondsToWaitForPlatformView = 30; XCUIScreenshot* screenshot = [[XCUIScreen mainScreen] screenshot]; XCTAttachment* attachment = [XCTAttachment attachmentWithScreenshot:screenshot]; + attachment.name = @"new_golden"; attachment.lifetime = XCTAttachmentLifetimeKeepAlways; [self addAttachment:attachment]; if (golden.image) { XCTAttachment* goldenAttachment = [XCTAttachment attachmentWithImage:golden.image]; + attachment.name = @"current_golden"; goldenAttachment.lifetime = XCTAttachmentLifetimeKeepAlways; [self addAttachment:goldenAttachment]; } else {