Skip to content

Commit

Permalink
apply shouldWaitForQuiescence for activate in /wda/apps/launch (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Jul 15, 2023
1 parent 2c24c9d commit 239f044
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions WebDriverAgentLib/Routing/FBSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ - (FBApplication *)launchApplicationWithBundleId:(NSString *)bundleIdentifier
environment:(nullable NSDictionary <NSString *, NSString *> *)environment
{
FBApplication *app = [[FBApplication alloc] initWithBundleIdentifier:bundleIdentifier];
if (nil == shouldWaitForQuiescence) {
// Iherit the quiescence check setting from the main app under test by default
app.fb_shouldWaitForQuiescence = nil != self.testedApplicationBundleId && self.shouldAppsWaitForQuiescence;
} else {
app.fb_shouldWaitForQuiescence = [shouldWaitForQuiescence boolValue];
}
if (app.fb_state < 2) {
if (nil == shouldWaitForQuiescence) {
// Iherit the quiescence check setting from the main app under test by default
app.fb_shouldWaitForQuiescence = nil != self.testedApplicationBundleId && self.shouldAppsWaitForQuiescence;
} else {
app.fb_shouldWaitForQuiescence = [shouldWaitForQuiescence boolValue];
}
app.launchArguments = arguments ?: @[];
app.launchEnvironment = environment ?: @{};
[app launch];
Expand Down

0 comments on commit 239f044

Please sign in to comment.