Commit 4a8b713f authored by andrej's avatar andrej
Browse files

Bug 1900428 - Add time delay when passing the skipping onbarding flag to...

Bug 1900428 - Add time delay when passing the skipping onbarding flag to ensure it can take effect. r=perftest-reviewers,sparky

A regression was introduced in the startup tests accidentally when re-formatting the android_startup file.
This patch resolves that issue, which was forgetting a sleep timer of 4 seconds to allow the skip on-boarding flag to propagate

Differential Revision: https://phabricator.services.mozilla.com/D212645
parent 08b77bb5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import sys
import tempfile
import time
from pathlib import Path

import mozlog
@@ -158,6 +159,7 @@ class AndroidDevice(Layer):
            f"am start-activity -W -a android.intent.action.MAIN --ez "
            f"performancetest true -n {package_id}/org.mozilla.fenix.App"
        )
        time.sleep(4)  # ensure skip onboarding call has time to propagate.

    def setup(self):
        if self.custom_apk_exists():