Skip to content

Commit

Permalink
Merge pull request aws-geospatial#57 from makeen-project/fixes/E2ETes…
Browse files Browse the repository at this point in the history
…t-cases-fixes

[Makeen] [E2E] Fixed Geofence Exit test case
  • Loading branch information
vinguthh authored Oct 16, 2023
2 parents bc5d7c7 + 464eeea commit e7472db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extension TrackingCoordinator: TrackingNavigationDelegate {
let controller = TrackingHistoryBuilder.create(isTrackingActive: isTrackingActive)
currentBottomSheet?.dismissBottomSheet()
controller.presentBottomSheet(parentController: trackingController!)
controller.enableBottomSheetGrab(smallHeight: 0.12)
controller.enableBottomSheetGrab(smallHeight: 0.14)
currentBottomSheet = controller

// Starting tracking by default when tapping on Enable tracking button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ final class TrackingUITests: LocationServicesUITests {
.waitForGeofenceEnteredAlert(geofenceName: geofenceName)

XCUIDevice.shared.location = .init(location: Constants.trackingPoints[0])

Thread.sleep(forTimeInterval: 2)
XCUIDevice.shared.location = .init(location: Constants.trackingPoints[1])
Thread.sleep(forTimeInterval: 2)

let _ = trackingUIScreen
.waitForGeofenceExitedAlert(geofenceName: geofenceName)
}
Expand Down
8 changes: 5 additions & 3 deletions LocationServices/fastlane/report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@



<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000177">
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000259">

</testcase>


<testcase classname="fastlane.lanes" name="1: scan" time="111.61719">
<testcase classname="fastlane.lanes" name="1: run_tests" time="245.874177">

</testcase>


<testcase classname="fastlane.lanes" name="2: xcov" time="0.470715">
<testcase classname="fastlane.lanes" name="2: echo xcresult_path=/Users/oleg/projects/amazon-location-ios/LocationServices/fastlane/test_output/LocationServices.xcresult &gt;&gt; $GITHUB_ENV" time="0.004982">

<failure message="/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/actions/actions_helper.rb:67:in `execute_action'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/fast_file.rb:222:in `sh'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/fast_file.rb:216:in `sh'&#10;Fastfile:31:in `ensure in block (2 levels) in parsing_binding'&#10;Fastfile:31:in `block (2 levels) in parsing_binding'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/lane.rb:33:in `call'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/runner.rb:45:in `execute'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.211.0/bin/fastlane:23:in `&lt;top (required)&gt;'&#10;/Users/oleg/.rbenv/versions/2.7.6/bin/fastlane:23:in `load'&#10;/Users/oleg/.rbenv/versions/2.7.6/bin/fastlane:23:in `&lt;top (required)&gt;'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `load'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `kernel_load'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/2.7.0/bundler/cli/exec.rb:28:in `run'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/2.7.0/bundler/cli.rb:476:in `exec'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/2.7.0/bundler/cli.rb:30:in `dispatch'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/base.rb:476:in `start'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/2.7.0/bundler/cli.rb:24:in `start'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:46:in `block in &lt;top (required)&gt;'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/2.7.0/bundler/friendly_errors.rb:123:in `with_friendly_errors'&#10;/Users/oleg/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:34:in `&lt;top (required)&gt;'&#10;/Users/oleg/.rbenv/versions/2.7.6/bin/bundle:23:in `load'&#10;/Users/oleg/.rbenv/versions/2.7.6/bin/bundle:23:in `&lt;main&gt;'&#10;&#10;Exit status of command 'echo xcresult_path=/Users/oleg/projects/amazon-location-ios/LocationServices/fastlane/test_output/LocationServices.xcresult &gt;&gt; $GITHUB_ENV' was 1 instead of 0.&#10;sh: $GITHUB_ENV: ambiguous redirect&#10;" />

</testcase>

Expand Down

0 comments on commit e7472db

Please sign in to comment.