Skip to content

Commit 7a85bf1

Browse files
committed
Fix Apollo 1469
1 parent e30c2ee commit 7a85bf1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Sources/ArcGISToolkit/Components/FeatureFormView/Subviews/FormElements/UtilityAssociationsFormElement/UtilityAssociationCreationView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extension FeatureFormView {
3232
/// See also: `includeContentVisibility`.
3333
@State private var contentIsVisible: Bool = false
3434
/// How far along an edge the association is located.
35-
@State private var fractionAlongEdge: Double = 0.5
35+
@State private var fractionAlongEdge: Double = 0
3636
/// The options for a utility network feature when creating an association.
3737
@State private var options: UtilityAssociationFeatureOptions? = nil
3838
/// A Boolean value which indicates when the configured association is being added.

Test Runner/UI Tests/FeatureFormViewTests.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,10 @@ final class FeatureFormViewTests: XCTestCase {
20102010
let formTitle = app.staticTexts["Electric Distribution Device"]
20112011
let fractionAlongEdgeLabel = app.staticTexts["Fraction Along Edge"]
20122012
let fractionAlongEdgeSlider = app.sliders.firstMatch
2013-
let fractionAlongEdgeValueBefore = app.staticTexts["50%"]
2013+
/// Despite the test specifying setting the slider to 75%, the framework exceeds the target by a
2014+
/// little bit.
2015+
let fractionAlongEdgeValueAfter = app.staticTexts["77%"]
2016+
let fractionAlongEdgeValueBefore = app.staticTexts["0%"]
20142017
let fromElementLabel = app.staticTexts["From Element"]
20152018
let lowVoltageButton = app.staticTexts["Low Voltage"].firstMatch
20162019
let lowVoltageLabel = app.staticTexts["Low Voltage"]
@@ -2024,12 +2027,10 @@ final class FeatureFormViewTests: XCTestCase {
20242027
#if targetEnvironment(macCatalyst)
20252028
let addAssociationButton = app.buttons["Add Association"]
20262029
let fromNetworkDataSourceButton = app.menuItems["From Network Data Source"]
2027-
let fractionAlongEdgeValueAfter = app.staticTexts["77%"]
20282030
let terminalHighButton = app.menuItems["high"]
20292031
let terminalLowButton = app.menuItems["low"]
20302032
#else
20312033
let addAssociationButton = app.staticTexts["Add Association"]
2032-
let fractionAlongEdgeValueAfter = app.staticTexts["76%"]
20332034
let fromNetworkDataSourceButton = app.buttons["From Network Data Source"]
20342035
let terminalHighButton = app.buttons["High"]
20352036
let terminalLowButton = app.buttons["Low"]
@@ -2180,6 +2181,9 @@ final class FeatureFormViewTests: XCTestCase {
21802181
#endif
21812182
terminalLowButton.tap()
21822183

2184+
#if targetEnvironment(macCatalyst)
2185+
XCTExpectFailure("The mouse is known to miss the drag handle when starting from 0%.")
2186+
#endif
21832187
fractionAlongEdgeSlider.adjust(toNormalizedSliderPosition: 0.75)
21842188

21852189
XCTAssertTrue(

0 commit comments

Comments
 (0)