From e64b621155b83930aa683798babc1816d1edddab Mon Sep 17 00:00:00 2001 From: deepwired Date: Fri, 28 Oct 2022 09:53:22 +0530 Subject: [PATCH] using at.exit --- android/examples/run-parallel-tests/features/distinct.feature | 3 +++ android/examples/run-parallel-tests/features/support/hooks.rb | 2 +- ios/examples/run-parallel-tests/features/distinct.feature | 3 +++ ios/examples/run-parallel-tests/features/support/hooks.rb | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/android/examples/run-parallel-tests/features/distinct.feature b/android/examples/run-parallel-tests/features/distinct.feature index 1cb71a2..9ad6a1f 100644 --- a/android/examples/run-parallel-tests/features/distinct.feature +++ b/android/examples/run-parallel-tests/features/distinct.feature @@ -6,3 +6,6 @@ Background: Scenario: Search for a term When I type in "BrowserStack" Then I should see results + +Scenario: Confirm if term still exists + Then I should see results diff --git a/android/examples/run-parallel-tests/features/support/hooks.rb b/android/examples/run-parallel-tests/features/support/hooks.rb index 63ddd89..c230166 100644 --- a/android/examples/run-parallel-tests/features/support/hooks.rb +++ b/android/examples/run-parallel-tests/features/support/hooks.rb @@ -1,4 +1,4 @@ -After do +at_exit do $driver.quit if $driver if $bs_local $bs_local.stop diff --git a/ios/examples/run-parallel-tests/features/distinct.feature b/ios/examples/run-parallel-tests/features/distinct.feature index 66bd286..b179d36 100644 --- a/ios/examples/run-parallel-tests/features/distinct.feature +++ b/ios/examples/run-parallel-tests/features/distinct.feature @@ -6,3 +6,6 @@ Background: Scenario: Type a term When I type in "hello@browserstack.com" in the Text Input field Then I should get the entered text in the Text Output field + +Scenario: Entered text should persist untill otherwise + Then I should get the entered text in the Text Output field diff --git a/ios/examples/run-parallel-tests/features/support/hooks.rb b/ios/examples/run-parallel-tests/features/support/hooks.rb index 63ddd89..c230166 100644 --- a/ios/examples/run-parallel-tests/features/support/hooks.rb +++ b/ios/examples/run-parallel-tests/features/support/hooks.rb @@ -1,4 +1,4 @@ -After do +at_exit do $driver.quit if $driver if $bs_local $bs_local.stop