Sha256: c607ad40da0c46cc90d3a15d11d41e53188eae5031f8604a8252bfc5be9efe87

Contents?: true

Size: 840 Bytes

Versions: 9

Compression:

Stored size: 840 Bytes

Contents

//
//
//  Created by XCFit Framework
//  Copyright © 2017 XCFit Framework. All rights reserved.
//
//

/*

 This is sample code created by XCFit Framework and can be edited/Removed as per your project need. You can also re-arrange Xcode Groups and directories as per your need.

This is extension to Feature protocol to implement the steps in the given when then format.

 */

import Foundation
import XCTest
//import XCFit

// Once XCFit is imported we can use predefined steps if needed

extension Feature {

    func whenIswipeLeft() {
        XCTContext.runActivity(named: "When I Swipe Left") { _ in
                XCUIApplication().swipeLeft()
        }
    }

    func whenITapHomeButton() {
        XCTContext.runActivity(named: "When I Tap Home Button") { _ in
            FeatureScreen.homeButton.button.tap()
        }
    }
}

Version data entries

9 entries across 6 versions & 1 rubygems

Version Path
xcfit-10.2.0 XCFit-Demo/XCFit-DemoProtocolBDDTests/FeatureSteps.swift
xcfit-10.2.0 XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/FeatureSteps.swift
xcfit-10.0.0 XCFit-Demo/XCFit-DemoProtocolBDDTests/FeatureSteps.swift
xcfit-10.0.0 XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/FeatureSteps.swift
xcfit-8.0.0 XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/FeatureSteps.swift
xcfit-8.0.0 XCFit-Demo/XCFit-DemoProtocolBDDTests/FeatureSteps.swift
xcfit-7.1.0 XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/FeatureSteps.swift
xcfit-7.0.0 XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/FeatureSteps.swift
xcfit-6.1.0 XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/FeatureSteps.swift