mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-24 02:38:40 +00:00
[BrowserTest] Language screenshots are uploaded every 5 seconds
Change-Id: I25b7842b827b9d9366aeafb423b1884271bb39f0
This commit is contained in:
parent
a7e395f0b9
commit
e0e1b38f13
|
@ -45,6 +45,7 @@ def upload_image file_path
|
|||
client = MediawikiApi::Client.new ENV["MEDIAWIKI_API_UPLOAD_URL"]
|
||||
client.log_in ENV["MEDIAWIKI_USER"], ENV["MEDIAWIKI_PASSWORD"]
|
||||
client.upload_image(file_name, file_path, file_license, true)
|
||||
sleep 5 # Restriction in bot speed: https://commons.wikimedia.org/wiki/Commons:Bots#Bot_speed
|
||||
end
|
||||
|
||||
def upload_images
|
||||
|
|
Loading…
Reference in a new issue