Sha256: e45452b0c1ecb33e043a652cfb71e34c7df47a5ab019712228745f0dc01ac9c2
Contents?: true
Size: 489 Bytes
Versions: 3
Compression:
Stored size: 489 Bytes
Contents
require 'capybara_helper' class DismissibleBlocksTest < ActionDispatch::IntegrationTest setup do Capybara.current_driver = Capybara.javascript_driver end test "block is displayed and dismissed" do login users(:one) assert page.has_selector? '.block' click_on 'Hide' assert page.has_no_selector? '.block' logout end test "block is not displayed; already dismissed" do login users(:two) assert page.has_no_selector? '.block' logout end end
Version data entries
3 entries across 3 versions & 1 rubygems