1. 22 8月, 2017 1 次提交
  2. 19 8月, 2017 1 次提交
  3. 29 7月, 2017 1 次提交
  4. 02 7月, 2017 1 次提交
  5. 01 7月, 2017 1 次提交
  6. 14 3月, 2017 1 次提交
  7. 12 3月, 2017 1 次提交
    • R
      Dont always display inline screenshots in system testing (#28133) · 79435c0e
      Renaud Chaput 提交于
      3 output types are supported:
      - simple: only display the screenshot path
      - artifact: display the screenshot in the terminal, using the artifact protocol (supported by some CI)
      - inline (default): display the screenshot in the terminal, inline (supported by some terminals)
      
      You can force the output type by setting the `RAILS_SYSTEM_TESTING_SCREENSHOT` environment variable
      79435c0e
  8. 09 3月, 2017 1 次提交
    • E
      Call system test driver per-instance rather than globally · 7c9af60e
      eileencodes 提交于
      Previously the system test subclasses would call `driven_by` when the
      app booted and not again when the test was initialized which resulted in
      the driver from whichever class was called last to be used in tests.
      
      In rails/rails#28144 the `driven_by` method was changed to run `use` on
      setup and `reset` on teardown. While this was a viable fix this really
      pointed to the problem that system test `driven_by` was a global
      setting, rather than a per-class setting.
      
      To alieviate this problem calling the driver should be done on an
      instance level, rather than on the global level. I added an `initialize`
      method to `SystemTestCase` which will call `use` on the superclass
      driver. Running the server has been moved to `start_application` so that
      it only needs to be called once on boot and no options from `driven_by`
      were being passed to it.
      
      This required a largish rewrite of the tests. Each test needs to utilize
      the subclass so that it can properly test the drivers.
      `ActionDispatch::SystemTestCase` shouldn't be called directly anymore.
      7c9af60e
  9. 04 3月, 2017 1 次提交
    • Y
      Do not take screenshot if driver does not support screenshot · 2ee4058c
      yuuji.yaginuma 提交于
      `Capybara::RackTest::Driver` does not support taking screenshots. If call
      `#save_screenshot` on `Capybara::RackTest::Driver` will raise the error.
      
      ```ruby
      Error:
      UsersTest#test_visiting_the_index:
      Capybara::NotSupportedByDriverError: Capybara::Driver::Base#save_screenshot
      ```
      
      To prevent errors, if driver does not support screenshot, do not call it.
      2ee4058c
  10. 23 2月, 2017 1 次提交
  11. 21 2月, 2017 3 次提交
    • E
      Rename system_test_helper -> application_system_test_case · 2d61c5d8
      eileencodes 提交于
      This renames the system test helper file to be application system test
      case to match what the rest of Rails does. In the future we should
      consider changing the test_helper to match.
      2d61c5d8
    • E
      Fix screenshot helper to provide correct file name · 983275eb
      eileencodes 提交于
      We only want the file name to include the word `failures` if it failed,
      not any time the user wants to take a screenshot during a test run.
      983275eb
    • E
      Move and rename system tests · 1a0ca84a
      eileencodes 提交于
      * Move system tests back into Action Pack
      * Rename `ActionSystemTest` to `ActionDispatch::SystemTestCase`
      * Remove private base module and only make file for public
      `SystemTestCase` class, name private module `SystemTesting`
      * Rename `ActionSystemTestCase` to `ApplicationSystemTestCase`
      * Update corresponding documentation and guides
      * Delete old `ActionSystemTest` files
      1a0ca84a