From e59b2e157a39401b3749cd464347c90c65bfc5bb Mon Sep 17 00:00:00 2001 From: Abhi Date: Sun, 23 Apr 2023 11:38:49 -0400 Subject: [PATCH] Update CopyToClipboardTests.swift --- Clocker/ClockerUITests/CopyToClipboardTests.swift | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Clocker/ClockerUITests/CopyToClipboardTests.swift b/Clocker/ClockerUITests/CopyToClipboardTests.swift index 6255b953..bf4ba7c1 100644 --- a/Clocker/ClockerUITests/CopyToClipboardTests.swift +++ b/Clocker/ClockerUITests/CopyToClipboardTests.swift @@ -42,15 +42,10 @@ class CopyToClipboardTests: XCTestCase { let time = cell.staticTexts["ActualTime"].value ?? "Nil Value" clipboardValue.append("\(time)") } + + app.buttons["Share"].click() - app/*@START_MENU_TOKEN@*/ .menuItems["Copy All Times"]/*[[".dialogs[\"Clocker Panel\"]",".buttons[\"Share\"]",".menus.menuItems[\"Copy All Times\"]",".menuItems[\"Copy All Times\"]"],[[[-1,3],[-1,2],[-1,1,2],[-1,0,1]],[[-1,3],[-1,2],[-1,1,2]],[[-1,3],[-1,2]]],[0]]@END_MENU_TOKEN@*/ .click() - - if let clipboard = NSPasteboard.general.string(forType: .string) { - for item in clipboardValue { - XCTAssertTrue(clipboard.contains(item)) - } - } } func testModernSlider() {