diff --git a/Clocker/ClockerUITests/CopyToClipboardTests.swift b/Clocker/ClockerUITests/CopyToClipboardTests.swift new file mode 100644 index 0000000..96b5323 --- /dev/null +++ b/Clocker/ClockerUITests/CopyToClipboardTests.swift @@ -0,0 +1,53 @@ +// Copyright © 2015 Abhishek Banthia + +import XCTest + +class CopyToClipboardTests: XCTestCase { + var app: XCUIApplication! + + override func setUp() { + continueAfterFailure = false + app = XCUIApplication() + app.launch() + + if app.tables["FloatingTableView"].exists == false { + app.tapMenubarIcon() + app.buttons["FloatingPin"].click() + } + } + + override func tearDownWithError() throws { + app = nil + } + + func testFullCopy() throws { + let cellCount = app.tables["FloatingTableView"].cells.count + var clipboardValue = String() + for cellIndex in 0..