No Description

test_selenium.py 531B

1234567891011121314151617
  1. # -*- encoding: utf-8 -*-
  2. """
  3. License: MIT
  4. Copyright (c) 2019 - present AppSeed.us
  5. """
  6. from tests.test_base import urls
  7. # this test uses selenium to check, for all pages of gentelella, that there
  8. # are no severe entry in chromium logs.
  9. def test_selenium(selenium_client):
  10. for blueprint, pages in urls.items():
  11. for page in pages:
  12. selenium_client.get('http://127.0.0.1:5000' + blueprint + page)
  13. for entry in selenium_client.get_log('browser'):
  14. assert entry['level'] != 'SEVERE'