1. 30 Apr, 2020 1 commit
  2. 29 Apr, 2020 3 commits
    • Tom Quirk's avatar
      Test error handling for invalid design version · 5993f64e
      Tom Quirk authored
      Adds a test for the case when we do not have a
      design for the given query parameter.
      
      Also adds all_versions mock data, and cleans
      up some of the pages/design/index_spec
      5993f64e
    • Tom Quirk's avatar
      Add various design management util tests · 30845ac4
      Tom Quirk authored
      Add tests for:
      
      - extractDesign util
      - onDesignQueryResult (pages/design/index.vue)
      - onQueryError (pages/design/index.vue)
      30845ac4
    • Tom Quirk's avatar
      Add error feedback for non-existent design · 7b96d898
      Tom Quirk authored
      Previously, when opening Design View, if the design
      did not exist (i.e. bad url, wrong version) we
      would not handle this case and the loading
      spinner would endlessly display.
      
      This commit adds better guards to extractDesign()
      util to prevent an exception being thrown in this case,
      and handles it explicitly by redirecting user and using
      createFlash.
      
      In addition, a few full stops are added to error messages
      for consistency.
      7b96d898
  3. 28 Apr, 2020 36 commits