diff --git a/.gitignore b/.gitignore index dab77719f..70b2502cf 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ coverage *.code-workspace /testkit/CAs /testkit/CustomCAs +/testkit/firefox_profile/* diff --git a/testkit/backend.py b/testkit/backend.py index 7e1bb6784..5f6c1b5cb 100644 --- a/testkit/backend.py +++ b/testkit/backend.py @@ -12,6 +12,7 @@ import os import time + if __name__ == "__main__": print("starting backend") backend_script = "start-testkit-backend" @@ -34,7 +35,7 @@ time.sleep(5) print("openning firefox") with open_proccess_in_driver_repo([ - "firefox", "-headless", "http://localhost:8000" + "firefox", "--profile", "./testkit/firefox_profile", "--headless", "http://localhost:8000" # type: ignore ]) as firefox: firefox.wait() backend.wait() diff --git a/testkit/firefox_profile/prefs.js b/testkit/firefox_profile/prefs.js new file mode 100644 index 000000000..2f8b5160b --- /dev/null +++ b/testkit/firefox_profile/prefs.js @@ -0,0 +1,3 @@ +/* global user_pref */ +user_pref('network.dnsCacheExpiration', 0); +user_pref('network.dnsCacheExpirationGracePeriod', 0);