Skip to content

Commit

Permalink
Test for Recently Revised
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Verkhovsky committed May 29, 2005
1 parent 62f5be7 commit a01f1aa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/watir/e2e.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,20 @@ def test_0070_all_pages
# and before that, we have the tail of the main menu
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
Expand Down

0 comments on commit a01f1aa

Please sign in to comment.