Remove useless timings

This commit is contained in:
Nicolas Jeannerod 2024-11-16 20:58:27 +00:00
parent ae10086005
commit d988def944
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8

View file

@ -57,13 +57,11 @@ let
{ libraries = with pkgs.python3Packages; [ selenium ]; }
''
import os
import time
${seleniumImports}
from selenium.webdriver.support.wait import WebDriverWait
${seleniumSetup}
${seleniumPixelfedLogin}
time.sleep(3)
media_path = os.environ['POST_MEDIA']
@ -76,7 +74,6 @@ let
driver.find_element(By.CSS_SELECTOR, ".media-body textarea").send_keys(
"Fediversity test of image upload to pixelfed with garage storage."
)
time.sleep(3)
print("Click on Post button...", file=sys.stderr)
driver.find_element(By.LINK_TEXT, "Post").click()
@ -90,7 +87,6 @@ let
WebDriverWait(driver, timeout=10).until(
lambda d: d.execute_script("return arguments[0].complete", img)
)
time.sleep(3)
${seleniumTakeScreenshot "\"/home/selenium/screenshot.png\""}
${seleniumQuit}'';