shot them all: update sizes add mobile/horizontal screenshot

This commit is contained in:
Frédéric Péters 2019-12-01 14:24:30 +01:00
parent ddb925a6c0
commit e6aa3a60e4
1 changed files with 4 additions and 2 deletions

View File

@ -31,8 +31,10 @@ for theme in themes_data['themes']:
time.sleep(1)
os.system('sudo service memcached restart')
browser.get('https://auquo.fred.local.0d.be/contactez-nous/inscription-sur-les-listes/')
browser.set_window_size(1200, 1000)
browser.set_window_size(1400, 1000)
browser.save_screenshot('shots/%s-desktop.png' % theme_id)
browser.set_window_size(480, 1000)
browser.set_window_size(360, 740) # Samsung Galaxy S8
browser.save_screenshot('shots/%s-mobile.png' % theme_id)
browser.set_window_size(740, 360) # ditto, horizontal
browser.save_screenshot('shots/%s-mobile-horizontal.png' % theme_id)
sys.stderr.write(u' 📸 \n')