diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /toolkit/components/cleardata/tests/marionette/test_moved_origin_directory_cleanup.py | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/cleardata/tests/marionette/test_moved_origin_directory_cleanup.py')
-rw-r--r-- | toolkit/components/cleardata/tests/marionette/test_moved_origin_directory_cleanup.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/toolkit/components/cleardata/tests/marionette/test_moved_origin_directory_cleanup.py b/toolkit/components/cleardata/tests/marionette/test_moved_origin_directory_cleanup.py index 876f86cd32..50f4c93f65 100644 --- a/toolkit/components/cleardata/tests/marionette/test_moved_origin_directory_cleanup.py +++ b/toolkit/components/cleardata/tests/marionette/test_moved_origin_directory_cleanup.py @@ -46,6 +46,11 @@ class MovedOriginDirectoryCleanupTestCase(MarionetteTestCase): """ ) + def read_prefs_file(self): + pref_path = Path(self.marionette.profile_path) / "prefs.js" + with open(pref_path) as f: + return f.read() + def removeAllCookies(self): with self.marionette.using_context("chrome"): self.marionette.execute_script( @@ -83,6 +88,12 @@ class MovedOriginDirectoryCleanupTestCase(MarionetteTestCase): message="privacy.sanitize.pending must include offlineApps", ) + # Make sure the pref is written to the file + Wait(self.marionette).until( + lambda _: "offlineApps" in self.read_prefs_file(), + message="prefs.js must include offlineApps", + ) + # Cleanup happens via Sanitizer.onStartup after restart self.marionette.restart(in_app=False) |