Basic tests added
This commit is contained in:
parent
6239fb4dcb
commit
5498e9b9a4
8 changed files with 137 additions and 30 deletions
14
test/integration/browse_test.rb
Normal file
14
test/integration/browse_test.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue