Test for Recently Revised

This commit is contained in:
Alexey Verkhovsky 2005-05-29 00:13:09 +00:00
parent 62f5be7b35
commit a01f1aa008

View file

@ -169,6 +169,19 @@ class E2EInstikiTest < Test::Unit::TestCase
assert_equal 'Export', page_links[-7]
end
def test_0080_recently_revised
ie.link(:text, 'Recently Revised').click
links = ie.links.map { |l| l.text }
assert_equal ['Another Wiki Page', '?', 'Test Edit Page', '?', 'Home Page', '?'], links[-6..-1]
expected_text =
'Another Wiki Page.*by Anonymous Coward\?.*' +
'Test Edit Page.*by Anonymous Coward\?.*' +
'Home Page.*by Anonymous Coward\?.*'
assert_match Regexp.new(expected_text, Regexp::MULTILINE), ie.text
end
private
def bp