Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Quick and easy browser testing using RSpec and Rails 5.1

C727e695ffdc7bf95f9f1a97da592648?s=47 Penelope Phippen
April 29, 2018
59

Quick and easy browser testing using RSpec and Rails 5.1

C727e695ffdc7bf95f9f1a97da592648?s=128

Penelope Phippen

April 29, 2018
Tweet

Transcript

  1. Quick and easy browser testing using RSpec and Rails 5.1

    @samphippen
  2. Quick and easy browser testing using RSpec and Rails 5.1

    2 @samphippen
  3. It’s cool when rails versions get released

  4. RSpec does not yet “officially” support 5.2

  5. Literally it will work fine unless you hit this one

    weird edge case in activestorage
  6. Rails has changed

  7. I’ve changed

  8. None
  9. None
  10. None
  11. None
  12. None
  13. None
  14. None
  15. None
  16. Let’s talk about testing

  17. Integrated Isolated Number of tests

  18. Integrated Isolated Number of tests

  19. None
  20. Integrated Isolated Number of tests

  21. S

  22. Integrated Isolated Number of tests

  23. This used to be literally the worst

  24. Just google “rails browser testing”

  25. None
  26. None
  27. None
  28. None
  29. None
  30. None
  31. None
  32. None
  33. None
  34. None
  35. None
  36. None
  37. None
  38. None
  39. #

  40. None
  41. None
  42. It’s not an actual browser

  43. None
  44. None
  45. None
  46. Win.

  47. That was too much work.

  48. None
  49. This is super easy in Rails 5.1 and RSpec 3.7

  50. None
  51. Lemme show you how easy this is

  52. None
  53. None
  54. None
  55. None
  56. None
  57. None
  58. None
  59. Implementation

  60. None
  61. A week after railsconf last year!

  62. None
  63. None
  64. Rails does the heavy lifting.

  65. Let’s talk about screenshots

  66. None
  67. None
  68. None
  69. None
  70. None
  71. None
  72. None
  73. Rails makes this all really easy

  74. Rails’s API lets us provide you a good user experience

  75. Aftermath

  76. None
  77. I fixed 3

  78. None
  79. None
  80. “I can’t have in my green dots”

  81. None
  82. None
  83. None
  84. None
  85. None
  86. None
  87. None
  88. Open source is imperfect

  89. I do not get paid to work on RSpec

  90. None
  91. My cool team is here

  92. Thanks @samphippen sphippen@digitalocean.com