Fixed functional tests
This commit is contained in:
parent
eff7a02f9f
commit
62fe9e6955
2 changed files with 28 additions and 0 deletions
|
|
@ -1,14 +0,0 @@
|
|||
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 of [\d,]+ software packages/
|
||||
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