Basic tests added

This commit is contained in:
Christoph Haas 2018-08-14 14:19:07 +02:00
parent 6239fb4dcb
commit 5498e9b9a4
8 changed files with 137 additions and 30 deletions

View file

@ -0,0 +1,14 @@
require 'test_helper'
class BrowserBrowseTest < ActionDispatch::IntegrationTest
test "user can see home page" do
visit root_path
page.must_have_content 'This website lets you browse screenshots'
end
test "user can browse packages" do
visit packages_grid_path
page.must_have_content /Previous/
page.must_have_link href: packages_grid_path(page: 2)
end
end