-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
198 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>BNDL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
</dict> | ||
</plist> |
36 changes: 36 additions & 0 deletions
36
Example/SelectionListDemoUITests/SelectionListDemoUITests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// SelectionListDemoUITests.swift | ||
// SelectionListDemoUITests | ||
// | ||
// Created by Yonat Sharon on 26.05.2018. | ||
// Copyright © 2018 Yonat Sharon. All rights reserved. | ||
// | ||
|
||
import XCTest | ||
|
||
class SelectionListDemoUITests: XCTestCase { | ||
override func setUp() { | ||
super.setUp() | ||
continueAfterFailure = false | ||
XCUIApplication().launch() | ||
} | ||
|
||
func testSeletion() { | ||
let app = XCUIApplication() | ||
let selectionList = app.tables.firstMatch | ||
|
||
XCTAssert(selectionList.cells.element(boundBy: 1).isSelected) | ||
XCTAssert(!selectionList.cells.element(boundBy: 3).isSelected) | ||
XCTAssert(selectionList.cells.element(boundBy: 4).isSelected) | ||
|
||
let firstCell = selectionList.cells.element(boundBy: 0) | ||
XCTAssert(firstCell.isSelected) | ||
firstCell.tap() | ||
XCTAssert(!firstCell.isSelected) | ||
|
||
let thirdCell = selectionList.cells.element(boundBy: 2) | ||
XCTAssert(!thirdCell.isSelected) | ||
thirdCell.tap() | ||
XCTAssert(thirdCell.isSelected) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters