Test for Recently Revised
This commit is contained in:
parent
62f5be7b35
commit
a01f1aa008
|
@ -169,6 +169,19 @@ class E2EInstikiTest < Test::Unit::TestCase
|
||||||
assert_equal 'Export', page_links[-7]
|
assert_equal 'Export', page_links[-7]
|
||||||
end
|
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
|
private
|
||||||
|
|
||||||
def bp
|
def bp
|
||||||
|
|
Loading…
Reference in a new issue