@ -35,19 +35,21 @@ class CopyToClipboardTests: XCTestCase {
// T e s t f u l l c o p y
let cellCount = app . tables [ " FloatingTableView " ] . cells . count
var clipboardValue = String ( )
var clipboardValue : [ String ] = [ ]
for cellIndex in 0 . . < cellCount {
let cell = app . tables [ " FloatingTableView " ] . cells . element ( boundBy : cellIndex )
let customLabel = cell . staticTexts [ " CustomNameLabelForCell " ] . value ? ? " Nil Custom Label "
let time = cell . staticTexts [ " ActualTime " ] . value ? ? " Nil Value "
clipboardValue . append ( contentsOf : " \( customLabel ) - \( time ) \n " )
clipboardValue . append ( " \( time ) " )
}
app . buttons [ " Share " ] . click ( )
app /* @ S T A R T _ M E N U _ T O K E N @ */ . menuItems [ " Copy All Times " ] /* [ [ " . d i a l o g s [ \ " C l o c k e r P a n e l \ " ] " , " . b u t t o n s [ \ " S h a r e \ " ] " , " . m e n u s . m e n u I t e m s [ \ " C o p y A l l T i m e s \ " ] " , " . m e n u I t e m s [ \ " C o p y A l l T i m e s \ " ] " ] , [ [ [ - 1 , 3 ] , [ - 1 , 2 ] , [ - 1 , 1 , 2 ] , [ - 1 , 0 , 1 ] ] , [ [ - 1 , 3 ] , [ - 1 , 2 ] , [ - 1 , 1 , 2 ] ] , [ [ - 1 , 3 ] , [ - 1 , 2 ] ] ] , [ 0 ] ] @ E N D _ M E N U _ T O K E N @ */ . click ( )
let clipboard = NSPasteboard . general . string ( forType : . string )
XCTAssert ( clipboardValue = = clipboard )
if let clipboard = NSPasteboard . general . string ( forType : . string ) {
for item in clipboardValue {
XCTAssertTrue ( clipboard . contains ( item ) )
}
}
}
func testModernSlider ( ) {