1. 25 Jun, 2021 4 commits
    • Jérome Perrin's avatar
      CaptchaField: enable haproxy sticky cookie when viewing a captcha · c2ebd539
      Jérome Perrin authored
      Currently portal_sessions is only in RAM, so captcha only work when the client
      is lucky enough to hit the same zope when submitting the captcha for valiation.
      
      This workaround improves things a little bit because it forces the balancer to
      set cookie. Unfortunately, it does not really work because it's too late for
      the current request, so basically it will work on the next request.
      
      Unless we can fix portal_sessions, a better workaround is to use an intermediate
      script before the page containing the captcha, to set the cookie and redirect
      to the page with captcha.
      c2ebd539
    • Jérome Perrin's avatar
      CaptchasDotNet: don't make the captcha image a link to captcha.net · e8647603
      Jérome Perrin authored
      This is horrible user experience on mobile, user can accidentally touch the
      image and then get redirected to captcha.net website which is generally not
      useful. As far as a I understand their conditions of use, they don't require
      use to make a link to their website.
      e8647603
    • Jérome Perrin's avatar
      CaptchaField: fix "numeric" captch provider · b9497010
      Jérome Perrin authored
      It seems this never worked, it was comparing a string received from the client
      with a number from the session.
      b9497010
    • Jérome Perrin's avatar
      e80c148e
  2. 23 Jun, 2021 1 commit
  3. 21 Jun, 2021 2 commits
  4. 18 Jun, 2021 2 commits
    • Jérome Perrin's avatar
      tests: also consider python unittest failures in functional tests · 1b1dbf60
      Jérome Perrin authored
      It can happen that a test running selenium fail in python, but not in selenium,
      like for example test_result_module/20210615-CDADEC14/183
      To prevent such tests from being reported as PASS, we make the total number of
      failures being the sum of the python unittest failures and the selenium failures.
      1b1dbf60
    • Jérome Perrin's avatar
      ERP5TypeFunctionalTestCase: wait for test table to be populated · 3fe3ef2c
      Jérome Perrin authored
      It happens, for example with erp5_officejs_ui_test:testFunctionalOfficeJSPyodideNotebook
      on test_result_module/20210615-CDADEC14/183 that the test is considered as
      not running, because the test result table was not populated in time.
      
      Add an explicit wait to prevent such problems.
      3fe3ef2c
  5. 17 Jun, 2021 6 commits
  6. 15 Jun, 2021 6 commits
  7. 14 Jun, 2021 2 commits
  8. 11 Jun, 2021 3 commits
  9. 10 Jun, 2021 1 commit
  10. 09 Jun, 2021 2 commits
    • Jérome Perrin's avatar
      core: keep using default_params from proxy listbox ids · afa5c0fc
      Jérome Perrin authored
      With bf57228a ([erp5_core] RelationField listbox must also fetch
      default_params value from the relationfield, 2018-05-09), we introduced a
      regression that listboxs from relation fields "proxy listbox ids" default params
      where no longer used. As a result, if we have a listbox which define some
      catalog search with default parameters, like for example the "Suppliers" or
      "Clients" listboxs from erp5_trade are doing, these parameters were not
      taken into account. In the case of trade listbox, this was showing all nodes.
      
      This changes Base_getRelatedObjectParameter to get catalog search from the
      proxy listbox if there is one.
      afa5c0fc
    • Jérome Perrin's avatar
      trade_renderjs_ui_test: tests for "Suppliers", "Clients", "Organisations" and... · f67f5346
      Jérome Perrin authored
      trade_renderjs_ui_test: tests for "Suppliers", "Clients", "Organisations" and "Persons" Proxy Listbox Ids
      f67f5346
  11. 08 Jun, 2021 5 commits
  12. 07 Jun, 2021 1 commit
  13. 04 Jun, 2021 5 commits