Functional Tests

Running Via Command Line

./go functional-tests:test

Things to Note when Coding Functional Tests

  • When clicking a 'submit' button, the next page may not fully load before the next line of code
  • Need to ensure that it looks for elements in the new page / do appropriate waits
  • Some pages like proposal lists makes 2 AJAX calls: 
    • one for the template, one for the data. 
    • HTML is rendered after both after the template is retrieved as well as after data is retrieved
    • so be careful in selecting elements on the page: essentially there are 3 states of the page: raw source, raw source + template html, raw source + template html + render data and each can have different elements