🤬
  • ■ ■ ■ ■ ■
    changedetectionio/tests/visualselector/test_fetch_data.py
    skipped 6 lines
    7 7  # Add a site in paused mode, add an invalid filter, we should still have visual selector data ready
    8 8  def test_visual_selector_content_ready(client, live_server):
    9 9   import os
     10 + import json
    10 11   
    11 12   assert os.getenv('PLAYWRIGHT_DRIVER_URL'), "Needs PLAYWRIGHT_DRIVER_URL set for this test"
    12 13   live_server_setup(live_server)
    skipped 21 lines
    34 35   assert os.path.isfile(os.path.join('test-datastore', uuid, 'last-screenshot.png')), "last-screenshot.png should exist"
    35 36   assert os.path.isfile(os.path.join('test-datastore', uuid, 'elements.json')), "xpath elements.json data should exist"
    36 37   
     38 + # Open it and see if it roughly looks correct
     39 + with open(os.path.join('test-datastore', uuid, 'elements.json'), 'r') as f:
     40 + json.load(f)
     41 + 
Please wait...
Page is in error, reload to recover