Skip to content
Snippets Groups Projects
  1. Mar 21, 2022
  2. Mar 18, 2022
  3. Mar 17, 2022
  4. Mar 16, 2022
    • Antoine Lambert's avatar
      assets/save: Fix Web UI tabs switch when navigating in browser history · 39bab96e
      Antoine Lambert authored
      In the Save Code Now Web UI, the two displayed tabs have different URLs
      but it was not possible to navigate back and forth between them when
      clicking on the "Go back" and "Go forward" browser buttons.
      
      So ensure the correct tab will be active when URL fragment has changed.
      39bab96e
    • Antoine Lambert's avatar
      cypress: Mock costly HTTP request to /coverage endpoint · 9f2e1cb9
      Antoine Lambert authored
      Before each test suite, cypress visits the root page to get some
      references on javascript objects used in tests.
      
      However the root page requests the costly /coverage endpoint to
      render the archive coverage widget.
      
      We do not need that widget to render for cypress tests so better
      mocking that request to an empty one to speedup each test suite
      startup.
      9f2e1cb9
    • Antoine Lambert's avatar
      webpack-dev-server: Do not reload page when database file is modified · 4dd2c8ff
      Antoine Lambert authored
      webpack-dev-server watches static files and will reload application in
      the browser when one of them is modified.
      
      However, we need to ignore sqlite3 database files used in development
      mode as any HTTP request that modifies the database will trigger an
      unexpected page reload.
      4dd2c8ff
  5. Mar 15, 2022
    • Antoine Lambert's avatar
      cypress: Generate tests data once and get them through a task · 627ba79a
      Antoine Lambert authored
      Some cypress tests use input data generated before each test suite.
      
      Some of these data are retrieved by sending HTTP requests to the
      Software Heritage Web API, which can take some times, especially
      when repeating that processing before each test suite.
      
      So instead of sending those HTTP requests before each test suite,
      prefer to do it once and put the test data in global cache. Those
      data will then be set to test suite scope through the use of a
      custom cypress task.
      627ba79a
    • Antoine Lambert's avatar
      cypress: Add missing global intercept for https://status.swh.org · 2b1ae269
      Antoine Lambert authored
      Each time a swh-web HTML page is loaded, an HTTP request is sent to
      https://status.softwareheritage.org for getting the data needed to
      display the status widget in the top right of the Web UI.
      
      That request was not globally intercepted by cypress resulting in
      making real HTTP requests on the internet while executing tests.
      As a consequence, this was slowing down the whole testing process.
      
      So ensure that request is globally intercepted to speedup tests
      execution.
      2b1ae269
  6. Mar 14, 2022
  7. Mar 10, 2022
  8. Mar 09, 2022
  9. Mar 08, 2022
  10. Mar 07, 2022
  11. Feb 24, 2022
  12. Feb 23, 2022
  13. Feb 22, 2022
Loading